-
-
Save elvuel/978116 to your computer and use it in GitHub Desktop.
Ruby exit codes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ruby -e 'exit' | |
$ echo $? | |
0 | |
$ ruby -e 'exit 1' | |
$ echo $? | |
1 | |
$ ruby -e 'abort "oh no"' | |
oh no | |
$ echo $? | |
1 | |
$ ruby -e 'fail "oh no"' | |
-e:1: oh no (RuntimeError) | |
$ echo $? | |
1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment