From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id e01b2543 for ; Wed, 14 Nov 2018 01:43:44 +0000 (UTC) Received: (qmail 21641 invoked by alias); 14 Nov 2018 01:43:27 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23758 Received: (qmail 3033 invoked by uid 1010); 14 Nov 2018 01:43:27 -0000 X-Qmail-Scanner-Diagnostics: from mail-ed1-f48.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.100.2/25112. spamassassin: 3.4.2. Clear:RC:0(209.85.208.48):SA:0(-2.0/5.0):. Processed in 2.702489 secs); 14 Nov 2018 01:43:27 -0000 X-Envelope-From: manabu.matsui@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=9sO5gp6xZh9gLLsmvWNqua1OCLUNqZ5e36EInOIeVlE=; b=KxYvEAhPd3L+M9O1ANtN4f8NRMD5Qu38VkM3ThTPPpG5uiNtJOpbqY9nub2+zI5jZq DPMiOmvUitDpkJtS5oGAjeB/qRonQ1GoSg8uw25Iy0wuVgvF3pDjT1YUXrMb7bloczbN IONzz66FWWgdx93JxZww2XtB5gj/yw08nKZmHkDuMqOKaAy8KWu3FIkz+WXs8KcWu7pu G6rtYTQ2x9lmo+lrqQSc8Bx6aDX+/5ylu9wz+XpWg1MePxeR3XAo0lUbgwEbaELbf1A3 pa6d96j7wVoNm5eNpn3hr8bQdC3oIp28pO0GMH+3nm7TrM+owhTLsSutaEELIo2/Pgyf Ic+w== X-Gm-Message-State: AGRZ1gI7NEgOoeQBnuiuIW1tCHBnrBl+uUuPl0pitJTar97GgrPR0msG ISsJXyn7TLY+sdA2bjFKmB1mda/n+iUZaAIJ6qO2nXko X-Google-Smtp-Source: AJdET5dgAKPVL1a+XPfe2HY3HxqAyeBlQSnKXuqzJWoHqpM9oFI+ur33+R55uT7nJ9ulj/cQwQSp+Q583V+xiXBodDw= X-Received: by 2002:a17:906:5a0a:: with SMTP id p10-v6mr250441ejq.43.1542159799524; Tue, 13 Nov 2018 17:43:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Manabu Matsui Date: Wed, 14 Nov 2018 10:43:07 +0900 Message-ID: Subject: Re: Strange behavior of $jobstates To: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" On 13 Nov 2018, at 16:53, dana 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