mirror of
git://git.sv.gnu.org/autoconf
synced 2025-03-19 14:40:24 +08:00
Don't use error count as exit status.
This commit is contained in:
parent
6c162f80c0
commit
3766de757b
@ -1059,6 +1059,11 @@ comments in the source. The relevant data will be in variables, which
|
||||
are easy to examine with the debugger, so there is no point moving them
|
||||
elsewhere.
|
||||
|
||||
Do not use a count of errors as the exit status for a program.
|
||||
@emph{That does not work}, because exit status values are limited to 8
|
||||
bits (0 through 255). A single run of the program might have 256
|
||||
errors; if you try to return 256 as the exit status, the parent process
|
||||
will see 0 as the status, and it will appear that the program succeeded.
|
||||
|
||||
@node Errors
|
||||
@chapter Formatting Error Messages
|
||||
|
@ -1059,6 +1059,11 @@ comments in the source. The relevant data will be in variables, which
|
||||
are easy to examine with the debugger, so there is no point moving them
|
||||
elsewhere.
|
||||
|
||||
Do not use a count of errors as the exit status for a program.
|
||||
@emph{That does not work}, because exit status values are limited to 8
|
||||
bits (0 through 255). A single run of the program might have 256
|
||||
errors; if you try to return 256 as the exit status, the parent process
|
||||
will see 0 as the status, and it will appear that the program succeeded.
|
||||
|
||||
@node Errors
|
||||
@chapter Formatting Error Messages
|
||||
|
Loading…
x
Reference in New Issue
Block a user