Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16642

Bug Report concerning backslash in bash5

From Ralph Beckmann <rb@rbx.de>
Newsgroups gnu.bash.bug
Subject Bug Report concerning backslash in bash5
Date 2020-07-29 00:42 +0200
Message-ID <mailman.226.1595985331.2739.bug-bash@gnu.org> (permalink)
References <15dff7a7b42bf7192b57066215723128@rbx.de>

Show all headers | View raw


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)

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Bug Report concerning backslash in bash5 Ralph Beckmann <rb@rbx.de> - 2020-07-29 00:42 +0200

csiph-web