cygcheck and literal plus sign
Andrew Schulman
schulman.andrew@epa.gov
Wed Jan 22 16:03:00 GMT 2014
> On Wed, Jan 22, 2014 at 06:34:49AM -0500, Andrew Schulman wrote:
> >> > $ 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
(which should have been g\+\+\.exe)
> Sorry. I screwed up there by not reading carefully.
>
> So I'll change my answer to "I don't know".
A time-honored answer :)
--
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
More information about the Cygwin
mailing list