1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-12 17:11:25 +02:00

340941: bashcompinit: scalars giving bash completion status should be exported

This commit is contained in:
Peter Stephenson 2013-01-04 15:55:26 +00:00
parent 91197f4993
commit edab1d3dbe
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2013-01-04 Peter Stephenson <p.stephenson@samsung.com>
* 30941: Completion/bashcompinit: scalars giving status of bash
completion should be exported for external programmes.
2013-01-03 Bart Schaefer <schaefer@zsh.org>
* 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 $
*****************************************************

View file

@ -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 ))