From: Marco Atzeri <marco.atzeri@gmail.com>
To: cygwin@cygwin.com
Subject: Re: cygcheck and literal plus sign
Date: Wed, 22 Jan 2014 06:46:00 -0000 [thread overview]
Message-ID: <52DF6930.70503@gmail.com> (raw)
In-Reply-To: <20140122055830.GB4286@ednor.casa.cgf.cx>
On 22/01/2014 06:58, Christopher Faylor wrote:
> On Tue, Jan 21, 2014 at 05:59:16PM -0600, Steven Penny wrote:
>> Searching for the popular compiler produces unexpected results
>>
>> $ cygcheck -p 'g++.exe'
>> Found 0 matches for g .exe
>>
>> $ 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 '\'.
>
I am surely dumb, but whatever and how many '\' are used
the '+' is always returned as a ' ' in the reply.
So the specific example will be appreciated,
as a single quoting usually works in regexes
$ cd /etc/setup
$ zcat gcc-g++.lst.gz |grep -P "g\+\+"
usr/bin/g++.exe
usr/bin/i686-pc-cygwin-g++.exe
usr/share/man/man1/g++.1.gz
Is something "sanitizing" the query on server side to avoid
nasty surprise ?
$ zcat gcc-g++.lst.gz |grep -P "g++" |wc -l
723
Marco
--
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
next prev parent reply other threads:[~2014-01-22 6:46 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-21 23:59 Steven Penny
2014-01-22 5:58 ` Christopher Faylor
2014-01-22 6:46 ` Marco Atzeri [this message]
2014-01-22 11:35 ` Andrew Schulman
2014-01-22 15:07 ` Christopher Faylor
2014-01-22 16:03 ` Andrew Schulman
2014-01-22 16:06 ` David Boyce
2014-01-22 16:13 ` Larry Hall (Cygwin)
2014-01-25 2:26 ` Steven Penny
2014-01-27 15:48 ` Gates, Roger
2014-01-27 18:59 ` Larry Hall (Cygwin)
2014-01-27 22:43 ` Steven Penny
2017-01-28 3:01 ` Steven Penny
2017-01-28 4:01 ` Doug Henderson
2017-01-28 12:21 ` Steven Penny
2017-01-28 17:45 ` Brian Inglis
2017-01-28 19:06 ` Eric Blake
2017-01-28 19:59 ` Brian Inglis
2017-01-30 18:30 ` Jon Turney
2017-01-31 0:00 ` Steven Penny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52DF6930.70503@gmail.com \
--to=marco.atzeri@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).