today @wallhackio learned that both sides in a pipeline run in parallel*. who the fuck expects them to opurrate in sequence?? maybe normal people i guess. (not that bumby is remotely normal but)
* purrocess scheduling is extremely more complicated than that, i know
@vaporeon_ i don't know!!!!!!
@vaporeon_ yeah you get it
@aescling If I understood correctly what "synchronously" means, that it first waits for the left side of the pipe to run, soaks up all its inputs, and only then starts the right side, that sounds horrible... Imagine if you do
cat enormous-file.txt | grep some-string, it'd have to try to soak up all contents of enormous-file.txt and run out of memory instead of actually grepping like it's supposed to!Admittedly, that
catis unnecessary and a bad habit on my side, you could just do< enormous-file.txt grep some-string, but it's hard to get rid of that habit, and in a normal shell, it doesn't really matter...