This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cygcheck and literal plus sign
- From: Andrew Schulman <schulman dot andrew at epa dot gov>
- To: cygwin at cygwin dot com
- Date: Wed, 22 Jan 2014 06:34:49 -0500
- Subject: Re: cygcheck and literal plus sign
- Authentication-results: sourceware.org; auth=none
- References: <CAAXzdLUjc=cYva6EfZQjRArt5NQbPG3VTTGEch=kN1GEx2-fjA at mail dot gmail dot com> <20140122055830 dot GB4286 at ednor dot casa dot cgf dot cx>
> > $ cygcheck -p 'g\+\+.exe'
> > Found 0 matches for g\ \ .exe
> >
> >How can I include a literal '+' (plus character) in my search?
>
> By remembering that this is a regex search. How do you quote special characters
> in regexes? Answer: With a '\'.
That's what he did. The single quotes protected the \'s from
interpretation by the shell, so cygcheck received the regex: g\+\+.exe
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple