Re: [PATCH 1/2] scripts/config: Use POSIX standard ERE (-E) in sed
From: Nicolas Schier
Date: Mon Jul 20 2026 - 15:51:12 EST
On Sun, 07 Jun 2026 06:11:31 +0800, Rong Zhang <i@xxxxxxxx> wrote:
> The use of Extended Regular Expressions was removed by commit
> 83e8b90e1d2c ("scripts/config: use sed's POSIX interface").
>
> Before that, the script used `-r' to enable ERE, which is indeed
> non-portable. However, POSIX.1-2024 [1][2] has accepted `-E' as a
> standard option to use ERE for matching, and major sed implementations
> (GNU, FreeBSD, OpenBSD, NetBSD, macOS) have supported `-E' for over two
> decades, so it makes no sense to use Basic Regular Expressions any more.
>
> [...]
Reviewed-by: Nicolas Schier <nsc@xxxxxxxxxx>
--
Nicolas