Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I had a nice surprise and learning experience, when I discovered that the output of

     (echo red; echo green 1>&2) | echo blue
is indeterministic:

http://www.gibney.de/the_output_of_linux_pipes_can_be_indete...

As it turns out, this short line and its behavior nicely demonstrate a bunch of aspects that happen under the hood when you use a pipe.



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: