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=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 f3b9ad16 for ; Wed, 10 Apr 2019 14:40:43 +0000 (UTC) Received: (qmail 19606 invoked by alias); 10 Apr 2019 14:40: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: 23924 Received: (qmail 10890 invoked by uid 1010); 10 Apr 2019 14:40:27 -0000 X-Qmail-Scanner-Diagnostics: from mailout1.w1.samsung.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.1/25412. spamassassin: 3.4.2. Clear:RC:0(210.118.77.11):SA:0(-7.0/5.0):. Processed in 2.301654 secs); 10 Apr 2019 14:40:27 -0000 X-Envelope-From: p.stephenson@samsung.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.samsung.com designates 210.118.77.11 as permitted sender) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190410143949euoutp01bfe02203e85ab147636893d5667a79b1~UI9nBBNd82468524685euoutp01L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1554907189; bh=AM46fLDbyZPJNWYmsHFJRYGV9sREJ4IKZjz2eVrNrHQ=; h=Subject:From:To:Date:In-Reply-To:References:From; b=c5qB3SHxaO/wva6UqDsm37mtb7OureS6npb27kVdq5lKZIYnMxRhKknA9A/OyhxBo fLrr8Jj9Cylmfp3FwwqXVvcaYXXt5vZkpT4DPvgwI4VAOdI0CoJKdU4H1zE3yGi7Wj TJmM1Zk9hXX8WHhqhAVNkC+g4S+aT4A1kHNTtAQo= X-AuditID: cbfec7f2-f13ff700000010ca-0f-5cae00341610 Message-ID: <1554907186.6252.12.camel@samsung.com> Subject: Re: print builtin preceded by parameter assignment From: Peter Stephenson To: Date: Wed, 10 Apr 2019 15:39:46 +0100 In-Reply-To: <20190410141113.GD15169@cventin.lip.ens-lyon.fr> X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDIsWRmVeSWpSXmKPExsWy7djPc7omDOtiDFa/0LHYcXIlowOjx6qD H5gCGKO4bFJSczLLUov07RK4MuYfn8Ba0M9Zsb71L1sD4wb2LkZODgkBE4kJW9tZQWwhgRWM EqdmMHcxcgHZPUwS207NYIRIdDNJTPugANPQ23iYBSK+nFFi9ttIiAagmr7Nv1khnDOMEkcO P2KCcC4AOVdvg+3gFTCS6Fu0kxnEFhawlviz9AvYKDYBQ4mpm2aDrRMREJd4NvMbUJyDg0VA VeLvVrAwp4CtxOOdp1khrtCQ2HDzGBPESEGJkzOfgI1hFpCXaN46G+wFCYHHbBJL709hhmhw kfjfsJwJwhaWeHV8C9T/MhKnJ/ewQDS0M0qsmfSaHcLpYZTYdPQOI0SVtUTf7YuMIBcxC2hK rN+lDxF2lDh67DlYWEKAT+LGW0GII/gkJm2bzgwR5pXoaBOCqFaT2NG0FapaRuLpGoUJjEqz kHwwC8kHsxBWLWBkXsUonlpanJueWmyYl1quV5yYW1yal66XnJ+7iRGYBk7/O/5pB+PXS0mH GAU4GJV4eC1+ro0RYk0sK67MPcQowcGsJML78c2aGCHelMTKqtSi/Pii0pzU4kOM0hwsSuK8 1QwPooUE0hNLUrNTUwtSi2CyTBycUg2Moc1SE88caFH5HJx1Upbxx+3/3mzLHuhMush9KERe 0GLRRc5ZD184nn9zQWanydO0Z51e9TznLzIwO09rnXbc80nViawbPfrVGsHJJ3clcAqsfZX6 /+mrCtaumUwdvoVS/pxP83b5v3d6YrZlhfBlPSum+XXmnpp3d+amf77iWXH+AH+dd7ujEktx RqKhFnNRcSIAZz/7T/8CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpikeLIzCtJLcpLzFFi42I5/e/4XV1jhnUxBjPa9C12nFzJ6MDoserg B6YAxig9m6L80pJUhYz84hJbpWhDCyM9Q0sLPSMTSz1DY/NYKyNTJX07m5TUnMyy1CJ9uwS9 jPnHJ7AW9HNWrG/9y9bAuIG9i5GTQ0LARKK38TBLFyMXh5DAUkaJ04s7mCASMhKfrnyEKhKW +HOtiw2iqJNJ4tiN6awQzhlGiatr1kI5Fxglzk2/ywjSwitgJNG3aCcziC0sYC3xZ+kXFhCb TcBQYuqm2WA1IgLiEs9mfgOKc3CwCKhK/N0KFuYUsJV4vPM01Mx3jBIr9u9nBUkwC2hKtG7/ DXWShsSGm8eYIHYJSpyc+YQFokZeonnrbOYJjEKzkLTMQlI2C0nZAkbmVYwiqaXFuem5xUZ6 xYm5xaV56XrJ+bmbGIHhv+3Yzy07GLveBR9iFOBgVOLhDZi+JkaINbGsuDL3EKMEB7OSCO/H N0Ah3pTEyqrUovz4otKc1OJDjKZAD01klhJNzgfGZl5JvKGpobmFpaG5sbmxmYWSOO95g8oo IYH0xJLU7NTUgtQimD4mDk6pBsasacp7j6W2mR7yYJ936908J/59N4tuJLS/sT2kyVZtoR2w V+NXUBJbxwxfI5OkZ/niIvOfP5x77fGtZap80dmV86880ylcXWDRXiZYpS69PVH2X4LFtGlc QuusE3/NnLKG5YrWlRJVI+9tO/9lL9O4N2/5Qb+a3918rydUVu/KYPj7r1Dwt4MSS3FGoqEW c1FxIgATPS6SlQIAAA== X-CMS-MailID: 20190410143948eucas1p240d7493818f61b458030aa812fbcaf11 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190410125753epcas1p4052249a86c562165e1fe2a485d70e70b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190410125753epcas1p4052249a86c562165e1fe2a485d70e70b References: <20190410125557.GA19114@cventin.lip.ens-lyon.fr> <1554902053.6252.6.camel@samsung.com> <20190410141113.GD15169@cventin.lip.ens-lyon.fr> On Wed, 2019-04-10 at 16:11 +0200, Vincent Lefevre wrote: > 1. If the command name is not a special built-in utility or function, > the variable assignments shall be exported for the execution environment > of the command [...] >  > In this case, the variable assignments should affect the output. I see how you're interpreting this --- the "execution environment of the command" is anything the command happens to do, not just what the environment itself would show, while "the current execution environment", which explicitly isn't affected by a bit you didn't quote and which I assumed included "print" as it is part of the current execution environment, to you is just what happens after the command finishes. In any case, I wasn't planning on changing this --- effectively adding a full local variable behaviour when the intention of the syntax is to export a parameter to the environment is a bit perverse.  If anyone else thinks they can do it without major grief they're welcome to have a go and we can see if the end justifies the means.  Often (but by no means necessarily) this sort of thing breaks more than it fixes. pws