4 ms·
The way that shell builtins behave differently here is that SIGPIPE can take out the whole shell on the left side when echo is built-in. When you /bin/echo red
by dietrichepp 3y ago
The way that shell builtins behave differently here is that SIGPIPE can take out the whole shell on the left side when echo is built-in.
When you /bin/echo red, then it's a subprocess, and its parent shell continues on, so you always get green somewhere in the output.