summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-09-23 20:26:31 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-09-23 20:26:31 +0000
commit9a9f80bc659d7e480308a6f30fda1e695b88bb83 (patch)
tree2e37d81b36b060cbc75bc98d9edc3a598aabc301 /doc
parent4e2b20d9b74f4c3f23c5167534e9e2fc8f149530 (diff)
downloadcoreutils-9a9f80bc659d7e480308a6f30fda1e695b88bb83.tar.xz
(tail invocation): Fix bugs in the description of
the obsolete syntax (e.g., it does not support -k or -m). Warn about usages like "tail -" and "tail -c 4" that are ambigous on older systems.
Diffstat (limited to 'doc')
-rw-r--r--doc/coreutils.texi23
1 files changed, 14 insertions, 9 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index a98c674e3..7068fc487 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -2552,15 +2552,20 @@ Always print file name headers.
@end table
On older systems, @command{tail} supports an obsolete option
-@option{-@var{count}@var{options}}, which is recognized only if it is
-specified first. @var{count} is a decimal number optionally followed
-by a size letter (@samp{b}, @samp{k}, @samp{m}) as in @option{-c}, or
-@samp{l} to mean count by lines, or other option letters
-(@samp{cfqv}). Some older @command{tail} implementations also support
-an obsolete option @option{+@var{count}} with the same meaning as
-@option{-+@var{count}}. @acronym{POSIX} 1003.1-2001 (@pxref{Standards
-conformance}) does not allow these options; use @option{-c
-@var{count}} or @option{-n @var{count}} instead.
+@option{-@var{count}[bcl][f]}, which is recognized only if it is
+specified first. @var{count} is an optional decimal number optionally
+followed by a size letter (@samp{b}, @samp{c}, @samp{l}) to mean count
+by 512-byte blocks, bytes, or lines, optionally followed by @samp{f}
+which has the same meaning as @option{-f}. Also, the leading @samp{-}
+can be replaced by @samp{+} with the same meaning as in counts.
+@acronym{POSIX} 1003.1-2001 (@pxref{Standards conformance}) does not
+allow most of these obsolete usages; use @option{-c @var{count}[b]},
+@option{-n @var{count}}, and/or @option{-f} instead.
+
+On older systems, obsolete usage overrides normal usage, so portable
+shell scripts should avoid commands that can be interpreted either
+way. For example, use @samp{tail -- - file} rather than @samp{tail -
+file}, and use @samp{tail -c4} rather than @samp{tail -c 4}.
@exitstatus