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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=qdSxywGmz8zThz6HTXn3FDu3ZOODYhJio0PmQjYWNxv1tq8ge3uTZ cSKGbJuw5EB3dPFkXyKTDMIbp6YF+LH4juHKFrdmvEkzgFaxJItjDgbTQEPQ5kkk BkpmlT6yECRtbAQyX25N5tNGRiTZkVMXivJ1mozTeZDPcIyMaHuliU= 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:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=2C+wkimbtc5oCinzebBwmMsRrhQ=; b=pXoQy6mSdz3eB1uZ9dUAx0TY/Fbl w5poEx6REICqkgh1Obo+mSBkl25pP5G5pllLSYqJBQG5l2iRz0UZfZLaWnRldMBE qhVccCBld3zxmd618HhYPsBWF8KgoCgIIwQtNhJZW2vWCFI7Q9/cO1jBNQXaTgLW fRU+VyIKnjFxoN0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 autolearn=ham version=3.3.2 X-HELO: mho-02-ewr.mailhop.org X-Mail-Handler: Dyn Standard SMTP by Dyn X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19v3kQxxlqQWwjW8295V5hm Date: Wed, 22 Jan 2014 10:07:21 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: cygcheck and literal plus sign Message-ID: <20140122150721.GA6650@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20140122055830 DOT GB4286 AT ednor DOT casa DOT cgf DOT cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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 Sorry. I screwed up there by not reading carefully. So I'll change my answer to "I don't know". cgf -- 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