Xref: utzoo comp.lang.misc:1516 comp.misc:2313 comp.sources.bugs:931 Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!elroy!devvax!lwall From: lwall@devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.misc,comp.misc,comp.sources.bugs Subject: Re: Perl apology -- and enhancement Message-ID: <1930@devvax.JPL.NASA.GOV> Date: 30 Apr 88 02:20:28 GMT References: <1231@zen.UUCP> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA. Lines: 16 Keywords: HPUX In article <1231@zen.UUCP> vic@zen.UUCP (Victor Gavin) writes: : Whilst I'm here, for anyone that's interested, here's some code that will fix : (system "/bin/sh -c 'exit 1'") so that it returns 1 and not 256: PLEASE DO NOT APPLY THIS PATCH! The return value of 1 should indicate that the shell died of being sent a HUP signal. To get the status value as returned by the program, do a >>8. I do believe this is documented. Even if you think this behavior is wrong, please don't make your perl incompatible with everyone else's. Some poor critter on your machine is going to write a script that depends on it and then post it to the world. Critter will then get fried in a semi-unjustified manner. Your's for a less desperate world, Larry Wall lwall@jpl-devvax.jpl.nasa.gov