Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bash completion functions
- X-seq: zsh-workers 18177
- From: Clemens Fischer <ino-qc@xxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: bash completion functions
- Date: Mon, 03 Feb 2003 13:51:18 +0100
- Cancel-lock: sha1:NBK+EUib1HcBkTGEFo4ubYb0Upk=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <15299.1043745489@xxxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxxx>
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