bash shell expansion question

DJ Delorie dj@delorie.com
Thu Aug 10 10:36:00 GMT 2000


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@sourceware.cygnus.com



More information about the Cygwin mailing list