📜  bash && vs 分号 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:55.283000             🧑  作者: Mango

代码示例1
$ cmd1 && cmd2 
will evaluate cmd 2 if cmd1 has a positive error status (0)

$ cmd1; cmd2
will evaluate cmd2 regardless of exist status of cmd1