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 |
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 AT netsage DOT com> |
To: | <cygwin AT sourceware DOT cygnus DOT 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 |
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 AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |