From: Eric Sunshine Date: Wed, 11 Mar 2026 21:54:53 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:51 PM Junio C Hamano wrote: > Eric Sunshine writes: > > >> 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. > > Ah, thanks for correcting me. > > But "sed -n -i -e '/.../p'" would not catch "-i", and that is not > all that unlikely, I suspect. Correct. By only looking at the very first option following the command name (`sed`), the checking performed by check-non-portable-shell.pl is very weak indeed.