Re: [Module::Build] ./Build on Win98
Status: Beta
Brought to you by:
kwilliams
|
From: Ken W. <ke...@ma...> - 2006-03-01 04:49:47
|
On Feb 28, 2006, at 8:33 PM, Randy W. Sims wrote: > Ken Williams wrote: >> On Feb 25, 2006, at 1:32 PM, Randy W. Sims wrote: >>> Ok, here's the problem. The quoting is wrong in the invokation of >>> pl2bat. Both arguments to pl2bat got bungled into one misformed >>> arg. I need to figure out how to invoke pl2bat from the command >>> line with corrected quoting. The command we're using now, that >>> produces the bungled last line above is: >>> >>> pl2bat -n "-x -S """%0""" --build_bat %*" -o "-x -S """%0""" -- >>> build_bat %1 %2 %3 %4 %5 %6 %7 %8 %9" < Build > Build.bat >>> >>> It looks like it is trying to expand %*" -o "-x -S """% as an >>> evironment var. Maybe an extra space after %*: >>> >>> pl2bat -n "-x -S """%0""" --build_bat %* " -o "-x -S """%0""" -- >>> build_bat %1 %2 %3 %4 %5 %6 %7 %8 %9 " < Build > Build.bat >>> >>> Otherwise, I'm not sure how to quote the percent symbol (%%* >>> doesn't work). I've posted a message over on alt.msdos.batch >>> about this. >> Won't the multi-argument form of system() be helpful here? It's >> generally much easier to get that to work out than trying to get >> quoting right. > > It doesn't seem so... In order to use redirection in the command > that's executed, the shell must be invoked. Yuck. Short of converting pl2bat into module form, is there some other sneaky solution? Maybe set @ARGV and then do($pl2bat), with STDOUT tied? If there's one thing I hate, it's shell quoting just to call another set of perl code. -Ken |