Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: $(<nofile) doesn't set $? to non-zero
- X-seq: zsh-workers 42464
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: $(<nofile) doesn't set $? to non-zero
- Date: Wed, 14 Mar 2018 14:50:04 +0000
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180314145008euoutp01e4db60b5f82ef20349c2232b78d99501~b0OtIP9E22357723577euoutp01k
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1521039008; bh=pdmrKhnPjm5Dl7whKvFPaoGmaQCT/W63KMCgFzBZngk=; h=Date:From:To:Subject:In-reply-to:References:From; b=S6AiqMdYl7C0jGqMKd6MxWw3kcRefRJ1qoTvE6+5/vTGfNNUqutDDuv2VcCbIzCR4 6Leh41pVcEBQ7cwJuM9ELHeBYXZ4krvl9qc4jrrhqMVxfqudmnhJS8fcR81QMNGXHW zw8QF0JhXyOLwqbeQnb0RmJj9GiNsPfpY1tjb1JQ=
- In-reply-to: <20180314144248.GC10404@chaz.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: SCSC
- References: <CGME20180314103335epcas4p30222f0df02adda27cbddbe62075ff9ad@epcas4p3.samsung.com> <20180314103254.GA10404@chaz.gmail.com> <20180314105442.28c5554a@camnpupstephen> <20180314144248.GC10404@chaz.gmail.com>
On Wed, 14 Mar 2018 14:42:48 +0000
Stephane Chazelas <stephane.chazelas@xxxxxxxxx> wrote:
> Would it be worth doing some:
>
> ret = readoutput(stream, qt);
> if (errno) {
> zwarn("%e: %s", errno, s);
> lastval = cmdoutval = 1;
> }
> return ret;
>
> there (or something cleaner to avoid relying on errno)?
The return value is the linked list as we're in the context of
substitution, not command execution, which isn't easy to change without
a complete rewrite.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author