Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Strange behavior of $jobstates
- X-seq: zsh-users 23758
- From: Manabu Matsui <manabu.matsui@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Strange behavior of $jobstates
- Date: Wed, 14 Nov 2018 10:43:07 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=9sO5gp6xZh9gLLsmvWNqua1OCLUNqZ5e36EInOIeVlE=; b=iybigzFmgBmn/F8B7ii9ulFVe9mHoohlyhaSKCST6rFG4l6itveuImIrTaW+rsmAME V2xWgqcBOnn0DVw30DjAlhcGCFXLbE72SLh6p5LiErXT2EVO0ipdnZMf+rcwg079DzF6 Ct6zi5ynM28TjGJXTsAgxy3KW90nwKlemDByaYqIXZSbya4DCfgn2O+e66q7lUHF96N/ hMEq3Y8tHTFkIPtLmg+T8FDpIiX74jNhy2cv0XWNx3Bly+GTYvrYqjDtEhLN7pfyzjdO IW0O7d2g0dSVVSNoM6/OCZHouWEjb7RxeYjNLOI9vMTqT2m70oIf6vQNRN3qYBGTbO0M jqVA==
- In-reply-to: <B00ED18E-7E30-4B13-BE7B-4C60C3657C0A@dana.is>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAN1e-MQb87kK9yhAo6vaaWD-2gXd0qk=9xzJQi=soW6QyH_c0Q@mail.gmail.com> <B00ED18E-7E30-4B13-BE7B-4C60C3657C0A@dana.is>
On 13 Nov 2018, at 16:53, dana <dana@xxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author