diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2021-08-19 08:21:23 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2021-08-19 08:21:23 +0200 |
commit | 3afa9757da056e2dc2abf56b0abb7b4276c030d7 (patch) | |
tree | 490243c5c78c4bf1e5627b29ce5f538165c75550 | |
parent | 36f37568bac3ac9efb2917c5d68dea50a4a619c3 (diff) | |
download | bison-3afa9757da056e2dc2abf56b0abb7b4276c030d7.tar.gz |
tests: grep -E is not portable
Reported by Dagobert Michelsen.
<https://lists.gnu.org/r/bug-bison/2021-08/msg00008.html>
* tests/calc.at: Use $EGREP.
-rw-r--r-- | tests/calc.at | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/calc.at b/tests/calc.at index 831a2b08..11801543 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -970,7 +970,7 @@ AT_JAVA_IF( [AT_PARSER_CHECK([calc $1 input], 0, [m4_ifvaln(m4_quote($3), [$3])], [stderr])]) AT_LANG_MATCH([c\|c++\|java], [AT_GLR_IF([], - [AT_CHECK([grep -c -v -E 'Return for a new token:|LAC:' stderr], + [AT_CHECK([$EGREP -c -v 'Return for a new token:|LAC:' stderr], [ignore], [m4_n([AT_DEBUG_IF([$4], [0])])])])]) ]) |