Semicolons superfluous at the end of a line in shell scripts?

后端 未结 5 951
鱼传尺愫
鱼传尺愫 2020-12-12 20:07

I have a shell script which contains the following:

case $1 in
    0 )
    echo $1 = 0;
    OUTPUT=3;;
    1 )
    echo $1 = 1;
    OUTPUT=4;;
    2 )
    ec         


        
5条回答
  •  悲&欢浪女
    2020-12-12 20:40

    In the special case of find, ; is used to terminate commands invoked by -exec. See the answer of @kenorb to this question.

提交回复
热议问题