| delorie.com/archives/browse.cgi | search |
| 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:reply-to:subject:to:references:from:message-id | |
| :date:mime-version:in-reply-to:content-type | |
| :content-transfer-encoding; q=dns; s=default; b=KxJ6eoMfMN3eC32u | |
| j1wAoGZKWH7oCOvdirsOk2XEgogn5A/YifiWFLIz4zxiqCumWoEWiwb3TiVBcewl | |
| cc9RLi7bUvzlyMf4jyfhVeF1z/m1ipfkD5SBeh6y864T1pul+aAc7YWWajiTaon0 | |
| kNPYYpLg3Uqr/H/7TyN59Trwx8I= | |
| 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:reply-to:subject:to:references:from:message-id | |
| :date:mime-version:in-reply-to:content-type | |
| :content-transfer-encoding; s=default; bh=ZCf5dqqrkEQr3EynoiukmZ | |
| 89AIA=; b=XdVqhedMJlqt9bYMnwiVRw1GQAaFoj4KhXqGhGggT2Gw+qAUJvDmre | |
| nkCtKv8l+MDv/PXE/IZo0327c2Zcskodwpm0kHiDhDv9Ng/PQcP6wpu20eUbP004 | |
| a/EY6xDwwYlFWGgJbtU88/kRQg/2cMGZwd2K4r6MxBnfHeGQh4aQQ= | |
| 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-Spam-SWARE-Status: | No, score=-0.5 required=5.0 tests=AWL,BAYES_00,KAM_NUMSUBJECT,SPF_PASS autolearn=no version=3.3.1 spammy= |
| X-HELO: | mailsrv.cs.umass.edu |
| Reply-To: | moss AT cs DOT umass DOT edu |
| Subject: | Re: bug with grep 3.0.2 in cygwin 3.0.7 |
| To: | cygwin AT cygwin DOT com |
| References: | <1207614124 DOT 1217647925 DOT 1566976580120 DOT JavaMail DOT root AT zimbra76-e14 DOT priv DOT proxad DOT net> |
| From: | Eliot Moss <moss AT cs DOT umass DOT edu> |
| Message-ID: | <ce0890bd-f1b1-5a77-4999-9793d9a0df25@cs.umass.edu> |
| Date: | Wed, 28 Aug 2019 08:44:23 -0400 |
| User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
| MIME-Version: | 1.0 |
| In-Reply-To: | <1207614124.1217647925.1566976580120.JavaMail.root@zimbra76-e14.priv.proxad.net> |
| X-IsSubscribed: | yes |
On 8/28/2019 3:16 AM, akiki AT free DOT fr wrote: > Hi, > I encounter some problem with grep option -E on cygwin 3.0.7 > > > echo "a^b" | grep "a^b" #answer a^b ie it's OK > but > echo "a^b" | grep -E "a^b" #answer nothing " for me it's KO > > > I have to backslash ^ to be OK like : grep -E 'a\^b' > > > Is-it a bug ? > I don't know if all versions of cygwin and grep are concerned. From my reading of the man page, it's either a program bug or a documentation bug. It could well be the latter since -E extended regular expressions require a number of other metacharacters to be backslash quoted. However, the documentation does not mention the ^ metacharacter. Regards - EM -- 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |