Browse Source

Merge pull request #3602 from HaxeFoundation/sys_command_escape

close #3511
Nicolas Cannasse 10 years ago
parent
commit
a4df4f8654
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/neko/_std/Sys.hx

+ 1 - 1
std/neko/_std/Sys.hx

@@ -103,7 +103,7 @@
 			}
 		if( ok )
 			return arg;
-		return windows ? '"'+arg.split('"').join('"""').split("%").join('"%"')+'"' : "'"+arg.split("'").join("'\\''")+"'";
+		return windows ? '"'+arg.split('"').join('""').split("%").join('"%"')+'"' : "'"+arg.split("'").join("'\\''")+"'";
 	}
 
 	public static function command( cmd : String, ?args : Array<String> ) : Int {