{"provider_name":"Hatena Blog","type":"rich","author_url":"https://blog.hatena.ne.jp/gunshot/","description":"$ cat exitcodetest.c int main() { return -1; } $ gcc exitcodetest.c $ ./a.out $ echo $? 255https://unix.stackexchange.com/questions/37915/why-do-i-get-error-255-when-returning-1 UNIX/POSIX, the exit code of a program is defined to be an unsigned 8-bit value. Converting -1 to unsigned 8-bit gives 255\u2026","blog_url":"https://gunshot.hatenablog.com/","version":"1.0","width":"100%","categories":["bash","Linux"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgunshot.hatenablog.com%2Fentry%2F20171203%2Fp1\" title=\"\u30ea\u30bf\u30fc\u30f3\u30b3\u30fc\u30c9-1\u304c255\u306b\u306a\u308b - \u9593\u9055\u3044\u3060\u3089\u3051\u306e\u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","provider_url":"https://hatena.blog","published":"2017-12-03 00:00:00","author_name":"gunshot","blog_title":"\u9593\u9055\u3044\u3060\u3089\u3051\u306e\u5099\u5fd8\u9332","image_url":null,"title":"\u30ea\u30bf\u30fc\u30f3\u30b3\u30fc\u30c9-1\u304c255\u306b\u306a\u308b","url":"https://gunshot.hatenablog.com/entry/20171203/p1"}