bug-bash
[Top][All Lists]
Advanced

[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;




reply via email to

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