From: Clint Priest <cpriest@rxv.me>
To: Zsh Users <zsh-users@zsh.org>
Subject: Parameter Expansion
Date: Sun, 13 Aug 2017 17:58:56 -0500 [thread overview]
Message-ID: <8df905ca-2d0e-953d-aca1-e46337784ae4@rxv.me> (raw)
[-- Attachment #1: Type: text/plain, Size: 396 bytes --]
Having trouble getting nested parameter substitution working again, how
can these two lines be correctly merged into a single line:
FUNCS=( $SD/autoload/*);
FUNCS=${(@)FUNCS:t};
Assume for arguments sake that SD is a working directory with an
autoload directory and autoload has one file in it (named pv).
The above two lines together properly produce ( pv ).
Thanks,
--
-Clint
next reply other threads:[~2017-08-13 23:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-13 22:58 Clint Priest [this message]
2017-08-13 23:51 ` Bart Schaefer
2017-08-14 0:07 ` Bart Schaefer
2017-08-14 1:16 ` Clint Priest
-- 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=8df905ca-2d0e-953d-aca1-e46337784ae4@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).