public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Dmitry Lanin <jjj17@yandex.ru>
To: "Michel LaBarre" <michel.labarre@rogers.com>
Cc: cygwin@cygwin.com
Subject: Re: grep does not work with [^...]
Date: Fri, 04 May 2018 22:21:00 -0000	[thread overview]
Message-ID: <5610703131.20180504182039@yandex.ru> (raw)
In-Reply-To: <000901d3e3eb$5d56ddb0$18049910$@rogers.com>

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

  reply	other threads:[~2018-05-04 22:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-04 20:32 Bug: " Dmitry Lanin
2018-05-04 21:03 ` Michel LaBarre
2018-05-04 22:21   ` Dmitry Lanin [this message]
2018-05-05  3:52     ` Brian Inglis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5610703131.20180504182039@yandex.ru \
    --to=jjj17@yandex.ru \
    --cc=cygwin@cygwin.com \
    --cc=michel.labarre@rogers.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).