On 7/28/20 6:42 PM, Ralph Beckmann wrote: > 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.
Thanks for the report. This issue was a product of the bash-5.0 changes to support the POSIX standard language concerning backslashes in shell patterns. It is fixed in the devel branch and in bash-5.1-alpha. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/