From 0830b1b82aa96651e7194211a8992f976f8c2683 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 1 Jul 2006 23:49:46 +0000 Subject: [PATCH] (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. --- doc/coreutils.texi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 35134366fa..abc226ea7f 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -2501,8 +2501,7 @@ by 1048576. @vindex name @r{follow option} @vindex descriptor @r{follow option} Loop forever trying to read more characters at the end of the file, -presumably because the file is growing. This option is ignored if -no @var{file} operand is specified and standard input is a pipe. +presumably because the file is growing. If more than one file is given, @command{tail} prints a header whenever it gets output from a different file, to indicate which file that output is from. @@ -2534,6 +2533,10 @@ growing. The option values @samp{descriptor} and @samp{name} may be specified only with the long form of the option, not with @option{-f}. +@vindex POSIXLY_CORRECT +If @env{POSIXLY_CORRECT} is set, the @option{-f} option is ignored if +no @var{file} operand is specified and standard input is a pipe. + @item -F @opindex -F This option is the same as @option{--follow=name --retry}. That is, tail -- 2.47.3