From: Stephan Beyer Date: Sun, 18 Jan 2009 09:53:50 GMT Subject: Re: [PATCH/RFC] git-am: Make it easier to see which patch failed Message-ID: <20090118095350.GF11992@leksak.fem-net> In-Reply-To: <20090118094113.GE11992@leksak.fem-net> Stephan Beyer wrote: > Hmm, IIRC if $FIRSTLINE contains \n or something like that, it will > interpret this as newline in some shell/echo implementations. Just in case someone wonders but doesn't dare ask: bash as expected: $ echo 'foo\nbar' foo\nbar $ echo -e 'foo\nbar' foo bar But dash: $ echo 'foo\nbar' foo bar $ echo -e 'foo\nbar' -e foo bar (According to Debian Popularity Contest[1] "dash" is used in more than 10.000 Debian installations, although it doesn't say if it is used for /bin/sh.) 1. http://qa.debian.org/popcon.php?package=dash Regards, Stephan -- Stephan Beyer , PGP 0x6EDDD207FCC5040F