This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: CASE error in script file
- From: Shankar Unni <shankarunni at netscape dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 08 Nov 2006 14:11:32 -0800
- Subject: Re: CASE error in script file
- References: <loom.20061108T225533-24@post.gmane.org>
Doug wrote:
case $1 in
If $1 is undefined (i.e. you pass in no arguments), this line becomes
case in
which is incorrect syntax, of course. Answer: quote the "$1".
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/