mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
14348: fix globalexport with typeset -g
This commit is contained in:
parent
a2a1c2411a
commit
231f077a75
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user