There was an error while loading. Please reload this page.
1 parent aba0d5b commit a75e70bCopy full SHA for a75e70b
lib/mix/lib/mix/shell.ex
@@ -60,15 +60,15 @@ defmodule Mix.Shell do
60
{ :unix, _ } ->
61
command = command
62
|> String.replace("\"", "\\\"")
63
- |> :binary.bin_to_list # We need to send bytes, not chars
64
- %c(sh -c "#{command}")
+ |> :binary.bin_to_list
+ 'sh -c ' ++ command
65
66
{ :win32, osname } ->
67
- command = to_char_list(command)
+ command = :binary.bin_to_list(command)
68
case { System.get_env("COMSPEC"), osname } do
69
- { nil, :windows } -> 'command.com /c #{command}'
70
- { nil, _ } -> 'cmd /c #{command}'
71
- { cmd, _ } -> '#{cmd} /c #{command}'
+ { nil, :windows } -> 'command.com /c ' ++ command
+ { nil, _ } -> 'cmd /c ' ++ command
+ { cmd, _ } -> '#{cmd} /c ' ++ command
72
end
73
74
0 commit comments