diff options
Diffstat (limited to 'Src/builtin.c')
-rw-r--r-- | Src/builtin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c index f18e956e8..79648561e 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -1850,7 +1850,8 @@ bin_typeset(char *name, char **argv, char *ops, int func) return 0; } - if ((!ops['g'] && !ops['x']) || ops['g'] == 2 || *name == 'l') + if ((!ops['g'] && !ops['x']) || ops['g'] == 2 || *name == 'l' || + !isset(GLOBALEXPORT)) on |= PM_LOCAL; if (on & PM_TIED) { |