![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Re^5: Problem with 'system' function in Windows Vista (escape quote)by tye (Sage) |
on Mar 20, 2007 at 23:49 UTC ( #605769=note: print w/replies, xml ) | Need Help?? |
The documented MS C RTL quoting rules (that not all Win32 programs follow, unfortunately) say that to get <bar " baz> you should write <"bar \" baz">. The implementation is a bit weird, especially if you don't follow those rules. But your case doesn't work for me:
Note that \ only "escapes" when in a construct matching /\\+"/ (an even number of backslases results in $n-1 backslashes, an odd number in $n-1 backslashes followed by a quote). This pointed out a subtle bug in the "current" Perl quoting that is done:
The fact that I had to quote and be careful with that second argument is the not-subtle short-coming. But the fix for it also fixes the final \ turning into a ". - tye
In Section
Seekers of Perl Wisdom
|
|