mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 10:13:03 +00:00
tests: beware of portability issues with wc
On macOS, wc -l always prepends the result with a tab, even when fed by stdin. But anyway, we should have used `grep -c -v`, which appears to be portable according to Autoconf's "Limitations of Usual Tools" section. Reported by Denis Excoffier. https://lists.gnu.org/r/bug-bison/2020-04/msg00009.html * tests/calc.at (_AT_CHECK_CALC): Use grep's -c instead.
This commit is contained in:
@@ -1601,7 +1601,7 @@ $9
|
||||
# (C90 and C++98) guarantee: 32767. In that case, GCC's -pedantic
|
||||
# will issue an error.
|
||||
#
|
||||
# There is no "" around `wc` since some indent the result.
|
||||
# There is no "" around `wc` since some wc indent the result.
|
||||
m4_bmatch([$4], [%define lr.type canonical-lr],
|
||||
[if test 32767 -lt `wc -l < input.c`; then
|
||||
CFLAGS=`echo " $CFLAGS " | sed -e 's/ -pedantic / /'`
|
||||
|
||||
Reference in New Issue
Block a user