Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 GARFIELD 20/11/84; site garfield.UUCP Path: utzoo!utcsri!garfield!andrew From: andrew@garfield.UUCP (Andrew Draskoy) Newsgroups: net.unix,net.bugs,net.bugs.4bsd Subject: Useful csh alias and free csh bug Message-ID: <2592@garfield.UUCP> Date: Fri, 22-Mar-85 00:29:08 EST Article-I.D.: garfield.2592 Posted: Fri Mar 22 00:29:08 1985 Date-Received: Fri, 22-Mar-85 02:37:32 EST Distribution: net Organization: Memorial U. of Nfld. C.S. Dept., St. John's Lines: 34 Here is a useful csh alias which I use to edit my last command. I'm posting it here since others have told me that they have also found it useful. alias ec source ~/bin/ec where ~/bin/ec contains: echo !-1:q > /tmp/ec$$ $EDITOR /tmp/ec$$ cat /tmp/ec$$ eval `cat /tmp/ec$$` rm /tmp/ec$$ The bug is so minor that I'm not even going to try and fix it, however I thought I'd mention it in case someone is making a list (a very big list) of csh bugs. If you use ec to change your command to "history", you get (for example): history 189 set history=4 190 ls 191 ec -1000 ls% The % at the end is your next prompt. I have not been able to duplicate this behavior in any other manner. -- Andrew Draskoy UUCP: {akgua,allegra,cbosgd,ihnp4,mcvax,utcsri}!garfield!andrew CDNNET: andrew@garfield.mun.cdn -- The opinions expressed above may not represent those of the author after he has had some sleep.