delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/01/22/06:35:25

X-Recipient: archive-cygwin AT delorie DOT 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=VIX9s9A3rYJgsrs1USqDpuKffiqntX7lNyUYrnVvzdzyR/aijkI41
PvIZVd1n/f++mgm1IFXIwReNrWsslw/XVDejmGnnb/VH6ZPKGJsVDIX80UStaahc
CcntSOqjp1O4rWn1JBdPmZknTD37/Vp4I5McXZv6V41ig3by5zfaE4=
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=fC1J4385zkpoVCrKu7A3DH5gdC8=; b=NmQ5BigDdPcCeiDY6ghfwUc4o8jQ
eatA4Olf8++DEl6Dh+D3T6gKv9f4DOXr9FuVE1Dhl8faBCMlJMCvw6ddO8mYTRNb
wBgt+x+9Y6GUL7c0trdCoMklZMTF08zHjRy+x2cAEKVvxmtUWSj9pl/0vHmcKSJ1
0bUtoNd/OWToa98=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT cygwin DOT com
From: Andrew Schulman <schulman DOT andrew AT epa DOT gov>
Subject: Re: cygcheck and literal plus sign
Date: Wed, 22 Jan 2014 06:34:49 -0500
Lines: 10
Message-ID: <g4bvd9549dive5dnnh81c5frnqdlbtkku2@4ax.com>
References: <CAAXzdLUjc=cYva6EfZQjRArt5NQbPG3VTTGEch=kN1GEx2-fjA AT mail DOT gmail DOT com> <20140122055830 DOT GB4286 AT ednor DOT casa DOT cgf DOT cx>
Mime-Version: 1.0
X-Archive: encrypt
X-IsSubscribed: yes

> >    $ 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019