]> git.tuebingen.mpg.de Git - gsu.git/blobdiff - funcs/gsu
gsu: Kill debug "ret=1".
[gsu.git] / funcs / gsu
index 4c9eb2dfca2adb897d4bd47f690df9c0884745c5..c2304ca0e9ade6d16daba2a74e8071f3306922aa 100644 (file)
--- 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,7 @@ gsu()
        shift
        for i in $gsu_cmds; do
                if test "$arg" = "$i"; then
-                       com_$arg $*
+                       com_$arg "$@"
                        if test $ret -lt 0; then
                                gsu_err_msg
                                exit 1