From: Johannes Sixt Date: Wed, 28 Nov 2007 14:39:14 GMT Subject: Re: [PATCH] Replace instances of export VAR=VAL with VAR=VAL; export VAR Message-ID: <474D7D92.2000106@viscovery.net> In-Reply-To: Johannes Schindelin schrieb: > Hi, > > On Wed, 28 Nov 2007, Johannes Sixt wrote: > >> 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.) This looks good. The other case I'm refering to was also solved in this way. -- Hannes