Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
X-Authentication-Warning: netsage.com: Host 106.denver-13-14rs.co.dial-access.att.net [12.74.77.106] claimed to be amazon
From: "Tom Dorgan" <tdorgan@netsage.com>
To: <cygwin@sourceware.cygnus.com>
Subject: bash shell expansion question
Date: Thu, 10 Aug 2000 10:41:31 -0600
Message-ID: <7118142B92ABD311AD0C00500484F3D21870A5@netsage60.netsage.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Importance: Normal

First of all, cygwin rocks! I use the package every day and the latest
release is very smooth! Im telling my friends and family  ;-)

(This must be a configuration/environment issue.)

on linux bash or solaris ksh I have a (lazy man's) script called f which
looks like:
find . -name $1 -print
works fine lasts a long time when I type
f "*.java"

on cygwin I have an f.sh file
#!/bin/bash
echo f.sh:searching for $1
/usr/bin/find.exe . -name $1 -depth -print
which doesnt work the same:
$ f.sh "*.class"
f.sh:searching for ICockpitServices.class IDistributedSageServices.class
Machine
.class RMIServiceNamer.class
/usr/bin/find.exe: paths must precede expression
Usage: /usr/bin/find.exe [path...] [expression]
in other words, the shell expands the wildcard before passing it to find.
stranger:
$ f.sh '*.Class'	# NOTE:no .Class files exist at top level or below
f.sh:searching for *.Class
$ f.sh *.class
f.sh:searching for ICockpitServices.class
./ICockpitServices.class
$

any suggestions appreciated and TIA,
tom dorgan.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

