Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Process substitution within parameter expansion



$ 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 } =(...)`).


Messages sorted by: Reverse Date, Date, Thread, Author