the output is a single line "Terminated". It still works as a standalone
script though.
I've figured out the enabled monitor=on bash setting for interactive
mode triggers the behavior. So with "set +m" applied it works in
interactive shell. Another way to overcome it in interactive shell is
such trick
The question is: what is so special to pipes of 3+ stages that it
presents different behavior vs a 2-stage pipe when monitor=on in bash?
E.g. why this works
set -m
timeout 5 tail -fn0 access.log | awk '{print $1}'
but this doesn't
set -m
timeout 5 tail -fn0 access.log | awk '{print $1}' | wc -l
(I explicitly set monitor=on above for clarity.)