about summary refs log tree commit diff
path: root/posix/tst-getconf.sh
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-08-06 04:14:20 -0400
committerMike Frysinger <vapier@gentoo.org>2015-08-09 04:19:12 -0400
commit2c61c19f80e21743ef36bc53597ba893d4836dfc (patch)
tree934d1a8a815e529b6e7d2a914b24c48c0f3cd46a /posix/tst-getconf.sh
parentef086ef8baada5bd485f3f21dde1c9bc10bd6bd5 (diff)
downloadglibc-2c61c19f80e21743ef36bc53597ba893d4836dfc.tar.gz
glibc-2c61c19f80e21743ef36bc53597ba893d4836dfc.tar.xz
glibc-2c61c19f80e21743ef36bc53597ba893d4836dfc.zip
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.
Diffstat (limited to 'posix/tst-getconf.sh')
-rw-r--r--posix/tst-getconf.sh4
1 files changed, 2 insertions, 2 deletions
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