Skip to content

Commit 14ea922

Browse files
committed
Use posix section 2.9.4.2
Signed-off-by: Harmen Stoppels <me@harmenstoppels.nl>
1 parent e9fb6c4 commit 14ea922

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

cc.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ esac
356356
# In vcheck mode, nothing is added in terms of extra search paths or
357357
# libraries.
358358
if [ -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
@@ -369,7 +369,7 @@ fi
369369
# Finish setting up the mode.
370370
if [ -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"
434434
if [ "$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
@@ -446,7 +446,7 @@ fi
446446
add_rpaths=true
447447
if [ "$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

test/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fail() {
6262
# no trailing newline.
6363
concat() {
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"

0 commit comments

Comments
 (0)