MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/itsaunixsystem/comments/arosw2/ralph_breaks_the_internet_python_code/egrw6fh/?context=3
r/itsaunixsystem • u/frogtux • Feb 17 '19
71 comments sorted by
View all comments
Show parent comment
3
I thought 0 was good and > 0 was bad. I honestly didn’t even know exit codes could be negative.
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.
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.
4
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.
View all comments
Show parent comment
3
u/[deleted] Feb 19 '19
I thought 0 was good and > 0 was bad. I honestly didn’t even know exit codes could be negative.