From f1baae2c053c70805bc4236537e76a7f226134e4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 18 Feb 2002 15:52:46 +0000 Subject: [PATCH] Don't use `head -1'; it's no longer portable. Use `sed 1q' instead. --- tests/insthook.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/insthook.test b/tests/insthook.test index 7950bb24..c12376b8 100755 --- a/tests/insthook.test +++ b/tests/insthook.test @@ -15,4 +15,4 @@ $AUTOMAKE || exit 1 test "`grep install-exec-hook Makefile.in | wc -l`" -gt 1 || exit 1 lnum=`grep -n '^install-exec-am:' Makefile.in | awk -F: '{print $1}'` -test x$lnum != x && tail +$lnum Makefile.in | head -3 | grep install-exec-hook +test x$lnum != x && tail +$lnum Makefile.in | sed 3q | grep install-exec-hook -- 2.43.5