On 09/12/2007, Micah Cowan <[EMAIL PROTECTED]> wrote: > Non-zero exit statuses indicate failure, partial or complete. I am not > going to try to use them to mean something else. Exit codes are, plain > and simple, the wrong way to communicate these differences. Perhaps if, > in the early days, the designers of Unix had had the foresight to > partition exit codes a bit more equally between success and failure > conditions, it would be different. As it is, such is not the case, and I > am _not_ going to fudge things so that a few special cases are simpler, > while complicating the more general cases. > > Now that we've established, rather clearly at this point, I think, what > is _not_ going to be done, can we please leave this topic and continue > onto the topic of what we _will_ do? >
Could the exit code used be determined by a flag? E.g. by default it uses unix convention, 0 for any success; with an --extended_error_codes flag or similar then it uses extra error codes depending on the type of success (but for sanity uses the same codes for failure with or without the flag) That should allow both of you to use it for scripting. Stuart
