about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-05-18 20:32:15 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-05-18 20:32:15 +0000
commit93fa3796c230d6344547729bdcecc72e90bf1b6d (patch)
tree80cae43209667f0807571962b853ca5343ae57ef
parent7f304c7736b15f7606376a4ee07f21cbcb35fd0e (diff)
downloadzsh-93fa3796c230d6344547729bdcecc72e90bf1b6d.tar.gz
zsh-93fa3796c230d6344547729bdcecc72e90bf1b6d.tar.xz
zsh-93fa3796c230d6344547729bdcecc72e90bf1b6d.zip
unposted: fix unwanted output from new typeset in compinit
-rw-r--r--ChangeLog3
-rw-r--r--Completion/compinit8
2 files changed, 6 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index e0a3e1324..cb321790e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-05-18  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* unposted: Completion/compinit: fix unwanted output from
+	typeset.
+
 	* 25068: Completion/compinit: fix some warnings with
 	WARN_CREATE_GLOBAL.
 
diff --git a/Completion/compinit b/Completion/compinit
index de19390a1..b577b6dc3 100644
--- a/Completion/compinit
+++ b/Completion/compinit
@@ -118,12 +118,11 @@ typeset -gA _compautos
 typeset -gA _lastcomp
 
 # Remember dumpfile.
-typeset -g _comp_dumpfile
 if [[ -n $_i_dumpfile ]]; then
   # Explicitly supplied dumpfile.
-  _comp_dumpfile="$_i_dumpfile"
+  typeset -g _comp_dumpfile="$_i_dumpfile"
 else
-  _comp_dumpfile="${ZDOTDIR:-$HOME}/.zcompdump"
+  typeset -g comp_dumpfile="${ZDOTDIR:-$HOME}/.zcompdump"
 fi
 
 # The standard options set in completion functions.
@@ -160,8 +159,7 @@ _comp_options=(
 # have a valid stdin descriptor (zle closes it before calling widgets)
 # and don't get confused by user's ZERR trap handlers.
 
-typeset -g _comp_setup
-_comp_setup='setopt localoptions localtraps ${_comp_options[@]};
+typeset -g _comp_setup='setopt localoptions localtraps ${_comp_options[@]};
              local IFS=$'\'\ \\t\\r\\n\\0\''
              exec </dev/null;
              trap - ZERR