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 |
Date: | Thu, 10 Aug 2000 13:36:30 -0400 |
Message-Id: | <200008101736.NAA29779@envy.delorie.com> |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | tdorgan AT netsage DOT com |
CC: | cygwin AT sourceware DOT cygnus DOT com |
In-reply-to: | <7118142B92ABD311AD0C00500484F3D21870A5@netsage60.netsage.com> |
(tdorgan AT netsage DOT com) | |
Subject: | Re: bash shell expansion question |
References: | <7118142B92ABD311AD0C00500484F3D21870A5 AT netsage60 DOT netsage DOT com> |
You need to quote the usage of $1 in the find command: find . -name "$1" -depth -print Same for the echo command. You still need to quote wildcards on the command line when you invoke the script, too. Either quote ' or " should work on the command line. Only double quotes " will do the right thing inside the script. -- 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 |