tests: port to Solaris 10 sed

As documented in the Autoconf manual, Solaris 10 sed rejects
script labels contianing more than 7 characters.  POSIX requires
support for at least 8 characters, but we might as well be portable
to Solaris 10 which is still supported.
* tests/local.at (AT_SETS_CHECK): Use only the first 7 characters
in sed labels.
This commit is contained in:
Paul Eggert
2019-10-17 11:39:51 -07:00
parent 8a4ec5d4e4
commit 071f43d5b7

View File

@@ -1435,10 +1435,10 @@ m4_define([AT_SETS_CHECK],
[[#n
]m4_foreach([m4_Set], [$2], [[
/^]m4_Set[/ {
:]m4_Set[
:]m4_substr(m4_Set, 0, 7)[
p
n
/^ *$/ !b ]m4_Set[
/^ *$/ !b ]m4_substr(m4_Set, 0, 7)[
}
]])])