From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25097 invoked by alias); 4 May 2018 22:21:05 -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 25084 invoked by uid 89); 4 May 2018 22:21:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=BAYES_00,CYGWIN_OWNER_BODY,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,GIT_PATCH_2,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Michel, michel, guessed, D*ru X-HELO: forward100p.mail.yandex.net Received: from forward100p.mail.yandex.net (HELO forward100p.mail.yandex.net) (77.88.28.100) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 04 May 2018 22:21:01 +0000 Received: from mxback6o.mail.yandex.net (mxback6o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::20]) by forward100p.mail.yandex.net (Yandex) with ESMTP id D32895104944; Sat, 5 May 2018 01:20:58 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback6o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id cBcHkD6Ldv-Kwqm9Vht; Sat, 05 May 2018 01:20:58 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 9oD5aGFvSy-KtaCYchE; Sat, 05 May 2018 01:20:56 +0300 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp4o.mail.yandex.net; dkim=pass header.i=@yandex.ru Date: Fri, 04 May 2018 22:21:00 -0000 From: Dmitry Lanin Reply-To: Dmitry Lanin Message-ID: <5610703131.20180504182039@yandex.ru> To: "Michel LaBarre" CC: cygwin@cygwin.com Subject: Re: grep does not work with [^...] In-Reply-To: <000901d3e3eb$5d56ddb0$18049910$@rogers.com> References: <1594742711.20180504163154@yandex.ru> <000901d3e3eb$5d56ddb0$18049910$@rogers.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-SW-Source: 2018-05/txt/msg00081.txt.bz2 Hello Michel, Thank you. Yes, I guessed it is a special character, so I tried (did not work): echo qwe | grep -E '[\^r]' I have finally figured out. Using double-quotes work: echo qwe | grep -E "[^r]" Kind regards, Dmitry Friday, May 4, 2018, 5:03:32 PM, you wrote: ML> Run it in bash instead. ML> ^ is a quote character in CMD. >> -----Original Message----- >> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On >> Behalf Of Dmitry Lanin >> Sent: May 4, 2018 4:32 PM >> To: cygwin@cygwin.com >> Subject: Bug: grep does not work with [^...] >> >> Bug: grep does not work with [^...] >> >> Run the following command: >> echo qwe | grep -E '[^r]' >> >> Expected result: >> qwe >> >> Actual result: >> -nothing- >> >> ----------------------------------- >> cygwin DLL version: 2.10.0 >> base-cygwin 3.8-1 >> bash 4.4.12-3 >> coreutils 8.26-2 >> cygutils 1.4.16-2 >> cygwin 2.10.0-1 >> grep 3.0-2 >> ----------------------------------- >> >> Kind regards, >> Dmitry >> >> >> -- >> 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 -- Best regards, Dmitry mailto:jjj17@yandex.ru -- 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