Xref: utzoo unix-pc.general:2962 comp.sys.att:6577 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!indri!nic.MR.NET!shamash!sialis!icus!lenny From: lenny@icus.islp.ny.us (Lenny Tropiano) Newsgroups: unix-pc.general,comp.sys.att Subject: Re: Funny thing happened to me ... Beware of "$_" and the shell you run Message-ID: <711@icus.islp.ny.us> Date: 31 May 89 18:32:29 GMT References: <704@icus.islp.ny.us> <4038@uhccux.uhcc.hawaii.edu> Reply-To: lenny@icus.islp.ny.us (Lenny Tropiano) Distribution: usa Organization: ICUS Software Systems, Islip, New York Lines: 21 In article <4038@uhccux.uhcc.hawaii.edu> richard@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 _ 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@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