[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:
Kaushal Modi
2019-06-15 05:32:26 -04:00
committed by Andreas Rumpf
parent eadea343ef
commit 7182922622
6 changed files with 59 additions and 4 deletions

View File

@@ -96,6 +96,8 @@ proc setupVM*(module: PSym; cache: IdentCache; scriptName: string;
setResult(a, os.existsEnv(a.getString 0))
cbconf putEnv:
os.putEnv(a.getString 0, a.getString 1)
cbconf delEnv:
os.delEnv(a.getString 0)
cbconf dirExists:
setResult(a, os.dirExists(a.getString 0))
cbconf fileExists: