[Pcre-svn] [421] code/trunk: Fix --fixed-strings.

Página Inicial
Delete this message
Autor: Subversion repository
Data:  
Para: pcre-svn
Assunto: [Pcre-svn] [421] code/trunk: Fix --fixed-strings.
Revision: 421
          http://vcs.pcre.org/viewvc?view=rev&revision=421
Author:   ph10
Date:     2009-08-14 16:43:27 +0100 (Fri, 14 Aug 2009)


Log Message:
-----------
Fix --fixed-strings.

Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/pcregrep.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2009-08-12 17:32:27 UTC (rev 420)
+++ code/trunk/ChangeLog    2009-08-14 15:43:27 UTC (rev 421)
@@ -21,6 +21,11 @@
     more useful - otherwise, why use --count?) Also ensured that the 
     combination -clh just lists non-zero counts, with no names.


+4.  The long form of the pcregrep -F option was incorrectly implemented as 
+    --fixed_strings instead of --fixed-strings. This is an incompatible change, 
+    but it seems right to fix it, and I didn't think it was worth preserving 
+    the old behaviour. 
+    


Version 7.9 11-Apr-09
---------------------

Modified: code/trunk/pcregrep.c
===================================================================
--- code/trunk/pcregrep.c    2009-08-12 17:32:27 UTC (rev 420)
+++ code/trunk/pcregrep.c    2009-08-14 15:43:27 UTC (rev 421)
@@ -211,7 +211,7 @@
   { OP_STRING,    'D',      &DEE_option,       "devices=action","how to handle devices, FIFOs, and sockets" },
   { OP_STRING,    'd',      &dee_option,       "directories=action", "how to handle directories" },
   { OP_PATLIST,   'e',      NULL,              "regex(p)",      "specify pattern (may be used more than once)" },
-  { OP_NODATA,    'F',      NULL,              "fixed_strings", "patterns are sets of newline-separated strings" },
+  { OP_NODATA,    'F',      NULL,              "fixed-strings", "patterns are sets of newline-separated strings" },
   { OP_STRING,    'f',      &pattern_filename, "file=path",     "read patterns from file" },
   { OP_NODATA,    N_FOFFSETS, NULL,            "file-offsets",  "output file offsets, not text" },
   { OP_NODATA,    'H',      NULL,              "with-filename", "force the prefixing filename on output" },