about summary refs log tree commit diff
path: root/Functions/VCS_Info/VCS_INFO_set
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2015-08-09 23:53:24 +0200
committerMikael Magnusson <mikachu@gmail.com>2015-08-12 04:31:22 +0200
commitc5abf2bcff289363207e0faae8fd33413f59231f (patch)
treec0ca2af7b1eefc76376841d0697755d3c9993013 /Functions/VCS_Info/VCS_INFO_set
parentc21a3fddf4e2b1117a3d51196091a2da34a869b6 (diff)
downloadzsh-c5abf2bcff289363207e0faae8fd33413f59231f.tar.gz
zsh-c5abf2bcff289363207e0faae8fd33413f59231f.tar.xz
zsh-c5abf2bcff289363207e0faae8fd33413f59231f.zip
36077: vcs_info: stop exporting everything
Diffstat (limited to 'Functions/VCS_Info/VCS_INFO_set')
-rw-r--r--Functions/VCS_Info/VCS_INFO_set6
1 files changed, 3 insertions, 3 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_set b/Functions/VCS_Info/VCS_INFO_set
index 5087be43f..484c7937d 100644
--- a/Functions/VCS_Info/VCS_INFO_set
+++ b/Functions/VCS_Info/VCS_INFO_set
@@ -8,7 +8,7 @@ local -i i j
 if [[ $1 == '--nvcs' ]] ; then
     [[ $2 == '-preinit-' ]] && (( maxexports == 0 )) && (( maxexports = 1 ))
     for i in {0..$((maxexports - 1))} ; do
-        typeset -gx vcs_info_msg_${i}_=
+        typeset -g vcs_info_msg_${i}_=
     done
     VCS_INFO_nvcsformats $2
     [[ $2 != '-preinit-' ]] && VCS_INFO_hook "no-vcs"
@@ -17,12 +17,12 @@ fi
 (( ${#msgs} - 1 < 0 )) && return 0
 for i in {0..$(( ${#msgs} - 1 ))} ; do
     (( j = i + 1 ))
-    typeset -gx vcs_info_msg_${i}_=${msgs[$j]}
+    typeset -g vcs_info_msg_${i}_=${msgs[$j]}
 done
 
 if (( i < maxexports )) ; then
     for j in {$(( i + 1 ))..${maxexports}} ; do
-        [[ -n ${(P)${:-vcs_info_msg_${j}_}} ]] && typeset -gx vcs_info_msg_${j}_=
+        [[ -n ${(P)${:-vcs_info_msg_${j}_}} ]] && typeset -g vcs_info_msg_${j}_=
     done
 fi
 return 0