OK. I mentioned .exrc and tried the set commands you are mentioning for vim, but I do not seem to get the expected results with "plain" vi (MORE works, but when in /etc/environment the line should be
i.e., no dblQuote "
For "vi" and "more" it works for me when I set the TERM-Variable to "xterm-r5".
Have a look at the above link from bakunin.
But I noticed in the thread you referred me to, somebody replied, saying that the problem goes away if you set TERM=xterm-r5. I have tried that, and it works for me. Alternatively, I suppose one can replace the native vi with vim, but personally I don't like vim all that much with the extra features.
Location: on the road for work; home is private time
Posts: 456
Thanks Given: 10
Thanked 108 Times in 100 Posts
Quote:
Originally Posted by Corona688
Without double quotes, that attempts to run the notite command after exporting MORE=-W. I really think the quotes are necessary!
If you put the definition in a .profile or a .kshrc or /etc/profile that gets interpreted by the ksh. However, if you put in in /etc/environment it is just assigned.
So, in /etc/environment MORE=-W notite
and in /etc/profile export MORE="-W notite"
The reason is when ksh interperts it you do not want it to assign only -W
an alternative would probably work export MORE=-W\ notite
As a test, compare the output of
set | grep MORE
and compare the result of MORE=-W notite and MORE="-W notite"
I am getting - on AIX 6.1
and on AIX 7.1
And, it works even with the quotes on AIX 6.1, but only without the quotes on AIX 7.1
Hope this clarifies any misunderstanding.
last update: seems the issue is a lot less on AIX 6.1 - because fewer programs are using the alternate window approach.
---------- Post updated at 09:51 PM ---------- Previous update was at 09:46 PM ----------
Thank you -=XrAy=- and jandersen.
My personal preference is to not change my term definition to something it is not. However, will adding my comments above and thinking about the vim comments I nee to read the string/command options -W notite as -W no ti te so I shall look into the terminal definitions and vi documentation (if I can find any) telling me how to disable the termcap variables ti and te as I am assuming this is why the definition xterm-r5 is working - the two variables are not defined.
---------- Post updated at 10:14 PM ---------- Previous update was at 09:51 PM ----------
My solution - thank you all for the discussion - is to redefine the terminal emulation my ssh client is reporting. It was saying xterm (forget when I changed that). It is now back to vt320 as default.
Very good information, Michael. Thank you for sharing.
Regarding the /etc/environment-file: i never bothered to find out how they do it exactly, but it is perhaps not simply dot-executed but parsed somehow.
The reason why your two posts became one is a feature in our forum. If you post several posts into the same thread without a post in between they will be combined into one with a separator line in between.
Location: on the road for work; home is private time
Posts: 456
Thanks Given: 10
Thanked 108 Times in 100 Posts
Quote:
Originally Posted by bakunin
Very good information, Michael. Thank you for sharing.
Regarding the /etc/environment-file: i never bothered to find out how they do it exactly, but it is perhaps not simply dot-executed but parsed somehow.
bakunin
It is not executed. an "export", and/or backquote command will not function. So parse is a very good term.
I made a screen within a screen.
Is there a way to move the inner screen up one level so that it is at the same level as the first screen running from the shell? (2 Replies)
I have pipe separated file with lots of blank spaces.
After using sed -e 's/ *| */|/g' this command ,its giving me output as
TT0000013101640|
HCAMBLAMCNB010|Jul 3 2012 11:14AM|
HARYANA|
Bangali Mohalla |
TCL-UBR|9368040005|9355264655|9218509220|NULL
... (5 Replies)
Hello,
I'm trying to replace the first x number of spaces in a line with a |. Right now I'm using a very inefficient syntax to accomplish the task and was looking to simplify it.
I have several cases were the pipes need to replace just the first space on the line, which I did a simple... (11 Replies)
Hi,
I'm trying to create a virtual screen, (maybe xvfb? or any other virtual screen buffer) and be able to use Screen Sharing to connect to it.
The setup is that I have a Mac Mini connected to the TV. But when my girlfriend is using Front Row, I can't use Screen Sharing at the same time from... (0 Replies)
I'm relatively new to Pro*C programming. In the following example:
char name; EXEC SQL SELECT 'John Doe' INTO :name FROM DUAL;
"John Doe" is in positions 0-7, blanks in 8-19, and a null in 20. I would really prefer the null to be in position 8 and I don't care what's after that. I wrote a... (1 Reply)
hello i'm trying to figure out how to number a blank line. For instance this :
sed '/./=' file | sed '/./N; s/\n/ /'
gives me
1 aaaa
2 bbbbbb
4 cccccc
5 ffkkkfff
6 ffsdfdfs
I would like something like this:
1 aaaaa
2
3 bbbbbb
4
5 cccccc
And so... (6 Replies)
I have a file with a list of filenames. I want to work loopwise through the file and operate on each of the listed files. Normally I'd do something like:
for file in `cat $mydir/file-list`
do
echo $file >> $mydir/my.log
cp $mydir/$file $newdir
done
the problem is that my... (1 Reply)
Hi,
Im trying to write something that will report if a filesytem is over 80% but the problem is the output reports on a dir that is a 9%.
any ideas?
this is what I have
*************************************************
if
then
param=90
else
param=$1
fi
df -kl | grep... (1 Reply)