Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] 'exec' runs shell functions and builtins
- X-seq: zsh-workers 41473
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [BUG] 'exec' runs shell functions and builtins
- Date: Fri, 28 Jul 2017 10:58:59 -0700
- 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==
- In-reply-to: <20170727100206.4dda10d9@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <fd2a215e-5832-f135-c69d-a1f4e1a6c99e@inlv.org> <CGME20170726174645epcas4p4a4e5eb03651c6e4e3509c19c1408e0e6@epcas4p4.samsung.com> <CAH+w=7ZhGm6b-5X+ySsn_VYwUXYRvTG-C_=taC2a0mnjS+sODg@mail.gmail.com> <20170727100206.4dda10d9@pwslap01u.europe.root.pri>
On Thu, Jul 27, 2017 at 2:02 AM, Peter Stephenson
<p.stephenson@xxxxxxxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author