This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: CASE error in script file


Doug wrote:

I did put the "$1" in and it still gives me the same error
case "$1" in

'/test.sh: line 1: syntax error near unexpected token `in
'/test.sh: line 1: `case "$1" in

Do you have a DOS <CR> in there? (shows up as ^M in vim?) See the many, many threads in here about bash handling of <CR>s.



-- 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/


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