in reply to Re: Calling Windows Batch from Perl, double-quote appearing out of nowhere (insanity)
in thread Calling Windows Batch from Perl, double-quote appearing out of nowhere
It used to be that Perl's system() on Windows would trying running the command you gave directly first and would only resort to wrapping it in qq(cmd /c "...") if that failed. I think that, over the years, enough edge cases showed up that the details of this technique were changed in order to try to get more "expected behavior" in more cases.Would this mean that in newer versions of Perl, the "foregroun" system() would show the same problem? I thought of using system() instead of system(1,...) and doing an explicit fork and exect, to avoid the quoting bug, but if newer Perl versions will consistently wrap the argument inside an extra invocation of cmd /c, the problem would reappear if I upgrade to a newer Perl :-(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Calling Windows Batch from Perl, double-quote appearing out of nowhere (insanity)
by tye (Sage) on Nov 09, 2012 at 15:36 UTC | |
by rovf (Priest) on Nov 09, 2012 at 15:45 UTC | |
by Anonymous Monk on Nov 09, 2012 at 15:52 UTC |