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 source of psub.fish: https://github.com/fish-shell/fish-shell/blob/master/share/f...