diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2022-05-18 09:06:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 09:06:54 +0200 |
commit | 1185eb9199565303e9767f2e480ae10ac37a1261 (patch) | |
tree | 12435018a0c3522fe60de68db98e09d1442490ef /lib | |
parent | 51fa8e7b5e4f049f3e2474a0b4b62f48b6d959f6 (diff) | |
download | spack-1185eb9199565303e9767f2e480ae10ac37a1261.tar.gz spack-1185eb9199565303e9767f2e480ae10ac37a1261.tar.bz2 spack-1185eb9199565303e9767f2e480ae10ac37a1261.tar.xz spack-1185eb9199565303e9767f2e480ae10ac37a1261.zip |
Compiler wrapper: fix globbing and debug out.log bell chars (#30699)
* Disable globbing
* Split on bell char when dumping cmd to out.log
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/spack/env/cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/spack/env/cc b/lib/spack/env/cc index 9fd0e4dfbc..bef7209bfa 100755 --- a/lib/spack/env/cc +++ b/lib/spack/env/cc @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh -f # shellcheck disable=SC2034 # evals in this script fool shellcheck # # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other @@ -768,7 +768,9 @@ if [ "$SPACK_DEBUG" = TRUE ]; then input_log="$SPACK_DEBUG_LOG_DIR/spack-cc-$SPACK_DEBUG_LOG_ID.in.log" output_log="$SPACK_DEBUG_LOG_DIR/spack-cc-$SPACK_DEBUG_LOG_ID.out.log" echo "[$mode] $command $input_command" >> "$input_log" - echo "[$mode] ${full_command_list}" >> "$output_log" + IFS="$lsep" + echo "[$mode] "$full_command_list >> "$output_log" + unset IFS fi # Execute the full command, preserving spaces with IFS set |