Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!uunet!mcsun!ukc!warwick!cudcv From: cudcv@warwick.ac.uk (Rob McMahon) Newsgroups: gnu.bash.bug Subject: Re: Some minor bash nits/wouldlikes Message-ID: <200@titania.warwick.ac.uk> Date: 3 Sep 89 18:47:07 GMT References: <197@titania.warwick.ac.uk> <8909021449.AA14827@aurel.caltech.edu> Reply-To: cudcv@warwick.ac.uk (Rob McMahon) Distribution: gnu Organization: Computing Services, Warwick University, UK Lines: 29 In article <8909021449.AA14827@aurel.caltech.edu> bfox@aurel.caltech.edu writes: | > bash$ hairy-function argument | > bash$ !!:s/argument/another-argument & <- user wants to background this job. | | bash$ !!:s/argument/another-argument/ & | or | bash$ !!:s/argument/another-argument \& | or even | bash$ !!:s/argument/another-&/ & | :-) | | This is very useful sometimes for small additions to long replacements. | |How about: | |bash$ hairy-function argument |bash$ ^ar^another-ar^ & Fine, unless `hairy-function' was `ar xov /var/tmp/libarc.a' ... You may need to type a lot to ensure uniqueness. I know that in bash you can just use ^P and edit it, but sometimes the ^...^... form is more convenient, especially if it is a command which takes a fair time to complete, so that you can type this in while you're waiting. Rob -- UUCP: ...!mcvax!ukc!warwick!cudcv PHONE: +44 203 523037 JANET: cudcv@uk.ac.warwick ARPA: cudcv@warwick.ac.uk Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England