GNU bug report logs - #30504
bug tail -2 FILE1 FILE1 - tail: option used in invalid context -- 2

Previous Next

Package: coreutils;

Reported by: Mike Brescia <mike142wood <at> verizon.net>

Date: Sat, 17 Feb 2018 22:20:02 UTC

Severity: normal

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 30504 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Mike Brescia <mike142wood <at> verizon.net>, 30504 <at> debbugs.gnu.org
Subject: Re: bug#30504: bug tail -2 FILE1 FILE1 - tail: option used in invalid
 context -- 2
Date: Sat, 17 Feb 2018 14:37:32 -0800
There is a backward-compatibility problem with supporting "tail -2" with any 
number of extra arguments, since (for example) "tail -2c 20" has a different 
meaning in traditional "tail" than you might think. To avoid confusion, "tail 
-2" is not encouraged when using non-traditional features (in your case, two or 
more FILE arguments). Since "tail -n2 FILE1 FILE2 ..." suffices, it's not clear 
that it'd be worth the aggravation to rethink this.




This bug report was last modified 6 years and 205 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.