summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2000-04-16 19:02:13 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2000-04-16 19:02:13 +0000
commit5c53fb9500c019d7c0ee553f3daf6c277e6f515a (patch)
treeef5c62d6493caa55109731645f4223d6310dd3ff /Src/builtin.c
parent3dc24fba0978b76feb0a9a1584abf57cd766dcb9 (diff)
downloadzsh-5c53fb9500c019d7c0ee553f3daf6c277e6f515a.tar.gz
zsh-5c53fb9500c019d7c0ee553f3daf6c277e6f515a.tar.xz
zsh-5c53fb9500c019d7c0ee553f3daf6c277e6f515a.zip
10771: new GLOBAL_EXPORT option; successful compilation on OpenBSD
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c3
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) {