From: Roderich Schupp
Sent: Monday, July 17, 2023 5:30 AM
To: Deepak Khosla
Cc: par@perl.org
Subject: Re: Packed executable exit code 1 issue
On Mon, Jul 17, 2023 at 7:56 AM Deepak Khosla via par
mailto:par@perl.org>> wrote:
> ==
> use strict;
> use
On Mon, Jul 17, 2023 at 7:56 AM Deepak Khosla via par wrote:
> ==
> use strict;
> use warnings;
> my $exit_code = $ARGV[0];
> print "called with $0 $exit_code\n";
>
> END {
> $? = $exit_code; # Setting this in case exit is ignoring our
exit_code
> print STDERR
Hi,
I am using perl v5.36 and PAR:Packer 1.057 and would appreciate some insight
into the exit code behavior as seen by the OS. Question at the end:
Code:
==
use strict;
use warnings;
my $exit_code = $ARGV[0];
print "called with $0 $exit_code\n";
END {
$? = $exit_code