Running
zsh
on macOS Ventura
→ With
sudo --preserve-env -s
the environment variable ZDOTDIR
is not preserved but all the others are.
→ With sudo --preserve-env=ZDOTDIR -s
the variable ZDOTDIR
is preserved but not the other variables.
Why is ZDOTDIR
not preserved in the first case ?
Asked by Damien L
(259 rep)
Nov 15, 2022, 08:37 PM
Last activity: Jul 16, 2024, 08:59 AM
Last activity: Jul 16, 2024, 08:59 AM