summaryrefslogtreecommitdiff
path: root/Completion/compinit
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 /Completion/compinit
parent7f304c7736b15f7606376a4ee07f21cbcb35fd0e (diff)
downloadzsh-93fa3796c230d6344547729bdcecc72e90bf1b6d.tar.gz
zsh-93fa3796c230d6344547729bdcecc72e90bf1b6d.zip
unposted: fix unwanted output from new typeset in compinit
Diffstat (limited to 'Completion/compinit')
-rw-r--r--Completion/compinit8
1 files changed, 3 insertions, 5 deletions
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