Skip to content

Commit aa8ff5d

Browse files
nsajkoKristofferC
authored andcommitted
Base: shell escaping: inference improvement to prevent invalidation (#57915)
(cherry picked from commit 4d2a350)
1 parent eb3a411 commit aa8ff5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/shell.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ function shell_escape_csh(io::IO, args::AbstractString...)
342342
end
343343
shell_escape_csh(args::AbstractString...) =
344344
sprint(shell_escape_csh, args...;
345-
sizehint = sum(sizeof.(args)) + length(args) * 3)
345+
sizehint = sum(sizeof, args) + length(args) * 3)
346346

347347
"""
348348
shell_escape_wincmd(s::AbstractString)
@@ -492,4 +492,4 @@ function escape_microsoft_c_args(io::IO, args::AbstractString...)
492492
end
493493
escape_microsoft_c_args(args::AbstractString...) =
494494
sprint(escape_microsoft_c_args, args...;
495-
sizehint = (sum(sizeof.(args)) + 3*length(args)))
495+
sizehint = (sum(sizeof, args) + 3*length(args)))

0 commit comments

Comments
 (0)