From: Gennady Date: 2003-06-13T08:12:19+09:00 Subject: Re: [Q] How to get an exit code from SystemExit exception This is a multi-part message in MIME format. ------=_NextPart_000_001A_01C330FD.6FDF7340 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: [Q] How to get an exit code from SystemExit exceptionUnfortunatelly, = not. $? is "The exit status of the last child process to terminate". = However I tried it anyway, just in desperate hope ;-). Thank you,=20 Gennady. ----- Original Message -----=20 From: John Johnson=20 To: ruby-talk ML=20 Sent: Thursday, June 12, 2003 3:57 PM Subject: Re: [Q] How to get an exit code from SystemExit exception on 6/12/03 6:46 PM, Gennady at gfb@tonesoft.com wrote: I catch SystemExit exception raised as a result of "exit " = somewhere in the code. How do I get the in my rescue? Gennady. Would that be $? --=20 Regards, JJ Be Kind, Be Careful, Be Yourself ------=_NextPart_000_001A_01C330FD.6FDF7340 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Re: [Q] How to get an exit code from SystemExit = exception
Unfortunatelly, not. $? is "The exit = status of the=20 last child process to terminate". However I tried it anyway, just in = desperate=20 hope ;-).
 
Thank you, 
Gennady.
----- Original Message -----
From:=20 John=20 Johnson
Sent: Thursday, June 12, 2003 = 3:57=20 PM
Subject: Re: [Q] How to get an = exit code=20 from SystemExit exception

on 6/12/03 6:46 PM, Gennady at gfb@tonesoft.com wrote:

I catch SystemExit = exception=20 raised as a result of "exit <status>" somewhere in the code. = How do I=20 get the <status> in my rescue?

Gennady.


Would = that be=20 $?

--
Regards,
 JJ

Be Kind, Be Careful, Be=20 Yourself


------=_NextPart_000_001A_01C330FD.6FDF7340--