zsh-workers
 help / color / mirror / code / Atom feed
From: Felipe Contreras <felipe.contreras@gmail.com>
To: zsh-workers@zsh.org
Cc: Felipe Contreras <felipe.contreras@gmail.com>
Subject: Re: [PATCH 5/5] bashcompinit: improve compgen -F argument passing
Date: Sat, 28 Jan 2012 19:14:10 +0200	[thread overview]
Message-ID: <CAMP44s1HR7rFucr2KvyN890jtr2m=2X4F40MCkCGSF6ZS5sdiw@mail.gmail.com> (raw)
In-Reply-To: <1327769751-6806-6-git-send-email-felipe.contreras@gmail.com>

On Sat, Jan 28, 2012 at 6:55 PM, Felipe Contreras
<felipe.contreras@gmail.com> 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


  reply	other threads:[~2012-01-28 17:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-28 16:55 [PATCH 0/5] bashcompinit: several fixes Felipe Contreras
2012-01-28 16:55 ` [PATCH 1/5] bashcompinit: remove _compgen_opt_words Felipe Contreras
2012-01-28 16:55 ` [PATCH 2/5] bashcompinit: fix COMP_POINT Felipe Contreras
2012-01-28 16:55 ` [PATCH 3/5] bashcompinit: fix quoting code Felipe Contreras
2012-01-28 16:55 ` [PATCH 4/5] bashcompinit: simplify result matching code Felipe Contreras
2012-01-28 16:55 ` [PATCH 5/5] bashcompinit: improve compgen -F argument passing Felipe Contreras
2012-01-28 17:14   ` Felipe Contreras [this message]
2012-01-29 18:25 ` [PATCH 0/5] bashcompinit: several fixes Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMP44s1HR7rFucr2KvyN890jtr2m=2X4F40MCkCGSF6ZS5sdiw@mail.gmail.com' \
    --to=felipe.contreras@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).