SC1074
haruna edited this page May 20, 2021
·
4 revisions
Did you forget the ;; after the previous case item?
Problematic code:
while getoptions f option
do
case "${options}"
in
f) FTR="${ARG}"
\?) exit
esac
doneCorrect code:
while getoptions f option
do
case "${options}"
in
f) FTR="${ARG}"
\?) exit;;
esac
doneRationale:
Syntax case needs ;; after the previous case item. If not, syntax error will cause.