From: Peter Stephenson <p.stephenson@samsung.com>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Re: [BUG] 'exec' runs shell functions and builtins
Date: Wed, 26 Jul 2017 13:53:38 +0100 [thread overview]
Message-ID: <20170726135338.07aa2ae8@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <fd2a215e-5832-f135-c69d-a1f4e1a6c99e@inlv.org>
This clarifies the normal behaviour.
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 333db1c..cbaf67a 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -675,6 +675,10 @@ executed.
See ifzman(the section `Precommand Modifiers' in zmanref(zshmisc))\
ifnzman(noderef(Precommand Modifiers)).
+If the option tt(POSIX_BUILTINS) is not set, var(command) may be
+interpreted as a shell builtin command or shell function: this is run as
+normal (as if tt(exec) were not present), then the shell exits.
+
cindex(redirection, current shell's I/O)
If var(command) is omitted but any redirections are specified,
then the redirections will take effect in the current shell.
pws
next prev parent reply other threads:[~2017-07-26 12:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20170725221050epcas4p131de822f47289e279c7de12de0d6c127@epcas4p1.samsung.com>
2017-07-25 21:49 ` Martijn Dekker
2017-07-26 9:23 ` Peter Stephenson
2017-07-26 9:27 ` Peter Stephenson
2017-07-26 12:53 ` Peter Stephenson [this message]
2017-08-04 15:34 ` Stephane Chazelas
2017-07-26 17:46 ` Bart Schaefer
2017-07-26 17:48 ` Bart Schaefer
2017-07-27 9:02 ` Peter Stephenson
2017-07-28 17:58 ` Bart Schaefer
2017-08-11 15:10 ` Kamil Dudka
2017-08-11 15:25 ` Peter Stephenson
2017-08-14 7:19 ` Kamil Dudka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170726135338.07aa2ae8@pwslap01u.europe.root.pri \
--to=p.stephenson@samsung.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).