From: Jeff King Date: Sat, 26 May 2007 07:47:04 GMT Subject: Re: Bug: git-rebase goofs up \n in commit messages Message-ID: <20070526074703.GA2563@coredump.intra.peff.net> In-Reply-To: <20070526073855.GA6395@gondor.apana.org.au> On Sat, May 26, 2007 at 05:38:55PM +1000, Herbert Xu wrote: > Yep. Section 2.2.3 says that the backslash within double quotes will > only serve as an escape character for $, `, ", \ and . Of > course, you can always use a single quote instead, i.e., > > printf '%s\n' "$VAR" > > Then there can be no doubt :) Right, I wasn't sure if the single quotes were necessary, but it looks like Junio's version (with doublequotes) is also fine according to POSIX. Thanks again. -Peff