From: Clint Priest <cpriest@rxv.me>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Parameter Expansion
Date: Sun, 13 Aug 2017 20:16:47 -0500 [thread overview]
Message-ID: <702f96c4-7fd5-fa86-94c7-cde9f18359e4@rxv.me> (raw)
In-Reply-To: <CAH+w=7ahF7xR5svM8r+uF2UpiaMA6L7vgqJwhtKRWSj3W0NmTw@mail.gmail.com>
On 8/13/2017 7:07 PM, Bart Schaefer wrote:
>> FUNCS=( $SD/autoload/*(:t) )
Wow, it never dawned on me that I could just use it as a glob
qualifier. I'd be trying to do it with ${~..} and ${~~..} with no luck.
Thank you!
> Oh, and if you want something more complicated, the above is
> equivalent to using the "e" glob qualifier like so:
>
> $SD/autoload/*(e?'reply=( "$REPLY:t" )'?)
>
> So you can do any substitution tricks you want on $REPLY. Just
> remember that it will contain exactly one filename at a time.
I've read about but not yet played around with the e flag yet, but I've
heard of it. :)
Thanks again Bart!
--
-Clint
next prev parent reply other threads:[~2017-08-14 1:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-13 22:58 Clint Priest
2017-08-13 23:51 ` Bart Schaefer
2017-08-14 0:07 ` Bart Schaefer
2017-08-14 1:16 ` Clint Priest [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-05-17 9:39 Parameter expansion Roland Jesse
1999-05-17 9:23 ` Peter Stephenson
1999-03-31 14:35 Mircea Damian
1999-03-31 14:54 ` Geoff Wing
1999-03-31 15:04 ` Mircea Damian
1999-03-31 15:51 ` Bart Schaefer
1999-04-01 6:20 ` Rob Hooft
1999-04-01 7:30 ` Geoff Wing
1999-04-01 7:33 ` Bart Schaefer
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=702f96c4-7fd5-fa86-94c7-cde9f18359e4@rxv.me \
--to=cpriest@rxv.me \
--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).