summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2016-06-08 19:14:01 -0400
committerErik Schnetter <schnetter@gmail.com>2016-06-08 19:14:01 -0400
commit2a4d440003c467f34b072d3128ce4869dc5cd5d2 (patch)
tree35cbb35e030680e53e901452b69f1e5c26791808 /lib
parent30e8e77fb60b06535b49d54db62781299f555a8d (diff)
downloadspack-2a4d440003c467f34b072d3128ce4869dc5cd5d2.tar.gz
spack-2a4d440003c467f34b072d3128ce4869dc5cd5d2.tar.bz2
spack-2a4d440003c467f34b072d3128ce4869dc5cd5d2.tar.xz
spack-2a4d440003c467f34b072d3128ce4869dc5cd5d2.zip
Add quotes around file name
$input_log will expand to file names with special characters (e.g. "@"), thus bash requires quotes.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/spack/env/cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc
index 9758b74f37..a604785904 100755
--- a/lib/spack/env/cc
+++ b/lib/spack/env/cc
@@ -324,8 +324,8 @@ fi
if [[ $SPACK_DEBUG == TRUE ]]; then
input_log="$SPACK_DEBUG_LOG_DIR/spack-cc-$SPACK_SHORT_SPEC.in.log"
output_log="$SPACK_DEBUG_LOG_DIR/spack-cc-$SPACK_SHORT_SPEC.out.log"
- echo "[$mode] $command $input_command" >> $input_log
- echo "[$mode] ${full_command[@]}" >> $output_log
+ echo "[$mode] $command $input_command" >> "$input_log"
+ echo "[$mode] ${full_command[@]}" >> "$output_log"
fi
exec "${full_command[@]}"