diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2020-02-16 03:29:19 +0100 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2020-02-16 03:29:19 +0100 |
commit | 2794556a41b50f635b6aa49c32fc6ca7bc08c901 (patch) | |
tree | 9557d7a073d4b24e9f10cdc337d9a819eb65ad1a /Doc/help/exec | |
parent | b0d5cb56971618762ab13dbdb8fb17753f07f0f6 (diff) | |
parent | 94c033d2e281eb1f49e8366d21fc259ce8c0c4f5 (diff) | |
download | zsh-2794556a41b50f635b6aa49c32fc6ca7bc08c901.tar.gz zsh-2794556a41b50f635b6aa49c32fc6ca7bc08c901.zip |
Update upstream source from tag 'upstream/5.8'
Update to upstream version '5.8'
with Debian dir b7a9cb7b782a12a49dca06e06ca2554b5a95bf93
Diffstat (limited to 'Doc/help/exec')
-rw-r--r-- | Doc/help/exec | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Doc/help/exec b/Doc/help/exec new file mode 100644 index 000000000..baaddc642 --- /dev/null +++ b/Doc/help/exec @@ -0,0 +1,18 @@ +exec [ -cl ] [ -a argv0 ] [ command [ arg ... ] ] + Replace the current shell with command rather than forking. If + command is a shell builtin command or a shell function, the + shell executes it, and exits when the command is complete. + + With -c clear the environment; with -l prepend - to the argv[0] + string of the command executed (to simulate a login shell); with + -a argv0 set the argv[0] string of the command executed. See + the section `Precommand Modifiers' in zshmisc(1). + + If the option POSIX_BUILTINS is set, command is never inter- + preted as a shell builtin command or shell function. This means + further precommand modifiers such as builtin and noglob are also + not interpreted within the shell. Hence command is always found + by searching the command path. + + If command is omitted but any redirections are specified, then + the redirections will take effect in the current shell. |