Expect test of exit code in exit trap to be non-zero if exit due to variable check

前端 未结 0 448
情深已故
情深已故 2021-01-06 00:35

I expect the following script to exit by writing a non-zero integer to the screen, but it actually writes 0. If I comment out trap exiting EXIT, ru

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