Hello Chet,The release of 5.2 is from October 2022 and thus should include a patch for this issue.
To double-check, I just downloaded, patched up, and built 5.2.26. It also fails.
Thus I conclude that your fix from 2022 was incomplete. Proof: ~/src/bash/bash-5.2.21$ grep define.PATCH patchlevel.h #define PATCHLEVEL 26 ~/src/bash/bash-5.2.21$ make […] * GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu) ~/src/bash/bash-5.2.21$ ./bash /tmp/error.sh Test x Test x Test x Test x Test x /tmp/error.sh: line 4: nope: unbound variable
#!/bin/bash set -u ( echo x ) | while read f ; do echo Test $f echo Test $f echo Test $f echo Test $f echo Test $f done echo $nopeThanks for the report. This was fixed in September, 2022, the result ofhttps://savannah.gnu.org/support/index.php?110714 .
-- -- mit freundlichen Grüßen -- -- Matthias Urlichs
OpenPGP_signature.asc
Description: OpenPGP digital signature