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