2017-12-03から1日間の記事一覧
$ 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 un…