| 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:date:from:to:subject:message-id:references | |
| :mime-version:content-type:in-reply-to; q=dns; s=default; b=CDRn | |
| LgaSakRB/6ZyFxGPOfDwROfAmmE8FSw56L1EObgUHBFDI8LJjmDwkv3ckyp4Jawr | |
| NZYi3Y+9paALXMleq1+NsezUhSipahls8A9oTwvMvnmNuz1953d4GVMpRz80BjsQ | |
| TPvGPOuhJDie19vOj2c3omcH2FYrMgZmII9sGG4= | |
| 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:references | |
| :mime-version:content-type:in-reply-to; s=default; bh=xJRUZGWs8o | |
| BC0PV40Sf8HAfOZ10=; b=hU3KHY1/tUjB8ED9XZFC6Zz3IXNqJx99lX7utt3xtC | |
| wfthjAcooT+TBznOLvqdelaS/V17FaeQ4Lm17zxbXkBQTkHT85GfoRVkZUfpPOPv | |
| KkRx/8zC4vyLeF+Wa3eGOq42uNvzGjfemYyNrQewJVSyvoLg9kn/dR7sQIzSUaqZ | |
| 8= | |
| 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.6 required=5.0 tests=BAYES_50,KAM_NUMSUBJECT,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=H*F:D*com.au, D*free.fr!, D*free.fr, 3.0.2 |
| X-HELO: | mail104.syd.optusnet.com.au |
| Date: | Fri, 30 Aug 2019 17:47:56 +1000 |
| From: | Duncan Roe <duncan_roe AT optusnet DOT com DOT au> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: bug with grep 3.0.2 in cygwin 3.0.7 |
| Message-ID: | <20190830074756.GB25467@dimstar.local.net> |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <1910922536 DOT 1217465852 DOT 1566975322390 DOT JavaMail DOT root AT zimbra76-e14 DOT priv DOT proxad DOT net> <1207614124 DOT 1217647925 DOT 1566976580120 DOT JavaMail DOT root AT zimbra76-e14 DOT priv DOT proxad DOT net> <8910174142 DOT 20190829220811 AT yandex DOT ru> <806ab587-a07c-1616-1486-ebb258ace1d9 AT cs DOT umass DOT edu> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <806ab587-a07c-1616-1486-ebb258ace1d9@cs.umass.edu> |
| User-Agent: | Mutt/1.10.1 (2018-07-13) |
| X-IsSubscribed: | yes |
On Thu, Aug 29, 2019 at 09:42:46PM -0400, Eliot Moss wrote: > On 8/29/2019 3:08 PM, Andrey Repin wrote: > > Greetings, akiki AT free DOT fr! > > > > > 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 > > > > That's an expected result of an impossible constraint. > > > > > I have to backslash ^ to be OK like : grep -E 'a\^b' > > > > Yes. > > > > > Is-it a bug ? > > > > No. > > > > > I don't know if all versions of cygwin and grep are concerned. > > > > RTFM, this is regexp basics. > > There was a really great answer to this earlier. I tried an > answer, but was wrong. One has to read the "fine print" really > carefully. At first I thought it was a bug, at least in the > documentation, but the meaning of a^b, when ^ is the metacharacter, > is kind of subtle (IMO at least). It's easy to miss that > subtlety and think that if ^ is not at the beginning of an > expression it will be treated as an ordinary character ... > > But my main point is that RTM would be enough; RTFM seemed > to me perhaps a little more rude than necessary. > > Regards - EM > I don't see anything to object to in "Read The Fine Manual" ;) Cheers ... Duncan. -- 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 |