This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: grep does not work with [^...]
- From: "Michel LaBarre" <michel dot labarre at rogers dot com>
- To: "'Dmitry Lanin'" <jjj17 at yandex dot ru>, <cygwin at cygwin dot com>
- Date: Fri, 4 May 2018 17:03:32 -0400
- Subject: RE: grep does not work with [^...]
- References: <1594742711.20180504163154@yandex.ru>
Run it in bash instead.
^ 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
--
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