From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10214 invoked by alias); 22 Jan 2014 11:35:07 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 10195 invoked by uid 89); 22 Jan 2014 11:35:06 -0000 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 Received: from plane.gmane.org (HELO plane.gmane.org) (80.91.229.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Wed, 22 Jan 2014 11:35:06 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W5w5G-0007BV-G4 for cygwin@cygwin.com; Wed, 22 Jan 2014 12:35:02 +0100 Received: from c-69-140-37-22.hsd1.md.comcast.net ([69.140.37.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jan 2014 12:35:02 +0100 Received: from schulman.andrew by c-69-140-37-22.hsd1.md.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Jan 2014 12:35:02 +0100 To: cygwin@cygwin.com From: Andrew Schulman Subject: Re: cygcheck and literal plus sign Date: Wed, 22 Jan 2014 11:35:00 -0000 Message-ID: References: <20140122055830.GB4286@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 X-SW-Source: 2014-01/txt/msg00298.txt.bz2 > > $ 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