title: Unix case statement in OSX
body: <p>I am trying to port some Windows bat files to Mac shell scripts</p>
  
  <p>I get a syntax error when executing a file containing the following case statement:</p>
  
  <pre><code>  case ${1} in 
      ( C  | c   ) echo "hoera";; 
  </code></pre>
  
  <p>where argument ${1} is given as 'C'</p>
  
  <p>The message is:</p>
  
  <pre><code>-bash: even: line 6: syntax error near unexpected token `newline'
  'bash: even: line 6: `        ( C  | c   ) echo "hoera";; 
  </code></pre>
  
  <p>I think the syntax is correct according to the documentation. Where am I going wrong?</p>