Bug 187479

Summary: tail no longer support +lines option
Product: [Fedora] Fedora Reporter: Adam <adam>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: alan, meyering, steve.t.armstrong
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-03-31 09:23:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam 2006-03-31 09:19:35 UTC
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):
coreutils-5.93-7.2

How reproducible:
Every time

Steps to Reproduce:
1. echo -e "abc\ndef\nghi" | tail +2
  
Actual results:
tail: cannot open `+2' for reading: No such file or directory

Expected results:
def
ghi

Additional info:
This works as expected for FC4 coreutils-5.2.1-48.1

Comment 1 Tim Waugh 2006-03-31 09:23:33 UTC
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
variable:

  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.


Comment 2 Ignacio Vazquez-Abrams 2006-04-03 04:03:15 UTC
*** Bug 187713 has been marked as a duplicate of this bug. ***

Comment 3 Tim Waugh 2006-11-14 10:34:57 UTC
*** Bug 215366 has been marked as a duplicate of this bug. ***