From e264bb74ebea7f0e9b783514f2abff6b83cc2421 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 24 Aug 2007 19:06:30 +0200 Subject: [PATCH] gsu: Replace "$*" by "$@". This allows to pass parameters containing spaces. --- funcs/gsu | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/funcs/gsu b/funcs/gsu index 4c9eb2d..136eda6 100644 --- a/funcs/gsu +++ b/funcs/gsu @@ -178,6 +178,8 @@ export -f gsu_print_available_commands gsu() { + local i + gsu_self="$(basename $0)" gsu_init_errors gsu_available_commands @@ -191,7 +193,8 @@ gsu() shift for i in $gsu_cmds; do if test "$arg" = "$i"; then - com_$arg $* + com_$arg "$@" + ret=1 if test $ret -lt 0; then gsu_err_msg exit 1 -- 2.39.2