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

Re: new exit tests on VMS

Thread Previous | Thread Next
Michael G Schwern
July 30, 2001 21:17
Re: new exit tests on VMS
Message ID:
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


Michael G. Schwern   <>
Perl6 Quality Assurance     <>	     Kwalitee Is Job One
Tasty, yet morally ambiguous.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About