summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-06-18 08:57:18 -0700
committerGitHub <noreply@github.com>2016-06-18 08:57:18 -0700
commitf9efb746d7f547d972fbe3d268b3aa67df478e55 (patch)
treeac80fd135ece7ddc9f8fe76a2432d0beeccd0b36
parent62b2f2a7c9d54fb864e6aae91f1f47a1b35d1828 (diff)
parent2a4d440003c467f34b072d3128ce4869dc5cd5d2 (diff)
downloadspack-f9efb746d7f547d972fbe3d268b3aa67df478e55.tar.gz
spack-f9efb746d7f547d972fbe3d268b3aa67df478e55.tar.bz2
spack-f9efb746d7f547d972fbe3d268b3aa67df478e55.tar.xz
spack-f9efb746d7f547d972fbe3d268b3aa67df478e55.zip
Merge pull request #1032 from eschnett/eschnett/cc-quotes
Add quotes around file name
-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 1e405ae6e9..bf98b4c354 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[@]}"