From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson Subject: Re: [PATCH] fdtget-runtest.sh: use printf instead of /bin/echo -e Date: Wed, 7 Nov 2012 11:53:38 +1100 Message-ID: <20121107005338.GN23553@truffula.fritz.box> References: <1352224831-1355-1-git-send-email-swarren@wwwdotorg.org> <20121106232920.GL23553@truffula.fritz.box> <5099AAA1.8090903@wwwdotorg.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <5099AAA1.8090903-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Stephen Warren Cc: Stephen Warren , devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.org On Tue, Nov 06, 2012 at 05:26:09PM -0700, Stephen Warren wrote: > On 11/06/2012 04:29 PM, David Gibson wrote: > > On Tue, Nov 06, 2012 at 11:00:31AM -0700, Stephen Warren wrote: > >> From: Stephen Warren > >> > >> Not all /bin/echo implementations support the -e option. Instead, use > >> printf, which appears to be more widely available than /bin/echo -e. > >> > >> See commit eaec1db "fdtget-runtest.sh: Fix failures when /bin/sh isn't > >> bash" for history. > >> > >> I have tested this on Ubuntu 10.04 with /bin/sh pointing to both dash > >> and bash. > >> > >> Reported-by: Mike Frysinger # and implemented-by > >> Signed-off-by: Stephen Warren > >> --- > >> Mike, should I re-write this with you as the git author? If so, could > >> you please supply an S-o-b line for this? > >> --- > >> tests/fdtget-runtest.sh | 2 +- > >> 1 files changed, 1 insertions(+), 1 deletions(-) > >> > >> diff --git a/tests/fdtget-runtest.sh b/tests/fdtget-runtest.sh > >> index c3a3559..8d8b058 100755 > >> --- a/tests/fdtget-runtest.sh > >> +++ b/tests/fdtget-runtest.sh > >> @@ -8,7 +8,7 @@ rm -f $LOG $EXPECT > >> trap "rm -f $LOG $EXPECT" 0 > >> > >> expect="$1" > >> -/bin/echo -e $expect >$EXPECT > >> +printf '%b\n' "$expect" > $EXPECT > > > > Um.. this is made to apply on top of the /bin/echo patch, but AFAICT > > that was never committed.. > > I believe it's commit eaec1db "fdtget-runtest.sh: Fix failures when > /bin/sh isn't bash"; my local git certainly shows Jon as the committer > for that change. I just pulled from git.jdl.com and I don't see anything after e4b497f367a3b2ae99cc52089a14a221b13a76ef, which was on Oct 16. ??? -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson