Red Hat Bugzilla – Full Text Bug Listing
|Summary:||"tail +5 file" no longer works|
|Product:||[Fedora] Fedora||Reporter:||Ville Herva <v>|
|Component:||coreutils||Assignee:||Tim Waugh <twaugh>|
|Status:||CLOSED NOTABUG||QA Contact:|
|Fixed In Version:||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2005-11-30 14:58:30 EST||Type:||---|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
Description Ville Herva 2005-11-30 14:52:12 EST
Description of problem: tail +<number> file no longer works Version-Release number of selected component (if applicable): coreutils-5.93-4 tail (GNU coreutils) 5.93 How reproducible: always Steps to Reproduce: 1. tail +5 /etc/protocols 2. 3. Actual results: tail: cannot open `+5' for reading: No such file or directory ==> /etc/protocols <== crdup 127 CRUDP # Combat Radio User Datagram sscopmce 128 SSCOPMCE (...) Expected results: lines beginning from line 5 Additional info: One can use tail -n +5 /file as a workaround. However, this ("tail +5" not working) breaks many existing scripts, such as the Sun j2re-1.4.2 installer. "tail +2" appears to work on other platforms as well (like Irix). At least coreutils-5.93-2 broken as well, but tail from coreutils-5.2.1-56 works.
Comment 1 Tim Waugh 2005-11-30 14:58:30 EST
This is intentional. See this info page: info coreutils "Standards Conformance" for rationale and a work-around that will work in the case you mention.
Comment 2 Ville Herva 2005-11-30 15:05:28 EST
Umh, http://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=tail&submit=Search%21& idxname=bug-coreutils&max=20&result=normal&sort=score seems to clarify this issue. I'm not sure if people _really_ need to be able to tail files with a name like " +72" easier than to view the lines starting from 72 of any file. But I guess POSIX is the word of God. And the scripts will be fixed in twenty years anyway...
Comment 3 Ville Herva 2005-11-30 15:14:05 EST
Thanks for the quick reply. (As an afterthought I realize my tone was not perhaps as calm as it should've been. In any case I didn't mean to blame _you_.)
Comment 4 Tim Waugh 2005-12-02 04:26:07 EST
*** Bug 174785 has been marked as a duplicate of this bug. ***