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

Submitted by:  Charles Levert <charles_levert>
Submitted on:  Thu Feb 24 08:28:09 2005  
Category: NonePriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: NoneOpen/Closed: Closed

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

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

Charles Levert <charles_levert>
Thu Feb 24 08:28:09 2005, 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>


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 (47kB - application/octet-stream - unidiff patch to test for --only-matching and non-zero context)


Depends on the following items: None found

   patch dependencies.


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 Jun 21 05:21:46 2005charles_levertStatusNone=>Done
Tue Apr 12 15:09:31 2005julianfoadDependencies-=>patch #3644 is dependent
Thu Feb 24 08:43:02 2005charles_levertAttached File-=>Added grep.c.diff.cvs-1.93.main-o-nocontext.charles2a0, #4228
Thu Feb 24 08:28:09 2005charles_levertAttached File-=>Added grep.c.cvs-1.93.main-o-nocontext.charles2a0, #4224

Back to the top

Powered by Savane 3.1-cleanup1