bug-bash
[Top][All Lists]
Advanced

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

Re: ${parameter/pattern/string} behaviour changed


From: Eduardo Bustamante
Subject: Re: ${parameter/pattern/string} behaviour changed
Date: Fri, 16 Mar 2018 14:57:25 -0600

On Fri, Mar 16, 2018 at 1:18 PM,  <dc@ftb-esv.de> wrote:
[...]
> Bash Version: 4.3
> Patch Level: 42
> Release Status: release
>
> Description:
>         Command: x="a b c"; echo "'${x// /','}'"
>         On old systems the output is:  'a','b','c'
>         In this version the output is: 'a,b,c'
>         This new behavior breaks some scripts.


Hm, 4.3 is almost 4 years old, so that's hardly "new" behavior.
Furthermore, this behavior changed as a result of a bug report, see:

- http://lists.gnu.org/archive/html/bug-bash/2012-02/msg00106.html
- http://lists.gnu.org/archive/html/bug-bash/2013-03/msg00100.html



reply via email to

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