Skip to contentSkip to conversation

master - tests: correcting usage of $@

PATCH Zdenek Kabelac 1 participant 1 message Jul 10, 2017

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=91d6a62fc594152964ea25c44691c02ae23cdb9a
Commit:        91d6a62fc594152964ea25c44691c02ae23cdb9a
Parent:        f161c6ee9fad4d2ddefb97d4837d29360e5bc280
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Jul 7 13:45:04 2017 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Jul 10 14:23:53 2017 +0200

tests: correcting usage of $@

Use "$@" (with quotes) to prevent whitespace problems.

---
 test/shell/lvcreate-thin.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
test/shell/lvcreate-thin.sh +1 -1
index 375d4c0..27cce22 100644
@@ -25,7 +25,7 @@ check_lv_field_modules_()
 	mod=$1
 	shift
 
-	for d in $*; do
+	for d in "$@"; do
 		check lv_field $vg/$d modules $mod
 	done
 }