How to use Ctrl+C to stop whole script not just current command

后端 未结 2 539
悲哀的现实
悲哀的现实 2021-02-18 14:43

I have a script such as follows:

for ((i=0; i < $srccount; i++)); do
    echo -e \"\\\"${src[$i]}\\\" will be synchronized to \\\"${dest[$i]}\\\"\"
    echo -         


        
2条回答
提交回复
热议问题