| 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 |
| From: | "Jeff Jensen" <jeffjensen AT nospam DOT visi DOT com> |
| To: | <RPraetorius AT AspenRes DOT Com> |
| Cc: | <cygwin AT sources DOT redhat DOT com> |
| Subject: | RE: issue with grep [^] |
| Date: | Fri, 25 Aug 2000 21:59:29 -0500 |
| Message-ID: | <000001c00f09$e1439980$1d0ea8c0@visi.com> |
| MIME-Version: | 1.0 |
| X-Priority: | 3 (Normal) |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) |
| Importance: | Normal |
| In-Reply-To: | <39A6F5FA.12572.5BD475E4@localhost> |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
That was it - the NT issue. (Silly I didn't think of trying in bash...I've
avoided it for the simple/smaller things because it is slower than the DOG
prompt.)
Earnie - it works for me in bash.
Thanks for the responses!
-----Original Message-----
From: Robert Praetorius [mailto:RPraetorius AT AspenRes DOT Com]
Sent: Friday, August 25, 2000 7:41 AM
To: Jeff Jensen
Cc: cygwin AT sources DOT redhat DOT com
Subject: Re: issue with grep [^]
> 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
\|
Follow start menu => help => Windows NT commands => command symbols
for docs on CMD.EXE's special characters. Or just spend you time in
bash, which is friendlier and more featureful:-)
--
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 |