Bug 187479 - tail no longer support +lines option
Summary: tail no longer support +lines option
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
: 187713 215366 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-03-31 09:19 UTC by Adam
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-03-31 09:23:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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. ***


Note You need to log in before you can comment on or make changes to this bug.