Summary: | tail will not redirect output when given the option +n where n=number of lines from top of file | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paul Stillwell <paul> |
Component: | [OLD] Core system | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | major | CC: | beu, willard.dawson |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Paul Stillwell
2005-01-20 20:45:11 UTC
Hi, The usage of some tools in the coreutils package (the package that provides head, tail, etc.) has changed to be more POSIX compliant. "tail -n +260 foo/bar" will work, but "tail -10", or "tail +2" will either give off an depreciation error or die (like it did above). The manual pages might be of help, but basically prior usage of "tail [-|+]N" needs to be converted to "tail -n [-|+]N". Hope this helps :) This behavior is correct. If you need the old behavior for broken applications that can't be fixed to use 'tail -n [-+]N', there is a workaround. Run this for the workaround documentation: info coreutils Standards conformance *** Bug 159226 has been marked as a duplicate of this bug. *** Even if the accepted usage is `tail -n +N file`, the man page is confusing, if not contradictory. |