File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 356356# In vcheck mode, nothing is added in terms of extra search paths or
357357# libraries.
358358if [ -z " $mode " ] || [ " $mode " = ld ]; then
359- for arg in " $@ " ; do
359+ for arg; do
360360 case $arg in
361361 -v|-V|--version|-dumpversion)
362362 mode=vcheck
369369# Finish setting up the mode.
370370if [ -z " $mode " ]; then
371371 mode=ccld
372- for arg in " $@ " ; do
372+ for arg; do
373373 case $arg in
374374 -E) mode=cpp; break ;;
375375 -S) mode=as; break ;;
@@ -434,7 +434,7 @@ export PATH="$new_dirs"
434434if [ " $mode " = vcheck ]; then
435435 full_command_list=" $command "
436436 extend full_command_list vcheck_flags
437- for arg in " $@ " ; do
437+ for arg; do
438438 append full_command_list " $arg "
439439 done
440440 execute
446446add_rpaths=true
447447if [ " $mode " = ld ] || [ " $mode " = ccld ]; then
448448 if [ " ${SPACK_SHORT_SPEC#* darwin} " != " ${SPACK_SHORT_SPEC} " ]; then
449- for arg in " $@ " ; do
449+ for arg; do
450450 if [ " $arg " = " -r" ]; then
451451 if [ " $mode " = ld ] || [ " $mode " = ccld ]; then
452452 add_rpaths=false
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ fail() {
6262# no trailing newline.
6363concat () {
6464 _first=1
65- for _piece in " $@ " ; do
65+ for _piece; do
6666 [ -z " $_piece " ] && continue
6767 if [ " $_first " -eq 1 ]; then
6868 printf ' %s' " $_piece "
You can’t perform that action at this time.
0 commit comments