RESEND FOR THE MAILINGLIST Britton Kerin schrieb:
Which in a pipeline is supposed to be the output of the previous command, right? Its not at all obvious to me why it behaves as it does.
The other subthread of this thread is about it: In Bash, all parts of a pipeline are executed in an own subshell. This means that the read in the subshell reads the data, sets the variable, and then the subshell is terminated. Regards, Jan