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/setopt | |
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/setopt')
-rw-r--r-- | Doc/help/setopt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Doc/help/setopt b/Doc/help/setopt new file mode 100644 index 000000000..4478a1ed2 --- /dev/null +++ b/Doc/help/setopt @@ -0,0 +1,27 @@ +setopt [ {+|-}options | {+|-}o option_name ] [ -m ] [ name ... ] + Set the options for the shell. All options specified either + with flags or by name are set. + + If no arguments are supplied, the names of all options currently + set are printed. The form is chosen so as to minimize the dif- + ferences from the default options for the current emulation (the + default emulation being native zsh, shown as <Z> in zshop- + tions(1)). Options that are on by default for the emulation are + shown with the prefix no only if they are off, while other op- + tions are shown without the prefix no and only if they are on. + In addition to options changed from the default state by the + user, any options activated automatically by the shell (for ex- + ample, SHIN_STDIN or INTERACTIVE) will be shown in the list. + The format is further modified by the option KSH_OPTION_PRINT, + however the rationale for choosing options with or without the + no prefix remains the same in this case. + + If the -m flag is given the arguments are taken as patterns + (which should be quoted to protect them from filename expan- + sion), and all options with names matching these patterns are + set. + + Note that a bad option name does not cause execution of subse- + quent shell code to be aborted; this is behaviour is different + from that of `set -o'. This is because set is regarded as a + special builtin by the POSIX standard, but setopt is not. |