bug-bash
[Top][All Lists]
Advanced

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

Re: string substitution broken since 5.2


From: Alex fxmbsw7 Ratchev
Subject: Re: string substitution broken since 5.2
Date: Fri, 4 Nov 2022 09:50:03 +0100

On Fri, Nov 4, 2022, 08:56 Léa Gris <lea.gris@noiraude.net> 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.
>

there is , imo , no sense to comply to outdated specs to not add few more
of the infinite base features

nevermind ..

>
> Shell has historically perpetuated legacy features to preserve the
> function of those no-longer maintained systems and associated scripts.
>
> Are there enough reasons to break this trend and stop preserving
> backward-compatibility with older scripts; by enabling new features that
> can affect the behaviour of previous code with side-effects?
>
> --
> Léa Gris
>
>


reply via email to

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