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
@KristofferC KristofferC mentioned this pull request Oct 6, 2025
47 tasks
@vtjnash vtjnash merged commit 05c07e1 into master Oct 6, 2025
9 of 11 checks passed
@vtjnash vtjnash deleted the jn/revert-49098 branch October 6, 2025 21:08
KristofferC pushed a commit that referenced this pull request Oct 10, 2025
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
```

(cherry picked from commit 05c07e1)
KristofferC pushed a commit that referenced this pull request Oct 12, 2025
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
```

(cherry picked from commit 05c07e1)
KristofferC pushed a commit that referenced this pull request Oct 14, 2025
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
```

(cherry picked from commit 05c07e1)
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Oct 21, 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 REPL Julia's REPL (Read Eval Print Loop)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants