Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!hsdndev!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.lang.perl Subject: Re: die() exit status and printing $1,$2... in the debugger Message-ID: <20541:Jan1017:37:5091@kramden.acf.nyu.edu> Date: 10 Jan 91 17:37:50 GMT References: <3000@yarra-glen.aaii.oz.au> <10980@jpl-devvax.JPL.NASA.GOV> Organization: IR Lines: 12 In article <10980@jpl-devvax.JPL.NASA.GOV> lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes: > It would seem that your compiler or run-time system is hosed. The > statement in fatal() in util.c is > statusvalue >>= 8; /* is an unsigned short */ > exit((int)(errno?errno:(statusvalue?statusvalue:255))); > How can that return a 0, I ask you? Well, since you ask, it can return 0 on most machines if errno is a nonzero multiple of 256, or if errno is 0 and statusvalue is a nonzero multiple of 256. ---Dan