On Tue, Apr 19, 2022 at 6:36 AM Jonathan Wakely wrote: > > The 'check-tail' target in libgo/Makefile.am does: > > ... | sed -n -e 's/.* \(version.*$$\)/\1/p'` >> libgo.sum > > This doesn't work with Solaris sed (and is documented by Autoconf as > being non-portable). The $ needs to be outside the back-reference > expression: > > ... | sed -n -e 's/.* \(version.*\)$$/\1/p'` >> libgo.sum > > This should be OK to change, because the $ is just an anchor and > doesn't need to be captured. > > More significantly, I see errors like: > > /export/home/jwakely/src/gcc/libgo/match.sh: line 114: ((: go1.13 : > syntax error: invalid arithmetic operator (error token is ".13 ") > > That script uses \+ in a sed script, which is not supported by POSIX > sed, because it's not in the BRE grammar. That seems to be the cause > of the match.sh errors. The attached patch fixes it. Thanks for looking. Committed to mainline like so. Ian