summaryrefslogtreecommitdiffstats
path: root/usr.bin/tail/tail.1
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2009-06-05 09:08:53 +0000
committerbrian <brian@FreeBSD.org>2009-06-05 09:08:53 +0000
commit330bc8582df629e9fa4dccb68bbab181520d98a9 (patch)
treee543b101f94f862f5071b48f0a4c466e2afa6f25 /usr.bin/tail/tail.1
parentc284a3411ae19dfa5dbf2a027bbbd7aa24ff1191 (diff)
downloadFreeBSD-src-330bc8582df629e9fa4dccb68bbab181520d98a9.zip
FreeBSD-src-330bc8582df629e9fa4dccb68bbab181520d98a9.tar.gz
Change the behaviour of -F slightly; it now persists (forever) in
trying to open files rather than giving up when it encounters an error. ENOENT errors are not reported. As a result, files that are moved away then recreated are not at risk of being 'lost' to tail. Files that are recreated and temporarily have unreadable permissions will be shown when they are fixed. This behaviour is consistent with the GNU version of tail but without the verbiage that goes with the GNU version. This change also fixes error messages accompanying -f and -F. They no longer report problems with (null)! MFC after: 3 weeks
Diffstat (limited to 'usr.bin/tail/tail.1')
-rw-r--r--usr.bin/tail/tail.111
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.bin/tail/tail.1 b/usr.bin/tail/tail.1
index 251511a..7f91e71 100644
--- a/usr.bin/tail/tail.1
+++ b/usr.bin/tail/tail.1
@@ -35,7 +35,7 @@
.\" @(#)tail.1 8.1 (Berkeley) 6/6/93
.\" $FreeBSD$
.\"
-.Dd June 29, 2006
+.Dd June 05, 2009
.Dt TAIL 1
.Os
.Sh NAME
@@ -106,9 +106,16 @@ will also check to see if the file being followed has been renamed or rotated.
The file is closed and reopened when
.Nm
detects that the filename being read from has a new inode number.
+.Pp
+If the file being followed does not (yet) exist or if it is removed, tail
+will keep looking and will display the file from the beginning if and when
+it is created.
+.Pp
The
.Fl F
-option is ignored if reading from standard input rather than a file.
+option is the same as the
+.Fl f
+option if reading from standard input rather than a file.
.It Fl n Ar number
The location is
.Ar number
OpenPOWER on IntegriCloud