1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-06-12 20:47:31 +02:00

14348: fix globalexport with typeset -g

This commit is contained in:
Peter Stephenson 2001-05-15 10:02:34 +00:00
parent a2a1c2411a
commit 231f077a75
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-05-15 Peter Stephenson <pws@csr.com>
* 14348: Src/builtin.c: some idiot forgot to make GLOBAL_EXPORT
work with typeset -g.
2001-05-15 Sven Wischnowsky <wischnow@zsh.org>
* 14346: Src/parse.c: calculate the length of the region to map

View File

@ -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) {