We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 453d883 commit e7a872cCopy full SHA for e7a872c
lib/mix/lib/mix/shell.ex
@@ -62,10 +62,10 @@ defmodule Mix.Shell do
62
{ :unix, _ } ->
63
%c(sh -c '#{command}')
64
{ :win32, osname } ->
65
- case { System.getenv("COMSPEC"), osname } do
66
- { false, :windows } -> 'command.com /c #{command}'
67
- { false, _ } -> 'cmd /c #{command}'
68
- { false, cmd } -> '#{cmd} /c #{command}'
+ case { System.get_env("COMSPEC"), osname } do
+ { nil, :windows } -> 'command.com /c #{command}'
+ { nil, _ } -> 'cmd /c #{command}'
+ { cmd, _ } -> '#{cmd} /c #{command}'
69
end
70
71
0 commit comments