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 --- Src/builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/builtin.c') 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 1.4.1