From 2c61c19f80e21743ef36bc53597ba893d4836dfc Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 6 Aug 2015 04:14:20 -0400 Subject: fix non-portable `echo -n` usage These scripts use #!/bin/sh explicitly, so make sure they avoid echo -n as different shells treat it differently. Use the portable printf func instead. --- posix/tst-getconf.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'posix') diff --git a/posix/tst-getconf.sh b/posix/tst-getconf.sh index f804457c62..e0582a70bd 100644 --- a/posix/tst-getconf.sh +++ b/posix/tst-getconf.sh @@ -27,7 +27,7 @@ logfile=$common_objpfx/posix/tst-getconf.out rm -f $logfile result=0 while read name; do - echo -n "getconf $name: " >> $logfile + printf %s "getconf $name: " >> $logfile ${run_getconf} "$name" < /dev/null 2>> $logfile >> $logfile if test $? -ne 0; then echo "*** $name FAILED" >> $logfile @@ -205,7 +205,7 @@ XBS5_LPBIG_OFFBIG_LINTFLAGS EOF while read name; do - echo -n "getconf $name /: " >> $logfile + printf %s "getconf $name /: " >> $logfile ${run_getconf} "$name" / < /dev/null 2>> $logfile >> $logfile if test $? -ne 0; then echo "*** $name FAILED" >> $logfile -- cgit v1.2.1