If a subcommand does not set $ret (like the minimal "hello" example
does), and sets the nounset bash option (set -u), gsu aborts at
the attempt to reference $ret. Fix this flaw by setting $ret to
$GSU_SUCCESS prior to calling the subcommand.
Reported by Congmao Wang.
# external commands
for i in $gsu_cmds; do
if test "$arg" = "$i"; then
# external commands
for i in $gsu_cmds; do
if test "$arg" = "$i"; then
com_$arg "$@"
if (("$ret" < 0)); then
gsu_err_msg
com_$arg "$@"
if (("$ret" < 0)); then
gsu_err_msg