delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/30/02:13:48

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=AMpnZouyc4dhZFHG
L0IiLLK6Fs2v82kLW6X2CiYuLtug49NNGUvI4/RjStvUoC9MRSYn/BEenAMxhIcN
fZ5M/uHlQY0JGKef8Z0XQh0nQyn9gDfmLYOtU8MiJITQQPyVc4W1LguQZADp2tW1
jwoTcqpvZhDmD8+eUSFQ/gFIgl8=
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=UOFKyjGOXyKZutSc6RAT6v
3WbvM=; b=lfAZrhqmGmF0x6WSe0arIR5Qqk+Z61rpbMVvRU4NU1bryuw8Nst+RM
pH0X2/ZQZImnTz6A/7hmY79NHQLt2N2q6vV+yfu5mzTI7C8yRHR3JRrsGKBWwmhT
O8Dge0BlF6zeuqWz1EAHMg39khuBFUDXCKP/oZVYwRdLPzVGRYTh0=
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=-2.2 required=5.0 tests=AWL,BAYES_00,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.1 spammy=rude, media, manufacturing, industry
X-HELO: smtp-out-no.shaw.ca
Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca
Subject: Re: bug with grep 3.0.2 in cygwin 3.0.7
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>
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca>
Openpgp: preference=signencrypt
Message-ID: <0ca60f0b-4765-b870-7eef-85d9944e0406@SystematicSw.ab.ca>
Date: Fri, 30 Aug 2019 00:12:50 -0600
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: <806ab587-a07c-1616-1486-ebb258ace1d9@cs.umass.edu>
X-IsSubscribed: yes

On 2019-08-29 19:42, Eliot Moss wrote:
> On 8/29/2019 3:08 PM, Andrey Repin wrote:
>>> 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.

https://cygwin.com/acronyms/#RTFM exists and has been amusing rather than rude
in our industry for decades, especially in non-native English locales e.g. here
in this list: "Read The Fine Manual"; but RTM for software products is usually
"Release To Manufacturing", from the days when media was produced!

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019