about summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-05 22:06:09 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-05 22:06:09 +0000
commit9e87799fcbb99e9a333a257e44e1d2fa1fc04916 (patch)
tree9467894f001561a9abcb307859408475be28c020 /Src/builtin.c
parentca4cc626d4ac7dbf5832bcd39cc159aae397e39f (diff)
downloadzsh-9e87799fcbb99e9a333a257e44e1d2fa1fc04916.tar.gz
zsh-9e87799fcbb99e9a333a257e44e1d2fa1fc04916.tar.xz
zsh-9e87799fcbb99e9a333a257e44e1d2fa1fc04916.zip
zsh-workers/9582
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index a373d9dd2..a011e2e58 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -1616,7 +1616,7 @@ typeset_single(char *cname, char *pname, Param pm, int func,
 		     (apm = (Param) paramtab->getnode(paramtab, pm->ename)))
 		uniqarray((*apm->gets.afn) (apm));
 	}
-	pm->flags = (pm->flags | on) & ~off;
+	pm->flags = (pm->flags | on) & ~(off | PM_UNSET);
 	/* This auxlen/pm->ct stuff is a nasty hack. */
 	if ((on & (PM_LEFT | PM_RIGHT_B | PM_RIGHT_Z | PM_INTEGER |
 		   PM_EFLOAT | PM_FFLOAT)) &&