$_

thomas.w.beattie twb at cbnewsh.ATT.COM
Wed May 10 01:03:34 AEST 1989


In article <1083 at adds.newyork.NCR.COM> tanya at adds.newyork.NCR.COM (Tanya Katz) writes:
>In csh, the command & substitution are echoed before being executed, 
>so you can see the horrible things you are doing,  even if you can't
>quite stop them!!  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.


In ksh you can have filename generation and $-variables expanded.
Since the expansion is done before entering the command you have a chance
to catch a mistake before pressing <RETURN>.

In EMACS mode: <ESC><ESC> expands the current token, as does <ESC>*
	(In versions 11/16/88 and newer <ESC><ESC> only generates unique
	filenames, <ESC>* generates all matching filenames; before 11/16/88
	they were the same.  Treatment of $-variables is the same for both
	in all versions).
	
I routinely use these sequences to avoid typos and other mistakes.
Check out <ESC>= also.
---
Tom Beattie
att!hoqaa!twb
t.w.beattie at att.com



More information about the Comp.sys.att mailing list