Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: bash completion functions



Oliver Kiddle <okiddle@xxxxxxxxxxx>:

> _bash_complete() {
>   local ret=1
>   local -a suf matches
>   local COMP_POINT COMP_CWORD
>   local -a COMP_WORDS COMPREPLY BASH_VERSINFO
>   local COMP_LINE="$words"
>
>   (( COMP_POINT = ${#${(j. .)words}} + $$#QIPREFIX + $#IPREFIX + $#PREFIX ))
>   (( COMP_CWORD = CURRENT - 1))
>   COMP_WORDS=( $words )
>   BASH_VERSINFO=( 2 05b 0 1 release )
>   
>   [[ ${argv[${argv[(I)nospace]:-0}-1]} = -o ]] && suf=( -S '' )
> [...]

this is nice.  i learn much more about zsh mechanics now that i can
compare known functions with their zsh equivalent!

one thing, though:  you provide this patch, a patch to it and another
one on top of the last.  would you please post the complete version,
all goodies included?

  clemens



Messages sorted by: Reverse Date, Date, Thread, Author