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

RE: [RELEASE] Parrot 007: glitch on Windows

Thread Previous | Thread Next
Andy Dougherty
July 19, 2002 07:52
RE: [RELEASE] Parrot 007: glitch on Windows
Message ID:
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
    Dept. of Physics
    Lafayette College, Easton PA 18042

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