return if first command in pipe failed

后端 未结 0 1337
感动是毒
感动是毒 2021-01-22 09:52

Is it somehow possible to return if the first command in a pipeline failed? With the pipefail option the return value is carried over but the pipeline still runs till the last c

相关标签:
回答
  • 消灭零回复
提交回复
热议问题