X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=vKAEYaOFOHYUogphkO6ICfguqI9IEbN1xiTqvf3zObUGb2Y73MImB
	O43YjiE4ElrsdpnQQaERTBr0EcAQ86ELTTAnSv/mb2thJY1KTrOZdhLK2l0uG3Jg
	ManTfMzc/cMzB79s2YPls6MLjGP4uIgQEcYvmGSkDLvn4unIzlolpM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=tvmori4V3JKWCO1ghLJTbAaWJTY=; b=SAs45PDeVKbRFQvPW3/tr0ihZ61J
	4w+5TLNlD6laopmMFApeq2h0J9Et/ROEIrBi5BHKMYHFK2Ezn67qd8cqxzwrdduV
	PSRF6w+gqGRKL6qYkYCJJDFMoTQLbsZLJCTrp3RHPM1DCLVrF9sHsOcJfzc04pIb
	EDzywqApFsk4o8k=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin@cygwin.com
From: Andrew Schulman <schulman.andrew@epa.gov>
Subject: Re: cygcheck and literal plus sign
Date: Wed, 22 Jan 2014 11:03:03 -0500
Lines: 19
Message-ID: <nsqvd9ljelb4lcv0qsbcgi1oivv6sm83c3@4ax.com>
References: <CAAXzdLUjc=cYva6EfZQjRArt5NQbPG3VTTGEch=kN1GEx2-fjA@mail.gmail.com> <20140122055830.GB4286@ednor.casa.cgf.cx> <g4bvd9549dive5dnnh81c5frnqdlbtkku2@4ax.com> <20140122150721.GA6650@ednor.casa.cgf.cx>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Archive: encrypt
X-IsSubscribed: yes

> 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

