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.
Showing posts with label case statement. Show all posts
Showing posts with label case statement. Show all posts
2010-04-15
Syntax error near unexpected token `)'
Posted by
bombcar
at
08:47
0
comments
Labels: bash, case statement, error, linux
Subscribe to:
Posts (Atom)