With no operand, 'tail -f' now silently ignores the '-f'
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 1 Jul 2006 23:53:05 +0000 (23:53 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 1 Jul 2006 23:53:05 +0000 (23:53 +0000)
only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.

ChangeLog
NEWS
doc/ChangeLog

index b3271b7..6f2f561 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * NEWS: With no operand, 'tail -f' now silently ignores the '-f'
+       only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.
+       * src/tail.c (main): Implement this.
+       * tests/tail/Test.pm (f-pipe-1): Renamed from f-1.
+       (test_vector): Set POSIXLY_CORRECT for the f-pipe-* tests.
+
 2006-07-01  Jim Meyering  <jim@meyering.net>
 
        * src/ln.c (do_link): Use new, shorter URL, for ag-review link.
diff --git a/NEWS b/NEWS
index 8be655f..614c69f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -105,6 +105,11 @@ GNU coreutils NEWS                                    -*- outline -*-
   two hex digits), and the standard sequences (\a, \b, \f, \n, \r, \t,
   \v, \", \\).
 
+  With no operand, 'tail -f' now silently ignores the '-f' only if
+  standard input is a FIFO or pipe and POSIXLY_CORRECT is set.
+  Formerly, it ignored the '-f' when standard input was a FIFO, pipe,
+  or socket.
+
 ** Scheduled for removal
 
   ptx's --copyright (-C) option is scheduled for removal in 2007, and
index e253cad..af571ed 100644 (file)
@@ -1,3 +1,9 @@
+2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * coreutils.texi (tail invocation): With no operand, 'tail -f' now
+       silently ignores the '-f' only if standard input is a FIFO or pipe
+       and POSIXLY_CORRECT is set.
+
 2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
 
        * coreutils.texi (seq invocation): seq now uses long double