From: Eric Sunshine Date: Mon, 11 Mar 2019 22:28:05 GMT Subject: Re: Solaris and sed: Too many commands, last: s/\n// Message-ID: <20190311222805.GA6215@flurp.local> In-Reply-To: On Mon, Mar 11, 2019 at 05:43:55PM -0400, Jeffrey Walton wrote: > On Mon, Mar 11, 2019 at 5:15 PM Eric Sunshine wrote: > > On Mon, Mar 11, 2019 at 4:32 PM Jeffrey Walton wrote: > > > I enabled self tests for Solaris. Solaris has some anemic utilities so > > > I put /usr/gnu/bin first on-path. > > > > The first question is if you are really running GNU 'sed'? My guess is > > "no, it's still picking up Solaris's 'sed'". > > I believe so. After modifying PATH, command -v returns: > > Solaris tools: > sed: /usr/gnu/bin/sed > awk: /usr/gnu/bin/awk > grep: /usr/gnu/bin/grep > > (This was added to my scripts to confirm). Can you doubly confirm by having t/Makefile tell us itself? I ask because that error message in your original email is exactly the error spit out by Solaris 'sed'. Perhaps apply this patch: diff --git a/t/Makefile b/t/Makefile index c83fd18861..d22eff4463 100644 --- a/t/Makefile +++ b/t/Makefile @@ -70,6 +70,7 @@ clean-chainlint: check-chainlint: @mkdir -p '$(CHAINLINTTMP_SQ)' && \ + printf 'SED VERSION: ' && sed --version && \ err=0 && \ for i in $(CHAINLINTTESTS); do \ $(CHAINLINT) Maybe Git would benefit from SED, AWK and GREP variables like PERL. Very possibly.