Skip to content

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Oct 2, 2025

Fix the unbounded possible corruption of the user input by reverting to a non-scoped begin instead of let.

julia> ex = Base.remove_linenums!(:(using A; using B; using C)); REPL.Numbered.get_usings!([], ex)
2-element Vector{Any}:
 :(using A)
 :(using C)

julia> ex
quote
    using B
end

Fix the unbounded possible corruption of the user input by reverting to
a non-scoped begin instead of let.

```julia
julia> ex = Base.remove_linenums!(:(using A; using B; using C)); REPL.Numbered.get_usings!([], ex)
2-element Vector{Any}:
 :(using A)
 :(using C)

julia> ex
quote
    using B
end
```
@vtjnash vtjnash requested a review from KristofferC October 2, 2025 19:51
@vtjnash vtjnash added REPL Julia's REPL (Read Eval Print Loop) backport 1.11 Change should be backported to release-1.11 backport 1.12 Change should be backported to release-1.12 labels Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.11 Change should be backported to release-1.11 backport 1.12 Change should be backported to release-1.12 REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant