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
After temporary assignment to an environment variable, that variable should be unset after the function exit, provided it was unset before. Consider this (using the new tmp syntax):
⬥ date; has-env TZ; { tmp E:TZ = UTC; date }; date; has-env TZ; put $E:TZ
Sat Dec 11 10:07:40 CET 2021
⮕ $false
Sat Dec 11 09:07:40 UTC 2021
Sat Dec 11 09:07:40 UTC 2021
⮕ $true
⮕ ''
As can be seen from the various date outputs, it does make a difference whether an environment variable is unset or merely empty.
The text was updated successfully, but these errors were encountered:
After temporary assignment to an environment variable, that variable should be unset after the function exit, provided it was unset before. Consider this (using the new
tmp
syntax):As can be seen from the various
date
outputs, it does make a difference whether an environment variable is unset or merely empty.The text was updated successfully, but these errors were encountered: