Re: Running perl from a test on Windows

Buddy Burden <[email protected]>
Newsgroups gmane.comp.lang.perl.quality-assurance
Message-ID <CAL0mxoT6q3eVUdSz+nBn-XLvZF1q3g54Z0Fxg9UWUk=qO46JvQ@mail.gmail.com>
Eirik,

>   On Windows, that still leaves a quoting problem, I believe.
> IPC::System::Simple certainly does not seem to handle it: Unless I misread
> it entirely, it ends up sending "$^C -e $cmd" as the command line to
> Win32::Process::Create.
>
>   Let's see ...
>
> C:\Windows\system32>perl -MIPC::System::Simple=capturex -e "print
> capturex($^X, '-le', qq{print(qq(--ARG\@{[++\$i]}-->\$_))for\@ARGV;
> die(q/Oops - that was odd/)})"
> --ARG1-->die(q/Oops
> --ARG2-->-
> --ARG3-->that
> --ARG4-->was
> --ARG5-->odd/)
>
> C:\Windows\system32>
>
>   Oh yes.  It's not doing any quoting.

Well, that's ... disappointing. :-/


            -- Buddy
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.