$_

Eduardo Krell ekrell at hector.UUCP
Tue May 9 23:02:41 AEST 1989


In article <1083 at adds.newyork.NCR.COM> tanya at adds.newyork.NCR.COM (Tanya Katz) writes:
>At least if you could see the the argument expanded
>wrong, you can possibly undo the damage.  But, alas there is no
>expansion, and even when you call up a history the $_ appears as $_, and
>you have to trace it back to the offending line.

Why are you using $_ instead of <ESC>_ ?

<ESC>_ will expand the last word in the previous command line and
you'll see it expanded before you hit return. This works in vi editing
mode.
It can be preceeded with a number n to use the n-th word from the BEGINNING
of the last command instead of the last word.

If you have the ksh book, look at the top of page 116.
    
Eduardo Krell                   AT&T Bell Laboratories, Murray Hill, NJ

UUCP: {att,decvax,ucbvax}!ulysses!ekrell  Internet: ekrell at ulysses.att.com



More information about the Comp.sys.att mailing list