The '-e' option to echo and brace expansion are not guaranteed to be supported by a POSIX-compliant /bin/sh (e.g. dash)
Showing the changes to scripts (2 of 2 files). Show all
Unified · Split
| @@ -18,7 +18,7 @@ compiler="$*" · 17 unmodified lines | ||
| 18 | 18 | |
| 19 | 19 | if [ ${#compiler} -eq 0 ]; then |
| 20 | 20 | echo "Error: No compiler specified." |
| 21 | − echo -e "Usage:\n\t$0 <gcc-command>" | |
| 21 | + printf "Usage:\n\t$0 <gcc-command>\n" | |
| 22 | 22 | exit 1 |
| 23 | 23 | fi |
| 24 | 24 | |
| @@ -65,7 +65,7 @@ sed -n -e '/^.*\/libc-\([^/]*\)\.so$/{s//\1/;p;q}' < /proc/self/maps · 64 unmodified lines | ||
| 65 | 65 | ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n 1 | awk \ |
| 66 | 66 | 'NR==1{print "Dynamic linker (ldd) ", $NF}' |
| 67 | 67 | |
| 68 | −ls -l /usr/lib/lib{g,stdc}++.so 2>/dev/null | awk -F. \ | |
| 68 | +ls -l /usr/lib/libg++.so /usr/lib/libstdc++.so 2>/dev/null | awk -F. \ | |
| 69 | 69 | '{print "Linux C++ Library " $4"."$5"."$6}' |
| 70 | 70 | |
| 71 | 71 | ps --version 2>&1 | grep version | awk \ |