diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-04 12:02:04 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-04-04 12:02:04 +0000 |
commit | 8488dcb806f8aaa3009691bcd43f0ac7c787c1ad (patch) | |
tree | 821e3a7aed75481c82b8686b6aec7f24640d7bad /Src/builtin.c | |
parent | c15ef20346e4b760c7710b64a62db794abf86229 (diff) | |
download | zsh-8488dcb806f8aaa3009691bcd43f0ac7c787c1ad.tar.gz zsh-8488dcb806f8aaa3009691bcd43f0ac7c787c1ad.tar.xz zsh-8488dcb806f8aaa3009691bcd43f0ac7c787c1ad.zip |
keep association elements from being exported
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index dd0d3e523..73d89aa4f 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -1630,7 +1630,8 @@ typeset_single(char *cname, char *pname, Param pm, int func, if (!(pm->flags & PM_UNSET) && !pm->env && !value) pm->env = addenv(pname, getsparam(pname), pm->flags); } else if (pm->env && - (!pm->level || (isset(ALLEXPORT) && !pm->old))) { + (!pm->level || (isset(ALLEXPORT) && !pm->old && + !(pm->flags & PM_HASHELEM)))) { delenv(pm->env); zsfree(pm->env); pm->env = NULL; |