在diff手册页上我找到了这些退出值:
diff
0 No differences were found. 1 Differences were found. >1 An error occurred.
对于不同的错误,是否有不同的退出值高于1?
bash shell diff exit-code
bash ×1
diff ×1
exit-code ×1
shell ×1