From 5de1b14bba58fb5c4b2dd8c84d5e439a945533ff Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 18 Feb 2002 15:50:04 +0000 Subject: [PATCH] Use sed 1q, not `head -n 1'. The latter is not portable to some old systems. --- tests/cond12.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cond12.test b/tests/cond12.test index 9d3d7b02..df7996da 100755 --- a/tests/cond12.test +++ b/tests/cond12.test @@ -9,7 +9,7 @@ # FIXME: probably ought to let use override this like we do in `defs'. amfile=../../automake -head -n 1 $amfile >>automake_tmp +sed 1q $amfile >>automake_tmp cat << 'END' >> automake_tmp my $failed = 0; sub check_reduce($$) { @@ -17,7 +17,7 @@ sub check_reduce($$) { my @result = sort &Automake::variable_conditions_reduce(@$inref); my $correct = 1; $correct = 0 if (join(",", @result) ne join(",", @$outref)); - + if (! $correct) { print '"'.join(",", @$inref) . '" => "' . join(",", @result) . '" expected "' . -- 2.43.5