Sample Header Ad - 728x90

sudo -E -s does not preserve ZDOTDIR

2 votes
1 answer
71 views
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