[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
string substitution broken since 5.2
From: |
thierryb |
Subject: |
string substitution broken since 5.2 |
Date: |
Thu, 3 Nov 2022 18:32:31 +0100 |
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wall
uname output: Linux thierrybo-desk 6.0.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian
6.0.5-1 (2022-10-28) x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
Bash Version: 5.2
Patch Level: 2
Release Status: release
Description:
String substitution code running for years is broken in 5.2.
Repeat-By:
string = 'xdotool type "sudo apt update"'
string="${string//\"/"}"
printf '%s' "$string"
previously outputs:
xdotool type "sudo apt update"
but now outputs:
xdotool type "quot;sudo apt update"quot;
- string substitution broken since 5.2,
thierryb <=
- Re: string substitution broken since 5.2, Andreas Schwab, 2022/11/03
- Re: string substitution broken since 5.2, Koichi Murase, 2022/11/03
- Re: string substitution broken since 5.2, Greg Wooledge, 2022/11/03
- Re: string substitution broken since 5.2, Koichi Murase, 2022/11/03
- Re: string substitution broken since 5.2, Greg Wooledge, 2022/11/03
- Re: string substitution broken since 5.2, Greg Wooledge, 2022/11/03
- Re: string substitution broken since 5.2, Koichi Murase, 2022/11/03
Re: string substitution broken since 5.2, Thierry B., 2022/11/03
Re: string substitution broken since 5.2, Chet Ramey, 2022/11/03