delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/12/12:46:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <013001c4b07a$9a10afa0$0401a8c0@dan>
From: "Daniel Miller \(IMI\)" <dan AT imi-test DOT com>
To: <cygwin AT cygwin DOT com>
Cc: <cygwin AT cygwin DOT com>
References: <Xns95805F03FD0C4dancarddupercom AT 80 DOT 91 DOT 229 DOT 5> <Pine DOT GSO DOT 4 DOT 61 DOT 0410121222100 DOT 24643 AT slinky DOT cs DOT nyu DOT edu>
Subject: Re: problem with find/grep
Date: Tue, 12 Oct 2004 09:43:28 -0700
MIME-Version: 1.0

> On Tue, 12 Oct 2004, Daniel Miller wrote:
>
> > On linux systems, I typically to global searches with a command such as:
> >
> >     find . -name "*.[ch]*" -exec grep -H -n stuff {} \;
> >
> > and this works nicely.  However, when I try the same command under
Cygwin
> > (from a 4NT prompt, not Bash), I get "find: missing argument to '-exec'
".
> > I tried a variety of modifications to the command but nothing makes this
> > work.  What am I missing??
>
> I'd bet it's the fact that 4NT uses different quoting mechanisms than
> bash.  Try quoting the semicolon as ";" instead of \;.

Oh, my!!  That indeed worked!!  Thanks!!

> I won't ask the implied "Why not use bash?" question...

Hokay, then I won't answer!!  I suspect this subject has been discussed
several times in the past here, if I recall past perusal of the list... but
there really *are* a few things that 4NT does better (or does at all) as
opposed to Bash.

I'll admit, tho, that if I hadn't already paid for 4DOS/4NT (over a decade
ago, actually), I wouldn't buy it now, with Bash available for free...

    Dan



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019