Re: grep does not work with [^...]

2018-05-04 Thread Brian Inglis
On 2018-05-04 16:20, Dmitry Lanin wrote: > Friday, May 4, 2018, 5:03:32 PM, Michel LaBarre wrote: >>> On May 4, 2018 4:32 PM Dmitry Lanin wrote: >>> Bug: grep does not work with [^...] >>> Run the following command: >>> echo qwe | grep -E '[^r]' >>> Expected result: >>> qwe >>> Actual result: >>> -

Re: grep does not work with [^...]

2018-05-04 Thread Dmitry Lanin
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.

RE: grep does not work with [^...]

2018-05-04 Thread Michel LaBarre
Run it in bash instead. ^ is a quote character in CMD. > -Original Message- > From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@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 no