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

Submitter:  None
Submitted:  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

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Digest:
   patch dependencies.

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-06-21 charles_levert StatusConfirmed Fixed
    Open/ClosedOpen Closed
2005-04-19 charles_levert StatusNone Confirmed
    Dependencies- Depends on patch #3770
2005-04-19 fulldecent Carbon-Copy- Added -email is unavailable-

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code