On 16-Nov-1999, Antti-Juhani Kaijanaho <[EMAIL PROTECTED]> wrote:
> On Tue, Nov 16, 1999 at 11:31:07AM +0000, Malcolm Wallace wrote:
> > which is what you get if you try the same test in C
> [then you get "exit 0" -> 0, "exit 1" -> 256, etc]
>
> Only in Unix, not everywhere. The C standard, IIRC, does not assign
> any semantics for the return value except that system(0) returns nonzero
> iff there is a command interpreter available
Correct.
> and that zero means success for system(s), where s != 0.
No, it doesn't even say that, it just says that the
return value is implementation-defined.
--
Fergus Henderson <[EMAIL PROTECTED]> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger [EMAIL PROTECTED] | -- the last words of T. S. Garp.