patchgrep - Patches: patch #3768, Warn and set context to zero if...

 
 

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

patch #3768: Warn and set context to zero if --only-matching in main() in src/grep.c

Submitter:  Charles Levert <charles_levert>
Submitted:  Thu 24 Feb 2005 08:28:09 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  None Open/Closed:  Closed

Tue 21 Jun 2005 05:21:46 AM UTC, comment #1: 

Applied (committed) as CVS revision 1.103 of "src/grep.c".

Charles Levert <charles_levert>
Thu 24 Feb 2005 08:28:09 AM UTC, original submission:  


In an effort to split patch #3644 in several smaller patches, this patch only adds a test to main() in scr/grep.c (cvs version 1.93).  The test checks for --only-matching and context lines are both specified and if so, set both context specifications to zero and prints an explicit warning explaining what was done and why (as opposed to aborting the process in error).

Other code needs this zero setting to work correctly without having to repeatedly test for this conflictual condition.

Charles Levert <charles_levert>

 

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

Attached Files
file #8456:  grep.c.diff.cvs-1.93.main-o-nocontext.charles2a0 added by charles_levert (503B - application/octet-stream - actual unidiff patch (not the whole file!))
file #8452:  grep.c.cvs-1.93.main-o-nocontext.charles2a0 added by charles_levert (47KiB - application/octet-stream - unidiff patch to test for --only-matching and non-zero context)

 

Depends on the following items: None found

Digest:
   patch dependencies.

 

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 StatusNone Done
    Open/ClosedOpen Closed
2005-04-12 julianfoad Dependencies- patch #3644 is dependent
2005-02-24 charles_levert Attached File- Added grep.c.diff.cvs-1.93.main-o-nocontext.charles2a0, #4228
2005-02-24 charles_levert Attached File- Added grep.c.cvs-1.93.main-o-nocontext.charles2a0, #4224

Back to the top

Powered by Savane 3.13-d3ae.
Corresponding source code