Hello GNU team,

I found this misbehaviour in Bash 5 (e.g. GNU bash, version 5.0.16(1)-release (x86_64-pc-linux-gnu)):

$ BLA="1\.2"; echo 'x/'$BLA'/y/'
\x/1\.2/\y/

I don't see any reasonable reason for the generated backslashes here.

Compare to bash 4 (e.g. GNU bash, version 4.4.12(1)-release (arm-unknown-linux-gnueabihf)):

$ BLA="1\.2"; echo 'x/'$BLA'/y/'
x/1\.2/y/

I found some discussion around this bug, but it seems not to be finally fixed:

https://lists.gnu.org/archive/html/bug-bash/2019-01/msg00087.html

Thanks for checking and fixing this in advance,
regards,
Ralph Beckmann (from Germany)

Reply via email to