Skip to content

Commit

Permalink
Remove bashisms from scripts
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
dannf authored and sravnborg committed Jun 9, 2009
1 parent a9eb522 commit bdefe35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/gcc-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion scripts/ver_linux
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit bdefe35

Please sign in to comment.