This is nice for linear pipes. But occasionally I find myself building more of a graph.
Bash lets you provide file arguments from pipes via the <() syntax (it's turned into a fd reference via proc behind the scenes). And you can also wire up additional pipes with fd renumbering, though this gets ugly in bash, some other shells are more flexible there, e.g dgsh. A tool to iteratively build a graph of commands and pipes would be the next step.
That's totally where my long-term vision goes! :D But I'm very unsure if I'll have enough time and resources to be able to reach it :/ My strong hope is however that the Luna language[1] & team may get us there faster, and to an even nicer place actually :)
Comments (217) 34 threads
Show all comments
Showing thread 11 of 34
Bash lets you provide file arguments from pipes via the <() syntax (it's turned into a fd reference via proc behind the scenes). And you can also wire up additional pipes with fd renumbering, though this gets ugly in bash, some other shells are more flexible there, e.g dgsh.
A tool to iteratively build a graph of commands and pipes would be the next step.
[1]: https://luna-lang.org