From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24493 invoked by alias); 11 Aug 2017 15:25:13 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 41530 Received: (qmail 5017 invoked by uid 1010); 11 Aug 2017 15:25:13 -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.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(210.118.77.11):SA:0(-5.0/5.0):. Processed in 1.489292 secs); 11 Aug 2017 15:25:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: p.stephenson@samsung.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-AuditID: cbfec7ef-f79ee6d000003120-0e-598dcc5003b8 Date: Fri, 11 Aug 2017 16:25:01 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: [BUG] 'exec' runs shell functions and builtins Message-id: <20170811162501.67a00cda@pwslap01u.europe.root.pri> In-reply-to: <10971700.ghLbJLaWGu@kdudka-nb> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDIsWRmVeSWpSXmKPExsWy7djP87oBZ3ojDZY+0bY42PyQyYHRY9XB D0wBjFFcNimpOZllqUX6dglcGa0TbzAWrGWr2LfmPHsD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 W0RAXOLs2vMsILawgLXEhN2vwep5Bewl1hy+CXYHp4COxIk596E2rGOS+HNxEliCX0Bf4urf T0wQB9pLzLxyhhGiWVDix+R7YEOZBbQkNm9rYoWw5SU2r3nLDGILCahL3Li7m30Co/AsJC2z kLTMQtKygJF5FaNIamlxbnpusZFecWJucWleul5yfu4mRmAkbTv2c8sOxq53wYcYBTgYlXh4 PQ71RAqxJpYVV+YeYpTgYFYS4U053hspxJuSWFmVWpQfX1Sak1p8iNEUGDITmaVEk/OBUZ5X Em9oYmhuaWhkbGFhbmSkJM6rfrkpUkggPbEkNTs1tSC1CKaPiYNTqoFx41a/xrOm+ivNDu18 EWLTbPb5u67kf6/4qNT7/Y1HljU9Eap+qnZFfkdIpvvfoxlP/ORVqy+t3H72uMvveQ+4/Jc3 sPCXrbr4OMsxo7/Sw89t3/UK4ZObufOuLtq7tE1cRjRK+3pW39krJxdd1dx46+5t1nVbv4ZU H7T6w2NZVVAeqPYluVlQiaU4I9FQi7moOBEA4NPmyLoCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170811152504eucas1p283f7d49769a75867dd55e8130f7de8fe X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?UTF-8?B?UGV0ZXIgU3RlcGhlbnNvbhtTQ1NDLURhdGEgUGxhbmUb?= =?UTF-8?B?7IK87ISx7KCE7J6QG1ByaW5jaXBhbCBFbmdpbmVlciwgU29mdHdhcmU=?= X-Global-Sender: =?UTF-8?B?UGV0ZXIgU3RlcGhlbnNvbhtTQ1NDLURhdGEgUGxhbmUbU2Ft?= =?UTF-8?B?c3VuZyBFbGVjdHJvbmljcxtQcmluY2lwYWwgRW5naW5lZXIsIFNvZnR3YXJl?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDA1Q0QwNTAwNTg=?= CMS-TYPE: 201P X-CMS-RootMailID: 20170811151107epcas5p2e957759dcd5c9eabacfd02afdf5ff47e X-RootMTR: 20170811151107epcas5p2e957759dcd5c9eabacfd02afdf5ff47e References: <20170727100206.4dda10d9@pwslap01u.europe.root.pri> <10971700.ghLbJLaWGu@kdudka-nb> On Fri, 11 Aug 2017 17:10:12 +0200 Kamil Dudka wrote: > It is good that zsh does not need this in its native configuration but > how is it supposed to work in the POSIX emulation mode now? > > % (exec cd) > % emulate sh > % (exec cd) > zsh: command not found: cd > > If I understand http://www.zsh.org/mla/workers/2017/msg01138.html correctly, > then the above command should work? I can't actually think of a useful application of the above that would make "work" meaningful. What's the "exec" supposed to be doing? Who would even try to exec a builtin, even if they discover that for some bizarre reason the standard says you can? The one possible use of "exec" in that case might be to ensure you're *not* using a builtin --- but apparently you are? What? pws