summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-07-01 23:53:05 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-07-01 23:53:05 +0000
commit31acf81fa092fabe5fde9b3f23d564ff2f0b02a3 (patch)
tree2f6c95939931e89548c509eddc789883f6010433
parent2d33a9301bf506d906cc9311f058efadff501806 (diff)
downloadcoreutils-31acf81fa092fabe5fde9b3f23d564ff2f0b02a3.tar.xz
With no operand, 'tail -f' now silently ignores the '-f'
only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.
-rw-r--r--ChangeLog8
-rw-r--r--NEWS5
-rw-r--r--doc/ChangeLog6
3 files changed, 19 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b3271b7e2..6f2f561bc 100644
--- 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 8be655ffb..614c69f43 100644
--- 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
diff --git a/doc/ChangeLog b/doc/ChangeLog
index e253cad65..af571ed85 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -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