Skip to content

Commit

Permalink
versioninfo: make sure not to print the same environment variable t…
Browse files Browse the repository at this point in the history
…wice (JuliaLang#43753)
  • Loading branch information
DilumAluthge committed Jan 12, 2022
1 parent 98e2321 commit f0d46ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/InteractiveUtils/src/InteractiveUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function versioninfo(io::IO=stdout; verbose::Bool=false)
return occursin(r"^JULIA_|^DYLD_|^LD_", k)
end
function is_verbose_env(k::String)
return occursin(r"PATH|FLAG|^TERM$|HOME", k)
return occursin(r"PATH|FLAG|^TERM$|HOME", k) && !is_nonverbose_env(k)
end
env_strs = String[
String[" $(k) = $(v)" for (k,v) in ENV if is_nonverbose_env(uppercase(k))];
Expand Down

0 comments on commit f0d46ae

Please sign in to comment.