else
txt="${gsu_error_txt[$err]}"
fi
- echo "$gsu_self: $txt" 1>&2
+ gsu_msg "$txt"
}
export -f gsu_err_msg
gsu()
{
+ local i
+
gsu_self="$(basename $0)"
gsu_init_errors
gsu_available_commands
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