On Wed, Aug 19, 2009 at 01:41:11PM -0500, Nicolas Williams wrote: > So how come I got exit status 0? I'm all confused, and off to lunch.
Not yet out to lunch and no longer confused: the 0 exit status in ksh93 vs. 141 in /usr/has/bi/sh is (should have been) blindingly obvious: ksh93 must be reporting the high order 8 bits of if the status reported by wait(3C) (or one of its friends), which in the case of death by signal is... zero. Whereas Bourne shell must be reporting the high order 8 bits of if the status only when the child didn't die by signal, else the low order 8 bits. Have I looked at ksh93 and Bourne shell source? No; the above is conjecture. Now I'm off to get lunch. Nico --
