buggrep - Bugs: bug #12727, --with-filename --only-matching,...

 
 

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

bug #12727: --with-filename --only-matching, not as expected

Submitted by:  None
Submitted on:  Tue 19 Apr 2005 01:23:14 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 21 Jun 2005 06:23:02 AM UTC, comment #2:

Fixed by CVS revision 1.104 of "src/grep.c".

Charles Levert <charles_levert>
Tue 19 Apr 2005 01:46:01 AM UTC, comment #1:

This is covered by patch #3770, as well as by a thread of discussion on the bug-grep mailing list entitled "--only-matching interacts badly with context lines and line head"; see <http://lists.gnu.org/archive/html/bug-grep/2005-02/msg00026.html>.

Charles Levert <charles_levert>
Tue 19 Apr 2005 01:23:14 AM UTC, original submission:

--with-filename --only-matching will not print filename with each result.

Testcase:
echo "a a" | grep --with-filename --only-matching a

Expected result:
(standard input):a
(standard input):a

Actual result:
(standard input):a
a

Anonymous

 

No files currently attached

 

Digest:
   patch dependencies.

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 the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 21 Jun 2005 06:23:02 AM UTCcharles_levertStatusConfirmed=>Fixed
  Open/ClosedOpen=>Closed
Tue 19 Apr 2005 01:46:01 AM UTCcharles_levertStatusNone=>Confirmed
  Dependencies-=>Depends on patch #3770
Tue 19 Apr 2005 01:25:35 AM UTCfulldecentCarbon-Copy-=>Added -unavailable-

Back to the top


Powered by Savane 3.1-cleanup