With no operand, 'tail -f' now silently ignores the '-f'

only if standard input is a FIFO or pipe and POSIXLY_CORRECT is set.
This commit is contained in:
Paul Eggert 2006-07-01 23:53:05 +00:00
parent 2d33a9301b
commit 31acf81fa0
3 changed files with 19 additions and 0 deletions

View File

@ -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.

5
NEWS
View File

@ -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

View 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