The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: !! for ksh
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 05-27-2007
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,246
Quote:
Originally Posted by zazzybob
You may find the "r" alias does this, if you don't have the r alias, alias it yourself:

Code:
$ alias r='fc -e -'
$ pwd
/some/path
$ r
pwd
/some/path

Cheers
ZB
If you really want it to be !! you could also do:

Code:
alias !!='fc -e -'