Red Hat Bugzilla – Bug 215366
/usr/bin/tail +nn doesn't work as it used to
Last modified: 2007-11-30 17:11:48 EST
Description of problem:
"/usr/bin/tail +<lines>" no longer works. One must use "tail -n +<lines>".
Version-Release number of selected component (if applicable):
Run the tail command with +<lines>
Steps to Reproduce:
1. /usr/bin/tail +3 /etc/motd and see it tries to open "+3" as a file:
# /usr/bin/tail +3 /etc/motd
/usr/bin/tail: cannot open `+3' for reading: No such file or directory
==> /etc/motd <==
(as seen on FC 4)
$ /usr/bin/tail -n +3 /etc/motd
$ rpm -qf /usr/bin/tail
This specifcally breaks the Real Networks Producer 11 installation script.
The +<lines> syntax for tail has been there forever.
Please read the info page about Standards Conformance:
info coreutils 'Standards Conformance'
In particular, you can re-enable this '+2' behaviour by setting an environment
For example, if you have a newer system but are running
software that assumes an older version of POSIX and uses `sort +1' or
`tail +10', you can work around any compatibility problems by setting
`_POSIX2_VERSION=199209' in your environment.
*** This bug has been marked as a duplicate of 187479 ***