I guess the question for me as to which is 'authentic' would be answered by whoever defined $? first.

I dont know the history well enough to sort that one out though. So I'll just say that *someone* is harshing my mellow...

;)

Greg

-----Original message-----
From: [email protected] (Randal L. Schwartz)
To: Greg London <[email protected]>
Cc: Bob Rogers <[email protected]>,   [email protected]
Sent: Tue, Jul 12, 2011 15:12:07 GMT+00:00
Subject: Re: [Boston.pm] exit codes and $ ?

"Greg" == Greg London <Greg> writes:

Greg> ah man, so perl decided to fiddle with the definition but keep the same Greg> name? that is so messing with my feng shui.

Actually, the value returned by Perl is the more authentic value that
returns from wait(2), and also tells you whether core was dumped, and
the signal that killed it (if any).  The shell sweeps all that away, and
loses information.

If anything, yell at your shell for lying to you. :)

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion


_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to