From: Andre Noll Date: Fri, 24 Aug 2007 17:06:30 +0000 (+0200) Subject: gsu: Replace "$*" by "$@". X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=e264bb74ebea7f0e9b783514f2abff6b83cc2421;p=gsu.git gsu: Replace "$*" by "$@". This allows to pass parameters containing spaces. --- 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