diff options
author | Zack Weinberg <zackw@panix.com> | 2020-07-16 16:43:48 -0400 |
---|---|---|
committer | Zack Weinberg <zackw@panix.com> | 2020-07-16 16:43:48 -0400 |
commit | 71b5037ac652ed20bdf6624d915c657613a95f8c (patch) | |
tree | afe8e8aaeb50dd682c694d26971687155ccea57e | |
parent | f7693b83f25ef14209d83572b38f0e465be83836 (diff) | |
download | autoconf-71b5037ac652ed20bdf6624d915c657613a95f8c.tar.gz |
tests/local.at: improve sed portability
Solaris 10 /bin/sed does not support * after \( … \), only after
subexpressions that match a _single character_.
Partially addresses #110267. Problem reported by Dagobert Michelsen.
* tests/local.at (AT_CHECK_M4): Do not use star after parenthesized
subexpression in sed s/// commands.
-rw-r--r-- | tests/local.at | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/local.at b/tests/local.at index 9ec61ead..308eae32 100644 --- a/tests/local.at +++ b/tests/local.at @@ -137,7 +137,8 @@ m4_case([$4], [], [], [ignore], [], s/: C\(annot open \)\([^`:]*\):/: c\1`\2'\'':/ s/: include:\( cannot open\)/:\1/ s/^autom4te: [^ ]*m4[.ex]* /autom4te: m4 / - s!^.*/\([^/][^/]*\)\.m4: *\([0-9][0-9]*:\)*!\1.m4:! + s!^.*/\([^/][^/]*\)\.m4: *[0-9][0-9]*: *!\1.m4: ! + s!^.*/\([^/][^/]*\)\.m4: *[0-9][0-9]*: *[0-9][0-9]*: *!\1.m4: ! s/ (E[A-Z]*)$// ' stderr-raw >&2]], [0], [], [$4])]) ]) |