]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: give input file to sed.
authorKarl Berry <karl@freefriends.org>
Wed, 15 Nov 2023 18:37:22 +0000 (10:37 -0800)
committerKarl Berry <karl@freefriends.org>
Wed, 15 Nov 2023 18:37:22 +0000 (10:37 -0800)
* t/posixtarget.sh: sed ... Makefile | grep,
not sed ... | grep Makefile, to avoid waiting forever on stdin.

t/posixtarget.sh

index ffe7abd541acaf84aa6a8c70c9c468613e887ede..54f0aac7bb912aa7814ed85f8b5614dd619d8311 100644 (file)
@@ -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:'