Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Calling Windows Batch from Perl, double-quote appearing out of nowhere (insanity)

by tye (Cardinal)
on Nov 09, 2012 at 15:36 UTC ( #1003165=note: print w/ replies, xml ) Need Help??


in reply to Re^2: 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

Just for y'all's information, I don't know the answer to that. It would be interesting to look into why only system(1,...) wraps things in cmd /c "..." in a way that triggers this bug. To figure that out, I'd read the code that I linked to above. I did scan some parts of it earlier but not looking for that quirk (I initially missed your point that the "1," was required).

But why not just include a trailing space and then none of that will likely matter? (And include a comment noting that the trailing space is required to work around a bug in: cmd /c "cmd /c ...".)

- tye        


Comment on Re^3: Calling Windows Batch from Perl, double-quote appearing out of nowhere (insanity)
Download Code
Re^4: Calling Windows Batch from Perl, double-quote appearing out of nowhere (insanity)
by rovf (Priest) on Nov 09, 2012 at 15:45 UTC
    But why not just include a trailing space and then none of that will likely matter?

    Agreed! This indeed looks like the most sensible solution. (well, maybe the most sensible one would be to avoid Windows alltogether ;-)

    -- 
    Ronald Fischer <ynnor@mm.st>
      using one of the shellquoting modules I linked usually does the trick for me (keeps perl from fudging up the quoting)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003165]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (15)
As of 2014-10-20 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (89 votes), past polls