<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title></title><meta http-equiv="Content-Type" content="text/html;"></head>
<body>
Why does the following complain with<br>
./switchtest: line 5: syntax error near unexpected token `$colour'<br>
./switchtest: line 5: `switch ($colour)'<br>
<br>
-------------------------<br>
#!/bin/bash<br>
<br>
colour=2<br>
<br>
switch ($colour)<br>
    case "red":<br>
        echo "ruddy";<br>
        breaksw<br>
        <br>
    case "green":<br>
        echo "ecological";<br>
        breaksw<br>
    <br>
    default:<br>
        echo "odd";<br>
        <br>
endsw
</body>
</html>