
Debugging
Debugging Segfaults and Exit Codes 126 127 130 and 137
Decode shell exit codes 126, 127, 130 and 137, plus segfault status 139: what each means, how to confirm the cause and what to do about it.
6 min read
Tag
2 posts

Decode shell exit codes 126, 127, 130 and 137, plus segfault status 139: what each means, how to confirm the cause and what to do about it.

Fix ShellCheck SC2181: test a command's exit status directly with if cmd or if ! cmd instead of checking $? afterwards, and when $? is still right.