bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrong line numbers in errors


From: Matthias Urlichs
Subject: Re: Wrong line numbers in errors
Date: Sat, 3 Feb 2024 21:09:21 +0100
User-agent: Mozilla Thunderbird

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 $nope

Thanks for the report. This was fixed in September, 2022, the result of
https://savannah.gnu.org/support/index.php?110714 .


--
-- mit freundlichen Grüßen
--
-- Matthias Urlichs

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]