Funny thing happened to me ... Beware of "$_" and the shell you run

Lenny Tropiano lenny at icus.islp.ny.us
Thu Jun 1 04:32:29 AEST 1989


In article <4038 at uhccux.uhcc.hawaii.edu> richard at uhccux.UUCP (Richard Foulk) 
writes:
|>} Normally I run /bin/ksh... so for those ksh people they know what "$_" does.
|>} It basically returns the last argument in the previous command line.  It's
|>} normally used like so...
|>} 
...
|>
|>Looks like another good reason to stick with csh.  !$ is easier to type
|>and it displays the substitution so you know what's going on.
|>
Well I found out in "vi-mode" you can do <ESC>_ and it will do exactly like
the !$ in csh... so ksh is as good ;-)  I'm sure in emacs-mode there is
an equivalent keystroke too..

-Lenny
-- 
Lenny Tropiano             ICUS Software Systems         [w] +1 (516) 582-5525
lenny at icus.islp.ny.us      Telex; 154232428 ICUS         [h] +1 (516) 968-8576
{talcott,decuac,boulder,hombre,pacbell,sbcs}!icus!lenny  attmail!icus!lenny
        ICUS Software Systems -- PO Box 1; Islip Terrace, NY  11752



More information about the Comp.sys.att mailing list