summaryrefslogtreecommitdiff
path: root/Doc/help/unset
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2020-02-16 03:29:19 +0100
committerAxel Beckert <abe@deuxchevaux.org>2020-02-16 03:29:19 +0100
commit2794556a41b50f635b6aa49c32fc6ca7bc08c901 (patch)
tree9557d7a073d4b24e9f10cdc337d9a819eb65ad1a /Doc/help/unset
parentb0d5cb56971618762ab13dbdb8fb17753f07f0f6 (diff)
parent94c033d2e281eb1f49e8366d21fc259ce8c0c4f5 (diff)
downloadzsh-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/unset')
-rw-r--r--Doc/help/unset20
1 files changed, 20 insertions, 0 deletions
diff --git a/Doc/help/unset b/Doc/help/unset
new file mode 100644
index 000000000..a48687fd5
--- /dev/null
+++ b/Doc/help/unset
@@ -0,0 +1,20 @@
+unset [ -fmv ] name ...
+ Each named parameter is unset. Local parameters remain local
+ even if unset; they appear unset within scope, but the previous
+ value will still reappear when the scope ends.
+
+ Individual elements of associative array parameters may be unset
+ by using subscript syntax on name, which should be quoted (or
+ the entire command prefixed with noglob) to protect the sub-
+ script from filename generation.
+
+ If the -m flag is specified the arguments are taken as patterns
+ (should be quoted) and all parameters with matching names are
+ unset. Note that this cannot be used when unsetting associative
+ array elements, as the subscript will be treated as part of the
+ pattern.
+
+ The -v flag specifies that name refers to parameters. This is
+ the default behaviour.
+
+ unset -f is equivalent to unfunction.