From 93fa3796c230d6344547729bdcecc72e90bf1b6d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 18 May 2008 20:32:15 +0000 Subject: unposted: fix unwanted output from new typeset in compinit --- Completion/compinit | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Completion') 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