From 071f43d5b757dd4a1914847759419ba7fb968be3 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 17 Oct 2019 11:39:51 -0700 Subject: [PATCH] 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. --- tests/local.at | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/local.at b/tests/local.at index 14cd448c..43de4abc 100644 --- a/tests/local.at +++ b/tests/local.at @@ -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)[ } ]])])