From: ara.t.howard@... Date: 2007-02-06T05:50:24+09:00 Subject: Re: 'ruby' exit code 32512 On Tue, 6 Feb 2007 jacob@asperasoft.com wrote: > Hi, I was having trouble with what seems to be an inconsistency in > ruby exit codes. I can explain this best with examples: nothing to do with ruby man 2 wait ... WEXITSTATUS(status) evaluates to the least significant eight bits of the return code of the child which terminated, which may have been set as the argument to a call to exit() or _exit() or as the argument for a return statement in the main program. This macro can only be evaluated if WIFEXITED returned true. ... the exit staus in unix is stored in only the first byte of the exit status word. and 32512 => 11111110 0000000 ^ ^ ^ exit status this is one of the beautiful things about windows being non-posix. ;-) -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. - the dalai lama