Korn Shell

Moderator: cah

Post Reply
cah
General of the Army / Fleet Admiral / General of the Air Force
General of the Army / Fleet Admiral / General of the Air Force
Posts: 1342
Joined: Sun Aug 17, 2008 5:05 am

Korn Shell

Post by cah »

Korn Shell (KSH) first reads default values in $HOME/.kshrc, then /etc/kshrc.

If anything gets set in either file, it will overwrite .profile.
For some reason, Medtronic global IT has the following line in .kshrc in RHEL 6.5 and later (not in HREL 6.4)

Code: Select all

# use emacs editing mode by default
set -o emacs
No wonder I was unable to use ESC and search for commands in .sh_history file.
Once it is commented out, it starts to work as usual.

My guess is someone who created the kickstart image uses emacs most.
CAH, The Great
Post Reply