From: Jeff King Date: Wed, 14 Jan 2009 16:56:33 GMT Subject: Re: [PATCH next v2] git-notes: add test case for multi-line notes Message-ID: <20090114165633.GC15758@coredump.intra.peff.net> In-Reply-To: <496E129B.3020502@trolltech.com> On Wed, Jan 14, 2009 at 05:28:11PM +0100, Tor Arne Vestbø wrote: > +MSG=${MSG//%/} > +printf "$MSG" > "$1" > +printf "$MSG" >& 2 Substitution parameter expansion is a bash-ism, IIRC. How about just printf %s "$MSG" ? -Peff