From: Eric Sunshine Date: Wed, 11 Mar 2026 21:39:39 GMT Subject: Re: [PATCH v4 1/1] help: cleanup the contruction of keys_uniq Message-ID: In-Reply-To: On Wed, Mar 11, 2026 at 5:11 PM Junio C Hamano wrote: > For example, in addition to the escape we see in t6030 above, the > current pattern would not catch use of -E if it is written this way: > > sed "-E" -e " > ... > " human | > sort -u Seems unlikely to arise in practice. > or > > sed \ > -E -e " > ... > " human | > sort -u For what it's worth, line folding capability was added to check-non-portable-shell.pl by a0a630192d (t/check-non-portable-shell: detect "FOO=bar shell_func", 2018-07-13), so it does correctly detect the errant -E in this example. > and million other ways to subvert the simple-minded pattern-match > based check. True, for sure.