From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27598 invoked by alias); 28 Jul 2017 17:59:09 -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: 41473 Received: (qmail 21376 invoked from network); 28 Jul 2017 17:59:09 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f193.google.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(209.85.216.193):SA:0(0.5/5.0):. Processed in 1.65808 secs); 28 Jul 2017 17:59:09 -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=0.5 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_SPAM,SPF_PASS, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.216.193 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=IQ1JFsNnNFZ106/hL8iLqRoFRSgKB4xBJH/YxIPvwh0=; b=N3TGCwVQy/bUYvrN47o6V+jy+aSWlT6aBYP54hUJbIomPS8u0iKqOLGUyB38a1bQb7 BLNG8grlR+jXhJ/sF1VNb/OhJkE9T2fpyvOuPEGyT5nIvngPnyKVr24rXqsGCStWtB/x VUg6lINBt+OViU0cjeG6mKBisziJ4/mAaGdeRhVorCi19VVINXxMDb5bL56HRfYnD6jO hWi1MdgYusyd/Z5vk9sOR7QhTMNxkNT8dy9XCq7b8vPIogo2HC0W8mnl/1p50u29EnPO Pl29TwsFYIN64AlS4oz5y83AJVQGKhBiVCUprMLzbV7vASFro2mTIVh70vdDzZWQY6Dz Nf5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=IQ1JFsNnNFZ106/hL8iLqRoFRSgKB4xBJH/YxIPvwh0=; b=XYqDAMvXQuyVpvjyDBaZoJ/KpcIFd9L17GJlcFLfe+4quV+6wO7Nmqok7FQILRcip+ o4dUlJ575KBpkpMFLAsUmbIr2o68SMvKyRGVzh2zRh75uMMt/YagX+5vRI9ihYVnCjUB cNdkLHjbrE3NU972zEXYluYUO4UgvDiag9+SD1rXVYY7iR5kmla3AfnxUKf2t7d/2xKM PTHB7H7/FU3LxfK2wkEea6R6iYk0/u4pZN2Ya8rPXMIZ1Hy5ODArBGa6c+zWDgwQ4GnG D7A9wtsgYugfHp9ABfx9Axy8WoskN5oiMx6p31LepFAeNtDFZPZruvUhmoGyPv+4IdbT fqmg== X-Gm-Message-State: AIVw110XkoEX1sOZvrt/JamLj0Q3gryq0+4oyhKEjYItyBcDs7zChZUs jzOHJ6AEWkVSH44glTumjWP/6dGz3FWvYxc= X-Received: by 10.237.59.72 with SMTP id q8mr12166759qte.199.1501264740380; Fri, 28 Jul 2017 10:59:00 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20170727100206.4dda10d9@pwslap01u.europe.root.pri> References: <20170727100206.4dda10d9@pwslap01u.europe.root.pri> From: Bart Schaefer Date: Fri, 28 Jul 2017 10:58:59 -0700 Message-ID: Subject: Re: [BUG] 'exec' runs shell functions and builtins To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" On Thu, Jul 27, 2017 at 2:02 AM, Peter Stephenson wrote: > > % (setopt posixbuiltins; exec command echo foo) > zsh: command not found: command Chet Ramey emailed me: ===== "However, all of the standard utilities, including the regular built-ins in the table, but not the special built-ins described in Special Built-In Utilities, shall be implemented in a manner so that they can be accessed via the exec family of functions as defined in the System Interfaces volume of POSIX.1-2008 and can be invoked directly by those standard utilities that require it (env, find, nice, nohup, time, xargs)." `command' is explicitly listed in the table in http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap01.html#tag_17_06 ===== So "exec command ..." is actually supposed to work, as is "exec read", "exec getopts", etc. Urk.