summaryrefslogtreecommitdiff
path: root/Doc/help/unhash
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/unhash
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/unhash')
-rw-r--r--Doc/help/unhash23
1 files changed, 23 insertions, 0 deletions
diff --git a/Doc/help/unhash b/Doc/help/unhash
new file mode 100644
index 000000000..a94c55dd4
--- /dev/null
+++ b/Doc/help/unhash
@@ -0,0 +1,23 @@
+unhash [ -adfms ] name ...
+ Remove the element named name from an internal hash table. The
+ default is remove elements from the command hash table. The -a
+ option causes unhash to remove regular or global aliases; note
+ when removing a global aliases that the argument must be quoted
+ to prevent it from being expanded before being passed to the
+ command. The -s option causes unhash to remove suffix aliases.
+ The -f option causes unhash to remove shell functions. The -d
+ options causes unhash to remove named directories. If the -m
+ flag is given the arguments are taken as patterns (should be
+ quoted) and all elements of the corresponding hash table with
+ matching names will be removed.
+
+unalias [ -ams ] name ...
+ Removes aliases. This command works the same as unhash -a, ex-
+ cept that the -a option removes all regular or global aliases,
+ or with -s all suffix aliases: in this case no name arguments
+ may appear. The options -m (remove by pattern) and -s without
+ -a (remove listed suffix aliases) behave as for unhash -a. Note
+ that the meaning of -a is different between unalias and unhash.
+
+unfunction
+ Same as unhash -f.