Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: return command's exit code from _call



On May 11,  4:30pm, Oliver Kiddle wrote:
} Subject: PATCH: return command's exit code from _call
}
} completion for groups had broken again, with ypcat dumping error
} messages over my terminal. The problem was that _call was now being used
} to call ypcat but didn't pass on its exit code.

The exit value of a function is supposed to be the exit value of the last
command that it executed.  That is, "return $?" should be unnecessary; if
$? has the right value to begin with, that's what should be returned by
default.

So if this patch really changed the behavior, then there's another bug
somewhere else (perhaps in the wordcode executor for if/else/fi?).

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author