RE: Packed executable exit code 1 issue

2023-07-17 Thread Deepak Khosla via par
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

Re: Packed executable exit code 1 issue

2023-07-17 Thread Roderich Schupp
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

Packed executable exit code 1 issue

2023-07-16 Thread Deepak Khosla via par
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