about summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2000-04-30 14:48:49 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2000-04-30 14:48:49 +0000
commit563936ba27c92750e0f752ad9137366506352f09 (patch)
tree21945b324a8cac71f2a1fda1f575a24fe81be770 /Src/builtin.c
parent5c327339f5b6973a9355d3edc564def697b7cbdd (diff)
downloadzsh-563936ba27c92750e0f752ad9137366506352f09.tar.gz
zsh-563936ba27c92750e0f752ad9137366506352f09.tar.xz
zsh-563936ba27c92750e0f752ad9137366506352f09.zip
11026: fix for unfunction of trap with localtraps bug
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 6d9fcd493..79648561e 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -2592,14 +2592,12 @@ bin_unhash(char *name, char **argv, char *ops, int func)
 
     /* Take arguments literally -- do not glob */
     for (; *argv; argv++) {
-	int ne = noerrs;
 	if ((hn = ht->removenode(ht, *argv))) {
 	    ht->freenode(hn);
 	} else {
 	    zwarnnam(name, "no such hash table element: %s", *argv, 0);
-	    returnval |= !noerrs;
+	    returnval = 1;
 	}
-	noerrs = ne;
     }
     return returnval;
 }