Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^4: Having to manually escape quote character in args to "system"?by vr (Curate) |
on Sep 20, 2017 at 11:53 UTC ( [id://1199727]=note: print w/replies, xml ) | Need Help?? |
Thank you for reporting a bug for me, in the first place. No, fix is not good (I notified the author). Similar test fails:
According to comment in source, [we now] "escape backslash that is followed by a backslash, or the last backslash". That's not what rules 4-7 in MS guidelines say, if we 'reverse' them. 'Reverse', because they say how to parse a command line, and, of course, Perl does it OK for all test cases provided on that page:
While we need the opposite: to escape arguments, so that when Perl #1 simply glues them together, another program (e.g. Perl #2) breaks the CL to the same arguments. Line 24
could be replaced with
Then round-trip tests pass OK (though they are trivial, of course):
Edit. P.S. Issue fixed (on the same day) in 0.007 version. I'm out of issues. :-)
In Section
Seekers of Perl Wisdom
|
|