🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.bash.bug
Article #531

Re: Some minor bash nits/wouldlikes

#531
From: Rob McMahon
Date: Sat, 02 Sep 1989 12:45
21 lines
1292 bytes
In article <8909011533.AA11301@aurel.caltech.edu> bfox@aurel.caltech.edu writes:
>THe ampersand is replaced by the matched text?  What if you are just adding
>an ampersand, which seems to me to be a common case:
>
>	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.

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
Technical Details
Message-ID: <197@titania.warwick.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcsun!ukc!warwick!cudcv
References: <8909010622.AA04478@baby.bby.oz> <8909011533.AA11301@aurel.caltech.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!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: <197@titania.warwick.ac.uk>
Date: 2 Sep 89 12:45:18 GMT
References: <8909010622.AA04478@baby.bby.oz> <8909011533.AA11301@aurel.caltech.edu>
Reply-To: cudcv@warwick.ac.uk (Rob McMahon)
Distribution: gnu
Organization: Computing Services, Warwick University, UK
Lines: 21