Thank you, Bill Joy!

Fred Fish fnf at fishpond.UUCP
Sun Aug 28 05:50:27 AEST 1988


In article <2323 at munnari.oz> kre at munnari.oz (Robert Elz) writes:
>It is an important one, but !$ is just as important.  I have never used
>a BRL sh, but ksh's $_ (while useful itself sometimes), just doesn't come
>close.
>	[Examples of use of csh !$ deleted  -fnf]
>neither of which will do anything like what you want if you replace
>csh with ksh and !$ with $_

Are you confusing <ESC><_>  with <ESC><.>  ?

As far as I can tell, and I'm not a csh user, the ksh <ESC><.> sequence
does exactly what the csh !$ mechanism does, except that ksh echos the
line to be executed before you hit CR, while csh echoes it afterwards:

Script started on Sat Aug 27 12:40:06 1988
fishpond:1574> csh
% echo a b c
a b c
% echo !$
echo c 
c
% ls /x/usr/fnf/bin/*
/x/usr/fnf/bin/OLDbru
/x/usr/fnf/bin/analyze
/x/usr/fnf/bin/beep
% ls !$
ls /x/usr/fnf/bin/* 
/x/usr/fnf/bin/OLDbru
/x/usr/fnf/bin/analyze
/x/usr/fnf/bin/beep
% exit
fishpond:1575> ksh
fishpond:1576> echo a b c
a b c
fishpond:1577> echo c			(I actually typed "echo <ESC><.>")
c
fishpond:1579> ls /x/usr/fnf/bin/*
/x/usr/fnf/bin/OLDbru
/x/usr/fnf/bin/analyze
/x/usr/fnf/bin/beep
fishpond:1580> ls /x/usr/fnf/bin/*	(I actually typed "ls <ESC><.>")
/x/usr/fnf/bin/OLDbru
/x/usr/fnf/bin/analyze
/x/usr/fnf/bin/beep
fishpond:1581> exit
fishpond:1583> exit

script done on Sat Aug 27 12:42:05 1988
-- 
# Fred Fish, 1346 West 10th Place, Tempe, AZ 85281,  USA
# noao!nud!fishpond!fnf                   (602) 921-1113



More information about the Comp.unix.wizards mailing list