code review feedback

This commit is contained in:
Andrew Stanton-Nurse 2015-10-15 12:56:07 -07:00
parent 40eba07f28
commit 6d3f07234a
17 changed files with 62 additions and 195 deletions

View file

@ -63,11 +63,9 @@ namespace Microsoft.DotNet.Cli.Utils
// args is empty, we just run "foo.exe"
if (!string.IsNullOrEmpty(args))
{
args = " " + args;
executable = (executable + " " + args).Replace("\"", "\\\"");
}
var cmd = executable + args;
cmd = cmd.Replace("\"", "\\\"");
args = $"/C \"{executable}{args}\"";
args = $"/C \"{executable}\"";
executable = comSpec;
}