🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #5501

Re: Perl apology -- and enhancement

#5501
From: Larry Wall
Date: Sat, 30 Apr 1988 02:20
17 lines
1253 bytes
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
Technical Details
Message-ID: <1930@devvax.JPL.NASA.GOV>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!lll-winken!lll-tis!ames!elroy!devvax!lwall
References: <1231@zen.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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