From: Herbert Xu Date: Sat, 26 May 2007 01:10:36 GMT Subject: Re: Bug: git-rebase goofs up \n in commit messages Message-ID: <20070526011036.GA4169@gondor.apana.org.au> In-Reply-To: <20070526004028.GA8940@sigill.intra.peff.net> On Fri, May 25, 2007 at 08:40:28PM -0400, Jeff King wrote: > > Hmm. It even happens with this: > > bash$ export test=$(echo foo \\n bar) > bash$ dash > dash$ echo $test > foo > bar > > I'm not sure what the best workaround is. I am cc'ing Herbert Xu to see > if he has any helpful comments. If you need to echo something that may have escapes in it, the portable way to do it is printf '%s\n' "$test" Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt