From 7f304c7736b15f7606376a4ee07f21cbcb35fd0e Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 18 May 2008 20:19:01 +0000 Subject: 25068: Fix some completion warnings with WARN_CREATE_GLOBAL --- Completion/compinit | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Completion/compinit') diff --git a/Completion/compinit b/Completion/compinit index 6a0668781..de19390a1 100644 --- a/Completion/compinit +++ b/Completion/compinit @@ -118,6 +118,7 @@ typeset -gA _compautos typeset -gA _lastcomp # Remember dumpfile. +typeset -g _comp_dumpfile if [[ -n $_i_dumpfile ]]; then # Explicitly supplied dumpfile. _comp_dumpfile="$_i_dumpfile" @@ -127,6 +128,7 @@ fi # The standard options set in completion functions. +typeset -ga _comp_options _comp_options=( bareglobqual extendedglob @@ -158,14 +160,18 @@ _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[@]}; local IFS=$'\'\ \\t\\r\\n\\0\'' exec