Skip to content

Commit

Permalink
Fix one inference issue in cmd_gen (#37133)
Browse files Browse the repository at this point in the history
  • Loading branch information
timholy committed Aug 24, 2020
1 parent dafde76 commit 194308e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/cmd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ end
function cmd_gen(parsed)
args = String[]
if length(parsed) >= 1 && isa(parsed[1], Tuple{Cmd})
cmd = parsed[1][1]
cmd = (parsed[1]::Tuple{Cmd})[1]
(ignorestatus, flags, env, dir) = (cmd.ignorestatus, cmd.flags, cmd.env, cmd.dir)
append!(args, cmd.exec)
for arg in tail(parsed)
Expand Down

0 comments on commit 194308e

Please sign in to comment.