Can exit code negative?

Can exit code negative?
Answer
If the exit code is a negative number, the resulting exit status is that
number subtracted from 256. … The solution, to me, is to avoid using exit codes that are reserved and out-of-range. The proper range is 0-255.
 

Tìm kiếm

Back
Top