Subject: bug#42711: Tail does not recognize line number spec for multiple files

From: Anonymousemail <[email-masked]>
Date: Tue, 4 Aug 2020 18:19:11 +0000

This command gives an error:

$ tail -5 foo bar baz
tail: option used in invalid context -- 5

For comparison, the equivalent head commans works exactly as expected:

$ head -5 foo bar baz
==&gt; foo &lt;==
foo line 1
foo line 2
foo line 3
foo line 4
foo line 5

==&gt; bar &lt;==
bar line 1
bar line 2
bar line 3
bar line 4
bar line 5

==&gt; baz &lt;==
baz line 1
baz line 2
baz line 3
baz line 4
baz line 5
&nbsp;