在diff手册页上,我找到了以下退出值: 0 No differences were found. 1 Differences were found. >1 An error occurred. 对于不同的错误,是否存在大于1的退出值? 最佳答案 这取决于您的diff命令。我的(GNU diffutils 3.0)说: