Freeze when switching to pkg mode, when Pkg has not been loaded already. #56206
Description
This causes a freeze:
$ julia --startup=no -p 1 -t 1
(@v1.11) pkg> status
https://discourse.julialang.org/t/version-1-11-1-argument-issue/121408
Julia Version 1.11.1
Commit 8f5b7ca12ad (2024-10-16 10:53 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 16 × AMD Ryzen 7 2700X Eight-Core Processor
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, znver1)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)
Environment:
JULIA_NUM_THREADS = 16
JULIA_EDITOR = emacs -nw