mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +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