[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#583695: [PATCH 1/2] update-initramfs: use $* instead of $@



Use "$*" where it makes the quoting behavior easier to understand.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
Probably does not belong in this bug log, but I was too lazy to
drop the change.

 update-initramfs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/update-initramfs b/update-initramfs
index 94b8971..33c568b 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -27,7 +27,7 @@ fi
 usage()
 {
 	if [ -n "${1}" ]; then
-		printf "${@}\n\n" >&2
+		printf "${*}\n\n" >&2
 	fi
 	cat >&2 << EOF
 Usage: ${0} [OPTION]...
@@ -62,7 +62,7 @@ chrooted()
 mild_panic()
 {
 	if [ -n "${1}" ]; then
-		printf "${@}\n" >&2
+		printf "${*}\n" >&2
 	fi
 	exit 0
 }
@@ -70,7 +70,7 @@ mild_panic()
 panic()
 {
 	if [ -n "${1}" ]; then
-		printf "${@}\n" >&2
+		printf "${*}\n" >&2
 	fi
 	exit 1
 }
@@ -78,7 +78,7 @@ panic()
 verbose()
 {
 	if [ "${verbose}" = 1 ]; then
-		printf "${@}\n"
+		printf "${*}\n"
 	fi
 }
 
-- 
1.7.1




Reply to: