Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Strange parameter visibility
- X-seq: zsh-workers 39379
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Strange parameter visibility
- Date: Sat, 17 Sep 2016 21:55:05 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=PwCulYU69PwL6vDs4a5XJlSe8kzSRmazuzTT0DHbQYY=; b=zZ6SEBvbhAw2Fk+KB7DvXetxM7icZEz7/NK8bqAteFCAXHH7fi4MkT5MjTTck3KZ8S 655Ar/qh/MhBBHXGqIsbUFwDf8r28+yMV4zC8Fq9Q/GEg12oNMqEtIuhXXrAZCkJt0l3 M/GgiAAw89pUg8Qhgc+W9bSY42RQzkFknsxWtHI3j7nrN9e2Rf/RyyU3SWfPG8S1ell/ IUOzKaJ4aFn0zBxdnQzf8HdiNygDQ0wOnXdK5DBMmFe6L4LvWSG5vC2KM09BEaGnMiop 1FA0Q/vb01nJGUXszPSZaTtJ4Pvdcu/P6xM806LKz0Qw0ttgVTnMUWbmPTRoL8t7J7I8 4u4g==
- In-reply-to: <CAH+w=7YtacLo6aY9gT5V27xYbh-wz0Tot1kbPxBiWN1ZXpavRA@mail.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>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <87bmzmtmzq.fsf@alfa.kjonca> <831b307a-a00f-1df7-5136-17fcb769ccaf@gmx.com> <CAH+w=7YtacLo6aY9gT5V27xYbh-wz0Tot1kbPxBiWN1ZXpavRA@mail.gmail.com>
[> workers]
On Sat, Sep 17, 2016 at 9:37 PM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Sat, Sep 17, 2016 at 6:42 PM, Eric Cook <llua@xxxxxxx> wrote:
>>
>> It's a normal assignment just like the x=1. the weirdness is zsh
>> optimizing out a fork in the pipeline, so the scope of the
>> reassignment wasn't just a subshell.
>
> I have to conclude that's a bug -- it's OK to optimize out the fork,
> but not to optimize out its side effects (or cause new ones).
The addvars() that does this is exec.c:2847. I tried copying the
save_/restore_params() wrapper from the nullexec branch near line 3455
(using !forked instead of POSIXBUILTINS as the test), but that results
in core dumps when running "make check". Anybody with a better idea
what's going on here?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author