I am using xterm on korn shell. I have defined in .kshrc as follows:
set -o emacs alias __A=`echo "\020"` # up arrow = ^p = back a command alias __B=`echo "\016"` # down arrow = ^n = down a command alias __C=`echo "\006"` # right arrow = ^f = forward a character alias __D=`echo "\002"` # left arrow = ^b = back a character alias __H=`echo "\001"` # home = ^a = start of line alias __Y=`echo "\005"` # end = ^e = end of line
I do a source ./.kshrc (in my home), but the up key press is doing nothing. Same action in bash displays older executed commands.
Also, in korn shell, history command dont show history (when in xterm), shows following msg - /bin/ksh: hist: 1-0: invalid range.