Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <39A6A65A.41FFD40C@veritas.com> Date: Fri, 25 Aug 2000 10:01:14 -0700 From: Bob McGowan Organization: VERITAS Software X-Mailer: Mozilla 4.73 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: Cygwin Subject: Re: issue with grep [^] References: <20000825141913 DOT 3745 DOT qmail AT web123 DOT yahoomail DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit This works correctly in ver. 1.1.4: $ cat tstfile -1) -2) -x) -C) $ grep \\-[0-9]\) tstfile -1) -2) $ grep \\-[^0-9]\) tstfile -x) -C $ Earnie Boyd wrote: > > --- Robert Praetorius wrote: > > > If I type: > > > cat x.txt | grep \\-[0-9]\) > > > it works great - the lines containing it are correctly returned. > > > > > > But typing: > > > cat x.txt | grep \\-[^0-9]\) > > > doesn't work - the same result occurs as the first case above, like the ^ > > is > > > ignored. > > > > ^ is the quoting character for NT's CMD.EXE (bash doesn't exhibit > > this problem). Also note that CMD.EXE requires | must be double > > quoted if you're passing it through a pipe (again bash doesn't need > > this): > > > > F:\temp>echo ^| | cat > > The syntax of the command is incorrect. > > > > F:\temp>echo ^^^| | cat > > | > > > > F:\temp>bash > > $ echo \| | cat > > | > > $ echo \\\| | cat > > \| > > > > Hi Robert and Jeff, > > Robert, did you try this in bash? > > It doesn't work. It *is* broken. I've found no work around. I doubt that > this would be a Cygwin bug but maybe 1.1.4 has it fixed. I'm running currently > a 1.1.3 build from 6/20/2000. > > Cheers, > > ===== > --- > Earnie Boyd: > __Cygwin: POSIX on Windows__ > Cygwin Newbies: > __Minimalist GNU for Windows__ > Mingw32 List: > Mingw Home: > > __________________________________________________ > Do You Yahoo!? > Yahoo! Mail - Free email you can access from anywhere! > http://mail.yahoo.com/ > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com -- Bob McGowan Staff Software Quality Engineer VERITAS Software rmcgowan AT veritas DOT com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com