Q. なんでUNIXコマンドのステータスは成功がノンゼロじゃなくてゼロなんですか?

A. 成功した実行結果はどれも似通っているが失敗した実行結果はそれぞれの失敗があるので別々のノンゼロ値を返したいからです
2

If you have a fediverse account, you can quote this note from your own instance. Search https://reax.work/notes/ajgdxrurj8 on your instance and quote it. (Note that quoting is not supported in Mastodon.)