bug-bash
[Top][All Lists]
Advanced

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

Shell substitution with quotes in bash-4.1


From: Corentin Peuvrel
Subject: Shell substitution with quotes in bash-4.1
Date: Thu, 26 Feb 2015 14:20:41 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

Hello,

I found a bug in bash-4.1 (CentOS 6) that was fixed (at least) in bash-4.3 (Fedora 21).

$ foo=aXb ; echo "$BASH_VERSION : ${foo/X/\'}"
4.3.33(1)-release : a'b

$ foo=aXb ; echo "$BASH_VERSION : ${foo/X/\'}"
4.1.2(1)-release : a\'b

The shell substitution add the backslash before the quote, but it shouldn't (and ${foo/X/'} fail because it wait for an ending quote).

I was wondering if it was possible to backport a fix in 4.1 ?


Thank you,

--
*Corentin Peuvrel* - Développeur R&D, apprentis
Tel: +33 (0)1 30 67 60 65, http://pom-monitoring.com
*POM Monitoring*, Pilotage de la performance du Système d'Information




reply via email to

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