CASE error in script file

Shankar Unni shankarunni@netscape.net
Wed Nov 8 22:12:00 GMT 2006


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/



More information about the Cygwin mailing list