Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: return command's exit code from _call
- X-seq: zsh-workers 11328
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Re: PATCH: return command's exit code from _call
- Date: Thu, 11 May 2000 15:47:24 +0000
- In-reply-to: <391AD206.7A5B2523@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <391AD206.7A5B2523@xxxxxxxxxxxxx>
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