Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=7501743
By: keithmarshall

$ info diff "diff options"
gSpecified Lines

(this is the "Specified "Lines note, linked from the "diff Options" menu item
in the diff info-pages) says:
   To ignore insertions and deletions of lines that match a
   `grep'-style regular expression, use the `-I REGEXP' or
   `--ignore-matching-lines=REGEXP' option.

grep-style implies the class explicitly defined as "basic regular expressions";
your "(w|x)" is an example of the class defined as "extended regular 
expressions",
and hence would not fit this documented usage requirement of diff.

In BRE parlance, *none* of the characters "(", "|" or ")" are considered 
special,
so "(w|x)" is just an expression which matches itself, in its entirety, i.e.
the complete literal sequence "(w|x)".  If you want an expression to match 
either
of the *single* characters "w" or "x", it is "[wx]".  If, (as seems more 
likely),
"w" and "x" represent longer strings, then you can invoke your diff command as

$ diff -I w -I x file1file2

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=74807

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
GnuWin32-Users mailing list
GnuWin32-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnuwin32-users

Reply via email to