Michael G Schwern <[EMAIL PROTECTED]> wrote on 09/19/2005 08:15:51 PM:

> On Sun, Sep 18, 2005 at 11:52:20PM -0400, John E. Malmberg wrote:
> > As there is no "false" command on VMS, this is causing rerunning a make

> > to fail.
> >
> > Would adding the following line before the return $m be the fix for
> > this?  Or is something else needed to make sure only the last line is
> > removed?
> >
> > $m =~ s/false\n// if $IsVMS;
>
> I see a number of uses of "false" in MM_Unix.  Rather than throw in more
> VMS exceptions (blech) I'll make a $(FALSE) which can be something safe
like
> perl -e 'exit 1'

On VMS the construct shown is true since exit 1 is the way to say exit 0.
I note the following behavior from the shell on Solaris 10:

/home/user/pprymmer> false
/home/user/pprymmer> echo $?
255

Hence you may want to use something like 44 on VMS (noting that a message
will
be generated):

$ perl -e "exit 44"
%SYSTEM-F-ABORT, abort

the non portability of exit values is discussed in perlport.pod.

Peter Prymmer

Reply via email to