On Sun, Dec 16, 2018 at 07:46:45AM -0800, Steve Kargl wrote:
> On Sun, Dec 16, 2018 at 11:45:11AM +0100, Dominique d'Humières wrote:
> > Hi Steve,
> > 
> > The patch works as expected.
> > 
> > Is "Can\’t " instead of "Can’t " really necessary?
> > 
> 
> I don't remember how dejagnu handles quotes in the
> regex expression.  "Can\'t" seems to work (for me).
> If you want to change it, go ahead.  Personally, I
> would prefer "Cannot". 

A backslash in a double-quoted string is handled by backslash-substitution,
before it is ever seen as a regexp.  "\'" is exactly the same as "'".

In a braced string it does not get backslash-substitution and then it _is_
handled by the regular expression parsing, but again, as RE {\'} is exactly
the same as {'}.


Segher

Reply via email to