mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 04:39:39 +08:00

The C++ version of this code simply copied the entire uvar table. Today we take a reference. It's not clear which one is better. Removal of locale variables like LC_ALL triggers variable change handlers which call EnvStackImpl::get. This deadlocks because we still hold the lock to protect the reference to all uvars. Work around this. Closes #10513