help / color / Atom feed
* 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/')

$ 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, back to index

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


Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git