[feature] Added os.delEnv; add delEnv support to nimscript too (#11466)
[feature] Fixes https://github.com/nim-lang/Nim/issues/11452.
This commit is contained in:
parent
eadea343ef
commit
7182922622
6 changed files with 59 additions and 4 deletions
|
|
@ -81,3 +81,8 @@ when false:
|
|||
|
||||
rmDir("tempXYZ")
|
||||
assert dirExists("tempXYZ") == false
|
||||
|
||||
putEnv("dummy", "myval")
|
||||
doAssert(existsEnv("dummy") == true)
|
||||
delEnv("dummy")
|
||||
doAssert(existsEnv("dummy") == false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue