Shell quoting is difficult

This commit is contained in:
Erik Schnetter 2016-02-14 11:34:08 -05:00
parent a06e29fecb
commit 9868333e8e

2
lib/spack/env/cc vendored
View file

@ -188,7 +188,7 @@ while [ -n "$1" ]; do
done
elif [[ $arg == '-rpath' ]]; then
shift; arg="$1"
if [[ $arg != "-Wl,*" ]]; then
if [[ $arg != '-Wl,'* ]]; then
die "-Wl,-rpath was not followed by -Wl,*"
fi
arg="${arg#-Wl,}"