错误1是语法错误,但是当结果为空时也会报错误1 例如: [ ~]$ make test cat /etc/passwd | grep administrator make: *** [test] 错误 1 这时需要在后面加入判断就可以解决问题了: [ ~]$ make test cat /etc/passwd | grep administrator || echo null null