Path: utzoo!attcan!uunet!husc6!bloom-beacon!gatech!uflorida!umd5!cvl!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: comp.unix.wizards Subject: Re: Should ``csh'' be part of the System V distribution? Keywords: csh==Berkeley shell, should it be in System V or not? Message-ID: <8063@elsie.UUCP> Date: 17 May 88 14:31:38 GMT References: <2599@usceast.UUCP> <2601@usceast.UUCP> <77@denali.stanford.edu> <1072@X.UUCP> Organization: NIH-LEC, Bethesda, MD Lines: 31 > > The only thing I miss is the '!$' construct; > > Perhaps there are subtleties in the csh !$ construct that I am missing, but > in ksh, $_ is the last word of the previous command line. In emacs mode, > ESC . (period) expands immediately into the last word. And, as noted in someone else's earlier article, ESC _ works in vi mode. There are, though, subtleties with $_: Script started on Tue May 17 10:24:53 1988 $ cd /tmp $ tee a b c < /dev/null $ /bin/csh % echo ? a b c >>>> % echo !$ echo ? >>>> a b c % exit $ /etc/ksh $ echo ? a b c >>>> $ echo $_ >>>> c $ exit $ exit script done on Tue May 17 10:25:36 1988 -- ado@ncifcrf.gov ADO is a trademark of Ampex.