Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 5/5] bashcompinit: improve compgen -F argument passing
On Sat, Jan 28, 2012 at 6:55 PM, Felipe Contreras
<felipe.contreras@xxxxxxxxx> wrote:
> --- a/Completion/bashcompinit
> +++ b/Completion/bashcompinit
> @@ -18,7 +18,7 @@ _bash_complete() {
>
> [[ ${argv[${argv[(I)nospace]:-0}-1]} = -o ]] && suf=( -S '' )
>
> - matches=( ${(f)"$(compgen $@)"} )
> + matches=( ${(f)"$(compgen $@ ${words[CURRENT]})"} )
Err, should be:
matches=( ${(f)"$(compgen $@ -- ${words[CURRENT]})"} )
--
Felipe Contreras
Messages sorted by:
Reverse Date,
Date,
Thread,
Author