From edab1d3dbe61da7efe5f1ac0e40444b2ec9b9570 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 4 Jan 2013 15:55:26 +0000 Subject: 340941: bashcompinit: scalars giving bash completion status should be exported --- ChangeLog | 7 ++++++- Completion/bashcompinit | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index f9026eec5..c76c61c66 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-01-04 Peter Stephenson + + * 30941: Completion/bashcompinit: scalars giving status of bash + completion should be exported for external programmes. + 2013-01-03 Bart Schaefer * users/17524: Doc/Zsh/expn.yo: misc. parameter flag clarifications. @@ -421,5 +426,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.5780 $ +* $Revision: 1.5781 $ ***************************************************** diff --git a/Completion/bashcompinit b/Completion/bashcompinit index 6cc3be580..902fa88a8 100644 --- a/Completion/bashcompinit +++ b/Completion/bashcompinit @@ -3,9 +3,9 @@ _bash_complete() { local ret=1 local -a suf matches - local COMP_POINT COMP_CWORD + local -x COMP_POINT COMP_CWORD local -a COMP_WORDS COMPREPLY BASH_VERSINFO - local COMP_LINE="$words" + local -x COMP_LINE="$words" local -A savejobstates savejobtexts (( COMP_POINT = 1 + ${#${(j. .)words[1,CURRENT]}} + $#QIPREFIX + $#IPREFIX + $#PREFIX )) -- cgit v1.2.3