@@ -196,6 +196,7 @@ execute() {
196196 output_log=" $SPACK_DEBUG_LOG_DIR /spack-cc-$SPACK_DEBUG_LOG_ID .out.log"
197197 echo " [$mode ] $command $input_command " >> " $input_log "
198198 IFS=" $lsep "
199+ # shellcheck disable=SC2086
199200 echo " [$mode ] " $full_command_list >> " $output_log "
200201 unset IFS
201202 fi
@@ -437,9 +438,10 @@ export PATH="$new_dirs"
437438
438439if [ " $mode " = vcheck ]; then
439440 full_command_list=" $command "
440- args=" $@ "
441441 extend full_command_list vcheck_flags
442- extend full_command_list args
442+ for arg in " $@ " ; do
443+ append full_command_list " $arg "
444+ done
443445 execute
444446fi
445447
@@ -580,6 +582,7 @@ categorize_arguments() {
580582 eval " \
581583 stripped=\"\$ {1##$before }\"
582584 "
585+ # shellcheck disable=SC2154 # shellcheck doesn't see eval
583586 if [ " $stripped " = " $1 " ] ; then
584587 continue
585588 fi
@@ -633,6 +636,7 @@ categorize_arguments() {
633636 ;;
634637 -Wl,* )
635638 IFS=,
639+ # shellcheck disable=SC2086 # intentional splitting
636640 if ! parse_Wl ${1# -Wl,} ; then
637641 append return_other_args_list " $1 "
638642 fi
@@ -803,7 +807,8 @@ case "$mode" in
803807esac
804808
805809IFS=" $lsep "
806- categorize_arguments $spack_flags_list
810+ # shellcheck disable=SC2086 # intentional splitting
811+ categorize_arguments $spack_flags_list
807812unset IFS
808813
809814assign_path_lists spack_flags_isystem_include_dirs_list return_isystem_include_dirs_list
0 commit comments