bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-grep] [patch #3768] Warn and set context to zero if --only-matching


From: Charles Levert
Subject: [bug-grep] [patch #3768] Warn and set context to zero if --only-matching in main() in src/grep.c
Date: Thu, 24 Feb 2005 08:28:10 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

URL:
  <http://savannah.gnu.org/patch/?func=detailitem&item_id=3768>

                 Summary: Warn and set context to zero if --only-matching in
main() in src/grep.c
                 Project: grep
            Submitted by: charles_levert
            Submitted on: Thu 02/24/2005 at 08:28
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open

    _______________________________________________________

Details:



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.







    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 02/24/2005 at 08:28  Name:
grep.c.cvs-1.93.main-o-nocontext.charles2a0  Size: 47.36KB   By:
charles_levert
unidiff patch to test for --only-matching and non-zero context
<http://savannah.gnu.org/patch/download.php?item_id=3768&item_file_id=4224>

    _______________________________________________________

This item URL is:

  <http://savannah.gnu.org/patch/?func=detailitem&item_id=3768>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]