Skip to content

Commit 27c6d97

Browse files
timholyKristofferC
authored andcommitted
Protect cmd_gen against invalidation (#48557)
This gets used by `Base.require`, arguably the most painful of all invalidations. CSV is one package that invalidates it. (cherry picked from commit 5721ae7)
1 parent d4e0f36 commit 27c6d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/cmd.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ function cmd_gen(parsed)
462462
(ignorestatus, flags, env, dir) = (cmd.ignorestatus, cmd.flags, cmd.env, cmd.dir)
463463
append!(args, cmd.exec)
464464
for arg in tail(parsed)
465-
append!(args, arg_gen(arg...)::Vector{String})
465+
append!(args, Base.invokelatest(arg_gen, arg...)::Vector{String})
466466
end
467467
return Cmd(Cmd(args), ignorestatus, flags, env, dir)
468468
else

0 commit comments

Comments
 (0)