[Solved] Why `101` exit code when use panic

When use panic the program will exit with code 101.

My questions

  • Why?
  • What did 101 mean (btw i google it but i did not find the answer)

Exit status codes generally don't have meaning. Each program could specify (in its man page, or documentation) what each of its possible exit codes will mean.

If you use linux, you can search for the sysexit.h file somewhere on your system to see some conventional codes.

PS: this bash guide attributes some meanings to some codes, but this won't hold for all the other shells out there.

Exit code 1 is supposed to be used which is a generic error, so I wanted to know why 101 was used (I don't think it was used for no reason)

I found this commit after some digging.


This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.