From: Eric Sunshine Date: Thu, 24 Feb 2022 18:13:31 GMT Subject: Re: [PATCH v3 02/10] t5526: stop asserting on stderr literally Message-ID: In-Reply-To: On Thu, Feb 24, 2022 at 11:46 AM Glen Choo wrote: > Ævar Arnfjörð Bjarmason writes: > > On Thu, Feb 24 2022, Glen Choo wrote: > >> + sed -E 's/[0-9a-f]+\.\./OLD_HEAD\.\./' $ACTUAL_ERR >actual.err.cmp && > > > > I think this is unportable per check-non-portable-shell.pl: > > > > /\bsed\s+-[^efn]\s+/ and err 'sed option not portable (use only -n, -e, -f)'; > > I used that because I wanted +, but I found what I needed from the sed > manpage i.e. that + is equivalent to \{1,\}). This isn't necessarily going to be portable either for older sed implementations. Most portable would be: [0-9a-f][0-9a-f]* (Whether or not we need to worry about those older sed impmenetations is a different question...)