You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes you need to delete an environment variable completely (just setting it to the empty string isn't enough). It'd be great if one could do something like:
$config->unset( 'FOO' );
which would translate into unset FOO, ( or unsetenv FOO for csh/tcsh).
Agree, with the caveat that we need to support as well as possible all supported shells. I believe cmd.exe and command.com actually do unset with SET FOO=, (but that is a limitation of those shells) and I am not sure about PowerShell.
Activity
plicease commentedon Jul 2, 2022
Agree, with the caveat that we need to support as well as possible all supported shells. I believe
cmd.exeandcommand.comactually do unset withSET FOO=, (but that is a limitation of those shells) and I am not sure about PowerShell.plicease commentedon Jul 2, 2022
https://www.itprotoday.com/powershell/powershell-one-liner-deleting-environment-variables
plicease commentedon Sep 4, 2026
Implemented in #30
djerius commentedon Sep 4, 2026
Thanks!
plicease commentedon Sep 4, 2026
sure. sorry it took so long :)