Re: Wrong line numbers in errors

2024-02-03 Thread Chet Ramey
On 2/3/24 3:09 PM, Matthias Urlichs wrote: Hello Chet, The release of 5.2 is from October 2022 and thus should include a patch for this issue. No. bash-5.2 was frozen earlier in September, 2022 and released September 26, 2022. That fix came in after the release (and wouldn't have been enough

Re: Wrong line numbers in errors

2024-02-03 Thread Matthias Urlichs via Bug reports for the GNU Bourne Again SHell
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 patc

Re: Wrong line numbers in errors

2024-02-03 Thread Chet Ramey
On 2/3/24 8:36 AM, Matthias Urlichs via Bug reports for the GNU Bourne Again SHell wrote: Version 5.2.15 see example script below, the unassigned $nope is reported to be in line 4 which is obviously wrong. Removing the parentheses around the echo fixes the problem. #!/bin/bash set -u ( echo