On Tue, Jan 15, 2013 at 11:50:17AM -0800, Buddy Burden wrote:
> Yeah, but then I have to do as Gabor suggests and deal with $^O, and
> is it different on Win32 vs Cygwin, and are there any other OSes I
> need to be worried about, and I'm getting mildly nauseous just
> thinking about it. :-/
Devel
First, let me say:
Thanx everyone for all your suggestions!
Eirik,
> That problem is not shell nastiness. It is quoting. Observe:
> :
> :
> If I recall correctly, the thing is that on Windows, a brand new process
> does not get an argument array.
>
> On Windows, it gets a command line.
On Tue, Jan 15, 2013 at 3:53 PM, David Cantrell wrote:
> On Tue, Jan 15, 2013 at 01:32:09AM -0800, Buddy Burden wrote:
> > Gabor,
> > > I am not sure if this helps but in Windows you need to put the
> > > double-quotes around $cmd
> > >
> > > my $output = qx{$^X -e "$cmd"};
> > Yes, that woul
On Tue, Jan 15, 2013 at 01:32:09AM -0800, Buddy Burden wrote:
> Gabor,
> > I am not sure if this helps but in Windows you need to put the
> > double-quotes around $cmd
> >
> > my $output = qx{$^X -e "$cmd"};
> Yes, that would work if I were running _only_ on Windows. But I need
> it work for
Karen,
> Test::Without::Module should be able to take care of this for you.
H ... interesting. That _might_ work ... I'd have to try it out.
I'm not sure just pretending it isn't loaded is sufficient. But I'll
look into it.
-- Buddy
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 -MIP
On Tue, Jan 15, 2013 at 11:32 AM, Buddy Burden wrote:
> Gabor,
>
>> I am not sure if this helps but in Windows you need to put the
>> double-quotes around $cmd
>>
>> my $output = qx{$^X -e "$cmd"};
>
> Yes, that would work if I were running _only_ on Windows. But I need
> it work for everyth
Gabor,
> I am not sure if this helps but in Windows you need to put the
> double-quotes around $cmd
>
> my $output = qx{$^X -e "$cmd"};
Yes, that would work if I were running _only_ on Windows. But I need
it work for everything (and the double quotes on Linux will cause any
variables in my