zsh-users
 help / color / mirror / code / Atom feed
From: Manabu Matsui <manabu.matsui@gmail.com>
To: zsh-users@zsh.org
Subject: Re: Strange behavior of $jobstates
Date: Wed, 14 Nov 2018 10:43:07 +0900	[thread overview]
Message-ID: <CAN1e-MSFGN5OXx68C1wjHhYycm33Vc0Z5m=mh6GiPvZbVXr9fA@mail.gmail.com> (raw)
In-Reply-To: <B00ED18E-7E30-4B13-BE7B-4C60C3657C0A@dana.is>

On 13 Nov 2018, at 16:53, dana <dana@dana.is> wrote:
> The difference is the result of faf0035e53 (workers/42702). I guess anything
> that previously used information from the current (soon-to-be-parent) shell,
> like $jobstates and $sysparams[pid], would be affected that way. Seems
> consistent with how the change was described, but i'm not sure

Thank you for your answer.

Does this mean that the parameter expansion processing is changed from
the parent process before fork to the child process after fork?

As a result of this change, the operation of the parameter expansion
having a side effect also has changed. Is this intended?

Before this change (zsh 5.4.2 (x86_64-ubuntu-linux-gnu)):
% a=1
% echo ${a::=2}|cat
2
% echo $a
2

After this change (zsh 5.6.2 (x86_64-apple-darwin18.0.0)):
% a=1
% echo ${a::=2}|cat
2
% echo $a
1

  reply	other threads:[~2018-11-14  1:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-13  4:46 Manabu Matsui
2018-11-13  7:53 ` dana
2018-11-14  1:43   ` Manabu Matsui [this message]
2018-11-14  9:27     ` Peter Stephenson
2018-11-15  0:45       ` Manabu Matsui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN1e-MSFGN5OXx68C1wjHhYycm33Vc0Z5m=mh6GiPvZbVXr9fA@mail.gmail.com' \
    --to=manabu.matsui@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).