Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

when starting a new ksh it doesn't set vi as the editor 1

Status
Not open for further replies.

4plexman

Programmer
Dec 31, 2003
5
US
I have a Unix menu and, of course, one option is to shell to the OS. To do this I run the "ksh" command. When I do this it looses the "set -o vi" setting. Without it the backspace key does't work and I can't pop up past commands; its real irritating.

how can I shell to the OS and retain or start this setting?
 
if you add the line:
EDITOR=/usr/bin/vi

to /etc/environment then the EDITOR will always be set to vi...
 
You can also choose command-line editor with the -o option to ksh, such as:
[tt]ksh -o vi[/tt]
 
you may also need to:
export VISUAL=/usr/bin/vi

IBM Certified -- AIX 4.3 Obfuscation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top