bug-bash
[Top][All Lists]
Advanced

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

Regression in pattern substitution with compat42


From: Tom Briden
Subject: Regression in pattern substitution with compat42
Date: Wed, 08 Feb 2023 18:50:32 +0000 (UTC)

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: x86_64-pc-linux-gnu-cc
Compilation CFLAGS: -march=native -O2 -pipe
uname output: Linux icarium.decompile.me.uk 6.2.0-rc7-18802-gadd2b733ea5d
#18 SMP PREEMPT_DYNAMIC Mon Feb  6 08:03:57 GMT 2023 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.2
Patch Level: 15
Release Status: release

Description:
  As of version 5.2-beta, replacing a single backslash with a double
backslash is no longer possible when using BASH_COMPAT=4.2.
  The issue appears to have been introduced in commit
https://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=2a1c81bf634d372fde5141d7e616042ca960d9b4
  which now returns `1` from `shouldexp_replacement`.

Repeat-By:
  BASH_COMPAT=4.2; a="backslash \\"; printf "%s\n" "${a//\\/\\\\}"

  Expected output: backslash \\
  Actual output: backslash \


reply via email to

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