The output of Linux pipes can be indeterministic(gibney.org) |
The output of Linux pipes can be indeterministic(gibney.org) |
(Referenced from the article)
(echo red; echo green 1>&2) | echo blue
The string "red" goes into the pipe. The strong "green" goes to stderr, the TTY. The "echo blue" writes to stdout, but does not read from its stdin, the read end of the pipe.
Since nothing gets read from the pipe I don't see the claim of indeterminacy as true.
The different outputs are all due to process scheduling in the kernel.