exit(-1)或者return(-1)shell得到的退出码为什么是255

2019-09-23 09:23:36丽君
“command not found” illegal_command Possible problem with $PATH or a typo 128 Invalid argument to exit exit 3.14159 exit takes only integer args in the range 0 – 255 (see first footnote) 128+n Fatal error signal ”n” kill -9 $PPID of script $? returns 137 (128 + 9) 130