From: Karl Berry Date: Wed, 15 Nov 2023 18:37:22 +0000 (-0800) Subject: tests: give input file to sed. X-Git-Tag: v1.16i~18 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=458bc6adcb7f715f393b9b2f67c568103c342976;p=thirdparty%2Fautomake.git tests: give input file to sed. * t/posixtarget.sh: sed ... Makefile | grep, not sed ... | grep Makefile, to avoid waiting forever on stdin. --- diff --git a/t/posixtarget.sh b/t/posixtarget.sh index ffe7abd54..54f0aac7b 100644 --- a/t/posixtarget.sh +++ b/t/posixtarget.sh @@ -35,9 +35,9 @@ $AUTOCONF $AUTOMAKE # .POSIX should be the first non-blank non-comment line. -sed -e '/^$/d' -e '/^ *#/d' -e 1q | grep '^\.POSIX:' Makefile.in +sed -e '/^$/d' -e '/^ *#/d' -e 1q Makefile.in | grep '^\.POSIX:' ./configure # Although we aren't responsible for what autoconf does, check that the # result is as expected, since we're here. -sed -e '/^$/d' -e '/^ *#/d' -e 1q | grep '^\.POSIX:' Makefile +sed -e '/^$/d' -e '/^ *#/d' -e 1q Makefile | grep '^\.POSIX:'