X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=funcs%2Fgsu;h=136eda645e86fe39ebb6d8ea863f09487ce3fb79;hb=e264bb74ebea7f0e9b783514f2abff6b83cc2421;hp=4c9eb2dfca2adb897d4bd47f690df9c0884745c5;hpb=725d6bd9c5c8c3670373496cb9c07cab86c3c4ff;p=gsu.git 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