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: Sat, 13 Jul 2013 10:00:51 -0700 [thread overview]
Message-ID: <130713100051.ZM14338@torch.brasslantern.com> (raw)
In-Reply-To: <130712164652.ZM12696@torch.brasslantern.com>
On Jul 12, 4:46pm, Bart Schaefer wrote:
} Subject: Re: [PATCH] Update make completion with gnu options
}
} On Jul 12, 7:46am, Nick Cross wrote:
} }
} } + 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.
On the other hand, I see that you've no longer declared file as an
array, and the -f options are completed mutually-exclusively, so that
would only happen if someone explicitly typed out a command with more
than one such option and then attempted to complete targets.
However, the (i) flag would still probably be "more correct" here.
next prev parent reply other threads:[~2013-07-13 17:00 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
2013-07-13 17:00 ` Bart Schaefer [this message]
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=130713100051.ZM14338@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).