From e57cb179608077b7459b95bb3219035dd0045912 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Sat, 16 Apr 2016 08:19:23 -0700 Subject: Fix tail -NUM again. This time with a test. --- tests/tail.test | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/tail.test') diff --git a/tests/tail.test b/tests/tail.test index c1c44c6a..81dc871f 100755 --- a/tests/tail.test +++ b/tests/tail.test @@ -20,6 +20,7 @@ testing "-c out of bounds" "tail -c 999 file1" "$BIGTEST" "" "" testing "-c+ in bounds" "tail -c +27 file1" \ "x\nseven\neight\nnine\nten\neleven\n" "" "" testing "-c+ out of bonds" "tail -c +999 file1" "" "" "" +testing "-N" "tail -1 file1" "eleven\n" "" "" rm file1 testing "stdin no trailing newline" "tail -n 1 - " "c" "" "a\nb\nc" -- cgit v1.2.3