From 231f077a757b799a3e6224fcd89113ff2e67a166 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 15 May 2001 10:02:34 +0000 Subject: 14348: fix globalexport with typeset -g --- ChangeLog | 5 +++++ Src/builtin.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fc4f17659..0dbee373e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-05-15 Peter Stephenson + + * 14348: Src/builtin.c: some idiot forgot to make GLOBAL_EXPORT + work with typeset -g. + 2001-05-15 Sven Wischnowsky * 14346: Src/parse.c: calculate the length of the region to map 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) { -- cgit v1.2.3