Re:C stdlib isn't threadsafe and even safe Rust didn't save us
by GoblinSlayer on Thursday January 23, 2025 @04:19AM
(#42802258)
It doesn't look like there's any incentive to change it, e.g. getenv_r is an unpopular function.
Of course, this means you won't see any changes to env vars from libraries you may use that call setenv(), but you also shouldn't need, or want, that in a shell.
I still think having a proper synchronous thread safe setenv()/getenv() in libc is the better choice.