develooper Front page | perl.perl6.internals | Postings from July 2002

RE: [RELEASE] Parrot 007: Configure.pl glitch on Windows

Thread Previous | Thread Next
From:
Andy Dougherty
Date:
July 19, 2002 07:52
Subject:
RE: [RELEASE] Parrot 007: Configure.pl glitch on Windows
Message ID:
Pine.SOL.4.10.10207191050380.19224-100000@maxwell.phys.lafayette.edu
On Fri, 19 Jul 2002, Marc M. Adkins wrote:

>   ./test.exe <parm> 2>&1
> which doesn't work under Windows (those durn backwards path separators).
> 
> Either:
>   .\test.exe <parm> 2>&1
> or
>   test.exe <parm> 2>&1
> will work.

Alas none of those are portable.  The first won't work on Unix.  The
second incorrectly assumes that the current directory is in the user's
$PATH.  (The situation's even worse, of course, if the test program is
truly named 'test' since that's also a built-in on many shells.)

> I suppose that there is a flag indicating that the platform is Windows that
> could be used as a conditional in these two functions.

Yup, I think that's what you have to do.

-- 
    Andy Dougherty		doughera@lafayette.edu
    Dept. of Physics
    Lafayette College, Easton PA 18042


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