03-22-2011 10:57 PM
does it is not supported by hpux v11.11??
thanx for the help!
Solved! Go to Solution.
03-22-2011 11:05 PM - last edited on 07-12-2011 11:22 AM by Kevin_Paul
Refer the below similar threads.
03-23-2011 05:23 AM
This is not an OS question, it is a question concerning the shell you are using. By default, you are probably using the POSIX shell (/usr/bin/sh), or possibly the Korn shell (/usr/bin/ksh). There are two requirements to enable the shell history:
and export these variables in /etc/profile:
Now exit and login again. Type a command like pwd and then type the command: history. The history command shows your current history file. You recall the last command by type ESC then k. You can search for the most recent command containing a string using ESC /.
Some user may be accustomed to EMACS style recall so they can change that in their personal .profile file. Arrow keys are not functional in the POSIX and ksh shells.
03-28-2011 12:24 AM
Certain things are in built to the K-shell and as Bill mentioned you have to add those three lines for command line history on a POSIX shell that would be /usr/bin/sh or /sbin/sh. You may also try esc and then j if you have crossed the command you wanted to execute , in other words forward... Esc Esc also allows for file name completion. As you see, there are reasons why people prefer bash!
03-28-2011 01:59 AM
If you only want arrow-key history navigation in ksh, you can set emacs mode in your profile:
set -o emacs
and have these lines also added to your .kshrc :
Let me know if it worked, it should!
Unix operates with beer.