This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bash shell expansion question



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]