From fdef80133f42f79d71dee7cb70dd872f94bec124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henryk=20Pl=C3=B6tz?= Date: Fri, 3 Oct 2014 20:34:48 +0200 Subject: Fix for GNU tail. GNU tail does not understand 'tail +2' syntax and needs 'tail -n +2'. --- run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.sh b/run-tests.sh index 14d2c88..2303045 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -21,7 +21,7 @@ for i in test/q-*; do id="${i#test/q}" echo -n "$i ... " read sec type name <"$i" - ./tinydns-get "$sec" "$type" $name | tail +2 >test/"o$id" + ./tinydns-get "$sec" "$type" $name | tail -n +2 >test/"o$id" sed -s 's/\b[0-9]\{10\}\b/