]> git.tuebingen.mpg.de Git - gsu.git/blobdiff - subcommand
subcommand: Fix -e of com_prefs().
[gsu.git] / subcommand
index e695b588e14e395169f896d7ce1f354e43615f21..e544ab0252cc0b96eecefc7f489ed0d9892cb468 100644 (file)
@@ -96,7 +96,8 @@ gsu_check_arg_count()
 #      [[ -n "$o_c" ]] && echo "The -c option was given with arg $o_c"
 gsu_getopts()
 {
-       local i c c1 c2 tab='   ' cr='
+       local -i i
+       local c c1 c2 tab='     ' cr='
 '
 
        gsu_check_arg_count $# 1 1
@@ -237,7 +238,7 @@ com_prefs()
                (($? != 0)) && return
                ret=-$E_GSU_EDITOR
                result="${EDITOR:-vi}"
-               "$result" "$conf"
+               "$result" $conf
                (($? != 0)) && return
                ret=$GSU_SUCCESS
                return