[Crosstoolchain-logs] [device-tree-compiler] 73/198: fdtget-runtest.sh: use printf instead of /bin/echo -e

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:55 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.4.x
in repository device-tree-compiler.

commit 1760e7ca03894689118646e229ca9487158cd0e8
Author: Stephen Warren <swarren at nvidia.com>
Date:   Tue Dec 11 10:05:51 2012 -0700

    fdtget-runtest.sh: use printf instead of /bin/echo -e
    
    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 <vapier at gentoo.org> # and implemented-by
    Signed-off-by: Stephen Warren <swarren at nvidia.com>
    Acked-by: David Gibson <david at gibson.dropbear.id.au>
---
 tests/fdtget-runtest.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 shift
 
 verbose_run_log_check "$LOG" $VALGRIND $DTGET "$@"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list