Re: [PATCH] Replace instances of export VAR=VAL with VAR=VAL; export VAR
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Nov 28, 2007, 14:29 UTC
- Message-ID
- <Pine.LNX.4.64.0711281428180.27959@racer.site>
- In-Reply-To
- <474D7956.8050401@viscovery.net>
Hi,
On Wed, 28 Nov 2007, Johannes Sixt wrote:
Show 7 quoted lines
> Johannes Schindelin schrieb: > > - s/.*/export GIT_'$uid'_NAME='\''&'\''/p > > + s/.*/GIT_'$uid'_NAME='\''&'\''\nexport > > GIT_'$uid'_NAME/p > > Recently there was a report that \n in the substitution side of s/// is not > supported by all seds :-(
Okay, how about replacing the line with
+ s/.*/GIT_'$uid'_NAME='\''&'\''\ +export GIT_'$uid'_NAME/p
Hmm? (It works here.)
Ciao, Dscho