5 ms·
I quite like how fish does process substitution. foo (bar | psub) Instead of syntax it's just a plain function. docs: https://fishshell.com/docs/current/cm
by iamevn 5y ago
I quite like how fish does process substitution.
foo (bar | psub)
Instead of syntax it's just a plain function.
docs: https://fishshell.com/docs/current/cmds/psub.html https://fishshell.com/docs/current/cmds/psub.html
source of psub.fish: https://github.com/fish-shell/fish-shell/blob/master/share/functions/psub.fish https://github.com/fish-shell/fish-shell/blob/master/share/f...
- limoce 5y agoBut fish's psub only supports file or named pipe, not the one mentioned in the post, which is described as the "the best way".
- zanchey 5y agoIt doesn't even support named pipes - the function's been broken for years. Interestingly it doesn't actually seem to matter a great deal, at least now that temporary files are usually on a fast disk.
- ogogmad 5y agoWhile the syntax might be nice, strictly speaking, process substitution isn't currently possible in Fish: https://news.ycombinator.com/item?id=29845845 https://news.ycombinator.com/item?id=29845845