I have a shell script which contains the following:
case $1 in
echo $1 = 0;
echo $1 = 1;
echo $1 = 2;
Single semicolons at the end of a line are superfluous, since the newline is also a command separator.
case specifically needs double semicolons at the end of the last command in each pattern block; see
help case for details.