Red Hat Bugzilla – Bug 187479
tail no longer support +lines option
Last modified: 2007-11-30 17:11:29 EST
Description of problem:
The tail command no longer takes the +lines option to print lines starting
relative to the beginning of the file instead of the end.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. echo -e "abc\ndef\nghi" | tail +2
tail: cannot open `+2' for reading: No such file or directory
This works as expected for FC4 coreutils-5.2.1-48.1
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.
*** Bug 187713 has been marked as a duplicate of this bug. ***
*** Bug 215366 has been marked as a duplicate of this bug. ***