r/itsaunixsystem • • Feb 17 '19

[Ralph Breaks the Internet] python code

Post image
1.8k Upvotes

71 comments sorted by

View all comments

Show parent comment

3

u/[deleted] Feb 19 '19

In the end, exit codes are unsigned, so -1 becomes 255 on my machine

4

u/[deleted] Feb 20 '19

Good to know, that makes sense. I always use exit code 0 for good and exit code 1, 2, 3, etc for increasing failure conditions.