Re: Bug when using pipefail and lastpipe together in bash-4.4

2019-10-11 Thread Chet Ramey
On 10/8/19 9:43 AM, Webstrand wrote: > When running the following script under bash-4.4.0 to bash-4.4.23 it > seems to fail erroneously on read. > > set -x > set -o pipefail > shopt -s lastpipe > > main() { > # Any input piped into while such that the condition > # succeeds at lea

Bug when using pipefail and lastpipe together in bash-4.4

2019-10-08 Thread Webstrand
When running the following script under bash-4.4.0 to bash-4.4.23 it seems to fail erroneously on read. set -x set -o pipefail shopt -s lastpipe main() { # Any input piped into while such that the condition # succeeds at least once. echo "x" | while read; do echo | read