zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Nick Cross <zsh@goots.org>, zsh-workers@zsh.org
Subject: Re: [PATCH] Update make completion with gnu options
Date: Fri, 12 Jul 2013 16:46:52 -0700	[thread overview]
Message-ID: <130712164652.ZM12696@torch.brasslantern.com> (raw)
In-Reply-To: <51DFA641.6080204@goots.org>

On Jul 12,  7:46am, Nick Cross wrote:
}
} -    file=($opt_args[(K)(-f|--file|--makefile)])
} -    file=$file[1]
} +    file=${(v)opt_args[(I)(-f|--file|--makefile)]}

The (I) subscript flag returns an array of all the possible matching
elements, so if there happens to be more than one file option the
above will not assign a useful file name to $file.


  parent reply	other threads:[~2013-07-12 23:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-12  6:46 Nick Cross
2013-07-12  8:38 ` Peter Stephenson
2013-07-12 23:46 ` Bart Schaefer [this message]
2013-07-13 17:00   ` Bart Schaefer
2013-07-17 15:35 ` Jun T.
2013-07-18  9:21   ` Oliver Kiddle
2013-07-18 11:44     ` Jun T.

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=130712164652.ZM12696@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    --cc=zsh@goots.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).