[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MHonArc v2.5.0b Is Available



On September 4, 2001 at 10:10, John Poltorak wrote:

> >     o	The default value of DEFRCNAME is now ".mhonarc.mrc"
> > 	("mhonarc.mrc" for Win/DOS).
> 
> The default value is also "mhonarc.mrc" on OS/2. 
> 
> Just wondered how the default name for a particular system is determined...

"mhonarc.mrc" is used if $MSDOS or $VMS is true.  Look at the
file osinit.pl on how these variables get set.  Here is the snippet
that causes $MSDOS to be set to 1:

    } elsif (($^O !~ /cygwin/i) &&
             (($^O =~ /mswin/i) ||
              ($^O =~ /\bdos\b/i) ||
              (($tmp = $ENV{'COMSPEC'}) &&
               ($tmp =~ /^[a-zA-Z]:\\/) &&
               (-e $tmp))) ) {
        $MSDOS = 1;  $MACOS = 0;  $UNIX = 0;  $VMS = 0;
        $DIRSEP = '\\';  $CURDIR = '.';
        $PATHSEP = ';';

I betting that $ENV{'COMSPEC'} is set under OS/2.

I am under the impression that OS/2 should be treated as "msdos" for
the purposes of MHonArc usage.  If you believe this to be incorrect,
please follow-up on how OS/2 should be handled so I can make the
corrections in osinit.pl.

One thing I would like is to explicitly check for OS/2.  Can you
provide what the value of $^O is in Perl under OS/2?

Thanks,

--ewh


[Index of Archives]     [Bugtraq]     [Yosemite News]     [Mhonarc Home]