Like C-Shell, is there a shortcut command for !! in Korn Shell? I tried to search the forum but no luck.
Run ksh in vi mode (set -o vi), and use ESC-k. That will allow you to go through the command history.
You may find the "r" alias does this, if you don't have the r alias, alias it yourself:
$ alias r='fc -e -'
$ pwd
/some/path
$ r
pwd
/some/path
Cheers
ZB
Thanks Gentlemen!
If you really want it to be !! you could also do:
alias !!='fc -e -'
Thanks reborg!