Let's say I start with the following statement: echo -s line is broadcast:
$ echo "foo" 1>/dev/null
Then I send the following pipeline:
$ echo "foo" | cat -e - 1>/dev/null
Then I will leave the process:
$ echo "foo" | 1>/dev/null
Why does this not return an error message? Perhaps the reason may be the bash and pipeline documentation, which does not seem to give a direct mention. Is there an EOF dispatched before the first read from echo (or whatever process works before the thread)?
unix bash pipe
Alex reynolds
source share