On Tue, Jul 23, 2002 at 02:03:44PM -0600, Brad Nicholes wrote: > [...]to be inconsistent. For example, if I start Apache2 with a -h option, > it displays the help screen and then calls destroy_and_exit_process() > with an exit code of 1. > [...] Is there any reason why we can't switch the -v, -V, > -l, -L options to exit with a 1 instead of a 0 like the -h option?
Yes. "The unix philosophy". You are absolutely right: it IS inconsistent, and should be fixed. But rather than changing all exit codes to 1, I would prefer to see all these exit codes being changed to EX_OK: #define EX_OK 0 /* successful termination */ because all of them indicate that the request for information has been processed successfully. In comparison, on unix, the return code of "ls -l" is always zero if all files could be listed successfully, "even if the command produced output via stdout". If Netware has a problem with anything being displayed, IMHO it is Netware's problem to fix it. Sorry, I don't want to sound harsh, but also I do not intend to pervert the Unix philosophy here. Martin -- <[EMAIL PROTECTED]> | Fujitsu Siemens Fon: +49-89-636-46021, FAX: +49-89-636-47655 | 81730 Munich, Germany
