On Sun, 25 Aug 2024 02:14:10 +0300 Antti Kultanen <debb...@pyksy.fi> wrote:
Package: bash
Version: 5.3~alpha1-1
Severity: important

Dear bash maintainers,

bash version 5.3~alpha1-1 in experimental seems to break replacing a percentage sign in variables. The sign doesn't get removed when replacing:

-8<-
pyksy@hanuri:~$ LOSS='10%'
pyksy@hanuri:~$ echo "${LOSS}"
10%
pyksy@hanuri:~$ LOSS="${LOSS/\%/}"
pyksy@hanuri:~$ echo "${LOSS}"
10%
...


This bug breaks some of my scripts.

Let me know if I can be of assistance.

Thanks,
--Antti


Dear Maintainer,
I tried to run a git bisect on the upstream devel branch and found this the 
first broken commit:
  8418224f32f4dda85019cae063370c18bbd2d036 [1]

And it seems it got later fixed in this commit, unfortunately not yet in a 
release.
  dbd27e54cc741b116d5ce0e731b778c4f014a74e [2]

Related conversations on the upstream mailing list [3].

Kind regards,
Bernhard


[1] 
https://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=8418224f32f4dda85019cae063370c18bbd2d036
[2] 
https://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=dbd27e54cc741b116d5ce0e731b778c4f014a74e

[3] https://lists.gnu.org/archive/html/bug-bash/2024-05/msg00174.html
    https://lists.gnu.org/archive/html/bug-bash/2024-05/msg00310.html

Reply via email to