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

 
 

You are not allowed to post comments on this tracker with your current authentication 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:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned 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 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 UTC charles_levert StatusConfirmed => Fixed
    Open/ClosedOpen => Closed
Tue 19 Apr 2005 01:46:01 AM UTC charles_levert StatusNone => Confirmed
    Dependencies- => Depends on patch #3770
Tue 19 Apr 2005 01:25:35 AM UTC fulldecent Carbon-Copy- => Added -email is unavailable-

Back to the top


Powered by Savane 3.3