|
@@ -118,7 +118,7 @@
|
|
|
/**
|
|
|
Character codes of the characters that will be escaped by `quoteWinArg(_, true)`.
|
|
|
*/
|
|
|
- public static var winMetaCharacters = [" ".code, "(".code, ")".code, "%".code, "!".code, "^".code, "\"".code, "<".code, ">".code, "&".code, "|".code, "\n".code, "\r".code];
|
|
|
+ public static var winMetaCharacters = [";".code, ",".code, " ".code, "(".code, ")".code, "%".code, "!".code, "^".code, "\"".code, "<".code, ">".code, "&".code, "|".code, "\n".code, "\r".code];
|
|
|
|
|
|
/**
|
|
|
Returns a String that can be used as a single command line argument
|
|
@@ -136,7 +136,7 @@
|
|
|
public static function quoteWinArg(argument:String, escapeMetaCharacters:Bool):String {
|
|
|
// If there is no space, tab, back-slash, or double-quotes, and it is not an empty string.
|
|
|
if (!~/^[^ \t\\"]+$/.match(argument)) {
|
|
|
-
|
|
|
+
|
|
|
// Based on cpython's subprocess.list2cmdline().
|
|
|
// https://hg.python.org/cpython/file/50741316dd3a/Lib/subprocess.py#l620
|
|
|
|