]> www.infradead.org Git - users/sagi/blktests.git/commitdiff
common/rc: Do not mix strings and arrays
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 12 May 2017 19:50:18 +0000 (12:50 -0700)
committerBart Van Assche <bart.vanassche@sandisk.com>
Fri, 12 May 2017 20:26:29 +0000 (13:26 -0700)
Expansion of $@ results in multiple strings. Since that is not intended
in this context, change $@ into $*. Detected by shellcheck.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
common/rc

index 4b9eaa03b15eddb3c9b4a69cd7082f4d3e6be400..1821840cd9a75cd15ec724e5f3e2b1cb408db7ab 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -23,11 +23,11 @@ shopt -s extglob
 . common/fio
 
 _warning() {
-       echo "$0: $@" >&2
+       echo "$0: $*" >&2
 }
 
 _error() {
-       echo "$0: $@" >&2
+       echo "$0: $*" >&2
        exit 1
 }