Merge pull request #1032 from eschnett/eschnett/cc-quotes

Add quotes around file name
This commit is contained in:
Todd Gamblin 2016-06-18 08:57:18 -07:00 committed by GitHub
commit f9efb746d7

4
lib/spack/env/cc vendored
View file

@ -324,8 +324,8 @@ fi
if [[ $SPACK_DEBUG == TRUE ]]; then if [[ $SPACK_DEBUG == TRUE ]]; then
input_log="$SPACK_DEBUG_LOG_DIR/spack-cc-$SPACK_SHORT_SPEC.in.log" 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" output_log="$SPACK_DEBUG_LOG_DIR/spack-cc-$SPACK_SHORT_SPEC.out.log"
echo "[$mode] $command $input_command" >> $input_log echo "[$mode] $command $input_command" >> "$input_log"
echo "[$mode] ${full_command[@]}" >> $output_log echo "[$mode] ${full_command[@]}" >> "$output_log"
fi fi
exec "${full_command[@]}" exec "${full_command[@]}"