[ale] i hate csh

hirsch at zapmedia.com hirsch at zapmedia.com
Fri Jan 25 16:53:31 EST 2002


Fulton Green writes:
 > Back in the day, I remember being able to make a global substitution
 > for the previous command, as in:
 > 
 > 	host% grpe this that
 > 	grpe: Command not found
 > 	
 > 	host% ^pe^ep
 > 	I found this in the file.
 > 	
 > 	host%
 > 	
 > I don't think bash does that. Speaking of which, I also miss the
 > "r" command in ksh for repeating a command in your history ...

It's not a bash built-in functions, but this alias works:
     alias r='fc -s'

In fact, this got me to think "Whatis this 'fc' thingy I had in my
aliases?  It is "Fix Command" which allows this:

    [1007] hirsch>grpe this that
    bash: grpe: command not found
    [1008] hirsch>fc -s pe=ep
    grep this that
    grep: that: No such file or directory

Tah dah!

--Michael

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list