buggrep - Bugs: bug #12128, grep -1 -2 is equivalent to grep...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #12128: grep -1 -2 is equivalent to grep -12

Submitted by:  Stepan Kasal <kasal>
Submitted on:  Thu 24 Feb 2005 01:44:51 PM UTC  
 
Category: NoneSeverity: 2 - Minor
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Sun 27 Feb 2005 06:53:05 AM UTC, comment #2:

coreutils has attempted to move away from numeric options like "head -20". Support for this usage has been removed for hosts that claim conformance to POSIX 1003.1-2001. Part of the problem is that the obsolescent syntax wasn't regular at all (e.g., "head -20 -q" worked, but "head -q -20" did not).

Paul Eggert <eggert>
Fri 25 Feb 2005 05:49:17 AM UTC, comment #1:

Hints:
- look how coreutils do it (head -20, etc.)
- when we start using gnulib, investigate the possibilities of the getopt module

Stepan Kasal <kasal>
Project Member
Thu 24 Feb 2005 01:44:51 PM UTC, original submission:

grep -1 -2 prints twelve lines of context.

Stepan Kasal <kasal>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter 421 here (basic anti-spam test):

 

 

No Changes Have Been Made to This Item
Show feedback again

Back to the top


Powered by Savane 3.1-cleanup