Please support `--preserve-env` as an alias for `-E`
joshtriplett opened this issue · 5 comments
In sudo for Linux, the long option name for -E is --preserve-env; please support that as the long version of -E.
--preserve-env additionally accepts an optional list of environment variables, to only preserve those variables rather than the entire environment.
@gerardog That wasn't mentioned in the documentation at https://learn.microsoft.com/en-us/windows/sudo/ , so I didn't know it was supported. I've corrected this issue to just request --preserve-env and the optional list of environment variables. Thank you!
Yep it was a total brainfart to not name it the same thing. Fortunately, this is super easy for us to fix, thanks!
MSFT:48926819 internally
Merged to OS in !10282477, which was OS.2020 commit 91ba4484. Thanks!
@zadjii-msft Thank you! Does that include --preserve-env=VAR1,VAR2, in addition to renaming the long option?
