patchgrep - Patches: patch #3477, Tests for --only-matching

 
 

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

patch #3477: Tests for --only-matching

Submitter:  Julian Foad <julianfoad>
Submitted:  Thu 28 Oct 2004 12:23:48 PM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Tue 12 Apr 2005 02:38:29 PM UTC, comment #1: 

Added a later version of this tests file to CVS.  The tests are initially all failing; we should fix the bugs or disable the tests before releasing a new version of grep.

Julian Foad <julianfoad>
Thu 28 Oct 2004 12:23:48 PM UTC, original submission:  

The --only-matching (-o) option has several bugs in v2.5.1.  This patch adds tests for some of the bugs to the "make check" test suite.  The bugs are:

  "-o -i" fails to match at all or outputs the wrong letter case (bug #9768).

  "-o -n" or "-o -H" only shows the number/name for the first match on each input line; it should show it for each match.

  "-o" with a "start of line" expression matches again at the end of each match; it should only match at the beginning of the input line.

Julian Foad <julianfoad>

 

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

Attached Files
file #7951:  grep-o.patch added by julianfoad (2KiB - application/octet-stream - Adds tests for --only-matching)

 

Depends on the following items: None found

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 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-04-12 julianfoad StatusNone Done
    Open/ClosedOpen Closed
2004-10-28 julianfoad Attached File- Added grep-o.patch, #3812

Back to the top

Powered by Savane 3.13-caa5.
Corresponding source code