* Process substitution within parameter expansion
@ 2020-02-02 4:50 Aggu Sern
0 siblings, 0 replies; only message in thread
From: Aggu Sern @ 2020-02-02 4:50 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 317 bytes --]
$ cat =(echo 'abc' | sed 's/^a/A/; s/c$/C/')
AbC
$ cat ${:-=(echo 'abc' | sed 's/^a/A/; s/c$/C/')}
zsh: no matches found: s/^a/A/
How to fix the error? Is this a bug?
My intention is to "embed" `=(...)` (e.g. `mpv --playlist=${:-=(...)}`)
without using anonymous function (e.g. `() { mpv --playlist=$1 } =(...)`).
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-02-02 4:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-02 4:50 Process substitution within parameter expansion Aggu Sern
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).