我有两个进程foo和bar,用管道连接:
foo
bar
$ foo | bar
bar总是退出 0;我对foo. 有什么办法可以得到吗?
shell pipe exit
exit ×1
pipe ×1
shell ×1