$ ps ax | grep 6557 #=> 6582 s003 S+ 0:00.01 grep 6557
但是用活动监视器快速检查,没有进程的 pid 为 6557。而且网上的一切都说 grep 在没有匹配时应该返回 0。
bash grep
bash ×1
grep ×1