[Top][All Lists]

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

Re: string substitution broken since 5.2

From: Chet Ramey
Subject: Re: string substitution broken since 5.2
Date: Fri, 4 Nov 2022 09:38:19 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1

On 11/4/22 3:56 AM, Léa Gris wrote:
Le 03/11/2022 à 19:50, Chet Ramey écrivait :
The option is enabled by default. If you want to restore the previous
behavior, add `shopt -u patsub_replacement'.

Having it enabled by default is not good, because it introduces side-effects for existing scripts.

In my experience, it doesn't matter when you flip that switch. As soon as
you change something, people will complain.

The question is what should have higher priority: useful new features or
backwards compatibility. In this case, I took the former.

Shell has historically perpetuated legacy features to preserve the function of those no-longer maintained systems and associated scripts.

Why are "no-longer-maintained systems" upgrading software? They're
essentially frozen in amber.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

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