[Top][All Lists]

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

Re: string substitution broken since 5.2

From: Léa Gris
Subject: Re: string substitution broken since 5.2
Date: Fri, 4 Nov 2022 08:56:01 +0100
User-agent: Telnet/1.0 [tlh] (PDP11/DEC)

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.

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]