2010-04-15

Syntax error near unexpected token `)'

I was trying to make a case statement in bash, and was getting this error:

./check: line 8: syntax error near unexpected token `)'
./check: line 8: `      1)'

Turns out this is the error you get if you forget the ;; at the end of each code block.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.