diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2001-05-15 10:02:34 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2001-05-15 10:02:34 +0000 |
commit | 231f077a757b799a3e6224fcd89113ff2e67a166 (patch) | |
tree | d76ce51eb27908e88e95c9ea8e168d6da327c713 /Src/builtin.c | |
parent | a2a1c2411a4bae2e1428ca2404458c978f8f5920 (diff) | |
download | zsh-231f077a757b799a3e6224fcd89113ff2e67a166.tar.gz zsh-231f077a757b799a3e6224fcd89113ff2e67a166.tar.xz zsh-231f077a757b799a3e6224fcd89113ff2e67a166.zip |
14348: fix globalexport with typeset -g
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index bc1a35f90..ad340afc8 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -1946,7 +1946,7 @@ bin_typeset(char *name, char **argv, char *ops, int func) } if (!(ops['g'] || ops['x'] || ops['m']) || ops['g'] == 2 || *name == 'l' || - !isset(GLOBALEXPORT)) + (!isset(GLOBALEXPORT) && !ops['g'])) on |= PM_LOCAL; if (on & PM_TIED) { |