develooper Front page | perl.perl5.porters | Postings from July 2001

Re: new exit tests on VMS

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
July 30, 2001 21:17
Subject:
Re: new exit tests on VMS
Message ID:
20010731001659.H3208@blackrider
On Mon, Jul 30, 2001 at 04:47:36PM -0500, Craig A. Berry wrote:
> Essentially it looks like the only thing that's portable is that 0 means 
> success and anything non-zero means an error.

That's the big issue here.  Should exit codes on vmsperl be the same
as in Unix, or does it make more sense for VMS to do its own thing?

What should this print?

    system(q{perl -e "exit 42"});
    print $? >> 8;

42 on Unix, what on VMS?

Let me know which one you pick and I'll adjust the exit tests
accordingly.


-- 

Michael G. Schwern   <schwern@pobox.com>    http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <perl-qa@perl.org>	     Kwalitee Is Job One
Tasty, yet morally ambiguous.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About