Skip to content

Commit

Permalink
Protect cmd_gen against invalidation (#48557)
Browse files Browse the repository at this point in the history
This gets used by `Base.require`, arguably the most painful of
all invalidations. CSV is one package that invalidates it.
  • Loading branch information
timholy authored Feb 6, 2023
1 parent d0d8ebf commit 5721ae7
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 @@ -462,7 +462,7 @@ function cmd_gen(parsed)
(ignorestatus, flags, env, dir) = (cmd.ignorestatus, cmd.flags, cmd.env, cmd.dir)
append!(args, cmd.exec)
for arg in tail(parsed)
append!(args, arg_gen(arg...)::Vector{String})
append!(args, Base.invokelatest(arg_gen, arg...)::Vector{String})
end
return Cmd(Cmd(args), ignorestatus, flags, env, dir)
else
Expand Down

0 comments on commit 5721ae7

Please sign in to comment.