skip to main | skip to sidebar

Bombcar Heavy Blog

Stuff

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.

Posted by bombcar at 08:47  

Labels: bash, case statement, error, linux

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2010 (12)
    • ►  November (1)
    • ►  October (2)
    • ▼  April (2)
      • Syntax error near unexpected token `)'
      • Ubuntu 10.04 Boot Issues
    • ►  March (1)
    • ►  February (5)
    • ►  January (1)
  • ►  2009 (10)
    • ►  December (1)
    • ►  October (1)
    • ►  September (1)
    • ►  August (3)
    • ►  July (1)
    • ►  May (1)
    • ►  March (1)
    • ►  February (1)
  • ►  2008 (13)
    • ►  December (1)
    • ►  November (2)
    • ►  October (2)
    • ►  September (2)
    • ►  June (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (3)
  • ►  2007 (16)
    • ►  December (4)
    • ►  November (10)
    • ►  August (2)
  • ►  2004 (3)
    • ►  June (1)
    • ►  May (2)

About Me

bombcar
View my complete profile