delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <20000825141913.3745.qmail@web123.yahoomail.com> |
Date: | Fri, 25 Aug 2000 07:19:13 -0700 (PDT) |
From: | Earnie Boyd <earnie_boyd AT yahoo DOT com> |
Subject: | Re: issue with grep [^] |
To: | RPraetorius AT AspenRes DOT Com, Jeff Jensen <jeffjensen AT visi DOT com> |
Cc: | cygwin AT sources DOT redhat DOT com |
MIME-Version: | 1.0 |
--- Robert Praetorius <RPraetorius AT AspenRes DOT Com> 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: <mailto:earnie_boyd AT yahoo DOT com> __Cygwin: POSIX on Windows__ Cygwin Newbies: <http://gw32.freeyellow.com/> __Minimalist GNU for Windows__ Mingw32 List: <http://www.egroups.com/group/mingw32/> Mingw Home: <http://www.mingw.org/> __________________________________________________ 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |