What is the use case of noop [:] in bash?

后端 未结 12 927
滥情空心
滥情空心 2020-12-12 13:07

I searched for noop in bash (:), but was not able to find any good information. What is the exact purpose or use case of this operator?

I tried following and it\'s w

12条回答
  •  萌比男神i
    2020-12-12 13:28

    If you use set- e then || : is a great way to not exit the script if a failure happens (it explicitly makes it pass).

提交回复
热议问题