GNU bug report logs - #9370
"tail -f -1" should work

Previous Next

Package: coreutils;

Reported by: Eli the Beareded <gnu-bugs <at> panix.com>

Date: Thu, 25 Aug 2011 06:22:01 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Eli the Beareded <gnu-bugs <at> panix.com>
Cc: 9370 <at> debbugs.gnu.org
Subject: bug#9370: "tail -f -1" should work
Date: Thu, 25 Aug 2011 11:48:45 -0700
On 08/24/11 23:15, Eli the Beareded wrote:
> On any other system I have used the -NUM option can be used with
> the -f option to specify how many lines of the file as-is to print
> before starting to follow it for updates.

The interaction between -NUM and other options is so complicated
and unportable (different editions of the POSIX standards
disagree!) that GNU 'tail' is fairly conservative about where it
allows -NUM.  It might be nice to add support for your particular usage,
if someone wants to write the code, but it'll require some care to make
sure it doesn't run afoul of existing usage or standard in some other way.

In the meantime I suggest using "tail -f -n NUM", as that's standard
and portable these days.




This bug report was last modified 13 years and 280 days ago.

Previous Next


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