From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: Make Completion
Date: Thu, 11 Jul 2013 21:26:00 -0700 [thread overview]
Message-ID: <130711212600.ZM7466@torch.brasslantern.com> (raw)
In-Reply-To: <51DF2E90.4070606@goots.org>
On Jul 11, 11:15pm, Nick Cross wrote:
}
} "file=($opt_args[(K)(-f|--file|--makefile)])" does not seem to be
} returning a valid string/file
PWS has a bit of a think-o there. (K) means to treat the keys of the
array as patterns and compare them to the subcript expression. What
he wants is (I), which compares the subscript as a pattern to the keys
of the array -- but that returns the keys, not the values, so what is
needed is ${(v)opt_args[(I)(-f|--file|--makefile)]} to force values
to be returned.
prev parent reply other threads:[~2013-07-12 4:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-10 13:28 Nick Cross
2013-07-11 9:54 ` Peter Stephenson
2013-07-11 12:58 ` Nick Cross
2013-07-11 13:33 ` Peter Stephenson
2013-07-11 14:44 ` Frank Terbeck
2013-07-11 22:15 ` Nick Cross
2013-07-12 4:26 ` Bart Schaefer [this message]
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=130711212600.ZM7466@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@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).