From 421b83dc9dc9cde8644bf343cc23c01a6752c826 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Sun, 26 Apr 2015 17:14:16 -0400 Subject: [PATCH] Fix: test: use "$@" to pass and quote argument MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ${*} expands wildcard and does not preserve initial arguments. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- tests/utils/utils.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index 1a8056d02..4282fbb69 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -138,12 +138,12 @@ function lttng_enable_kernel_syscall() function lttng_enable_kernel_syscall_ok() { - lttng_enable_kernel_syscall 0 ${*} + lttng_enable_kernel_syscall 0 "$@" } function lttng_enable_kernel_syscall_fail() { - lttng_enable_kernel_syscall 1 ${*} + lttng_enable_kernel_syscall 1 "$@" } function lttng_disable_kernel_syscall() @@ -178,12 +178,12 @@ function lttng_disable_kernel_syscall() function lttng_disable_kernel_syscall_ok() { - lttng_disable_kernel_syscall 0 ${*} + lttng_disable_kernel_syscall 0 "$@" } function lttng_disable_kernel_syscall_fail() { - lttng_disable_kernel_syscall 1 ${*} + lttng_disable_kernel_syscall 1 "$@" } function lttng_enable_kernel_channel() @@ -204,12 +204,12 @@ function lttng_enable_kernel_channel() function lttng_enable_kernel_channel_ok() { - lttng_enable_kernel_channel 0 ${*} + lttng_enable_kernel_channel 0 "$@" } function lttng_enable_kernel_channel_fail() { - lttng_enable_kernel_channel 1 ${*} + lttng_enable_kernel_channel 1 "$@" } function lttng_disable_kernel_channel() @@ -230,12 +230,12 @@ function lttng_disable_kernel_channel() function lttng_disable_kernel_channel_ok() { - lttng_disable_kernel_channel 0 ${*} + lttng_disable_kernel_channel 0 "$@" } function lttng_disable_kernel_channel_fail() { - lttng_disable_kernel_channel 1 ${*} + lttng_disable_kernel_channel 1 "$@" } function start_lttng_relayd -- 2.34.1