Remove bashisms from scripts
authordann frazier <dannf@debian.org>
Fri, 5 Jun 2009 22:02:49 +0000 (15:02 -0700)
committerSam Ravnborg <sam@ravnborg.org>
Tue, 9 Jun 2009 20:37:54 +0000 (22:37 +0200)
The '-e' option to echo and brace expansion are not guaranteed to be supported
by a POSIX-compliant /bin/sh (e.g. dash)

Signed-off-by: dann frazier <dannf@debian.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/gcc-version.sh
scripts/ver_linux

index cc767b388baf7b30ef04b61650911069818d7ba0..debecb5561c481d8076cb97b36857878e6becb37 100644 (file)
@@ -18,7 +18,7 @@ compiler="$*"
 
 if [ ${#compiler} -eq 0 ]; then
        echo "Error: No compiler specified."
-       echo -e "Usage:\n\t$0 <gcc-command>"
+       printf "Usage:\n\t$0 <gcc-command>\n"
        exit 1
 fi
 
index dbb3037f13464893a1a0637435a8598ea59f88cf..7de36df4eaa5877057bf63c6c929debb99e75e90 100755 (executable)
@@ -65,7 +65,7 @@ sed -n -e '/^.*\/libc-\([^/]*\)\.so$/{s//\1/;p;q}' < /proc/self/maps
 ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \
 'NR==1{print "Dynamic linker (ldd)  ", $NF}'
 
-ls -l /usr/lib/lib{g,stdc}++.so  2>/dev/null | awk -F. \
+ls -l /usr/lib/libg++.so /usr/lib/libstdc++.so  2>/dev/null | awk -F. \
        '{print "Linux C++ Library      " $4"."$5"."$6}'
 
 ps --version 2>&1 | grep version | awk \