getEnv now supports a 'default' parameter; refs #6019

This commit is contained in:
Andreas Rumpf 2017-10-30 17:21:05 +01:00
commit 0895064983
5 changed files with 12 additions and 5 deletions

View file

@ -79,7 +79,7 @@ proc setupVM*(module: PSym; cache: IdentCache; scriptName: string;
setResult(a, osproc.execCmd getString(a, 0))
cbconf getEnv:
setResult(a, os.getEnv(a.getString 0))
setResult(a, os.getEnv(a.getString 0, a.getString 1))
cbconf existsEnv:
setResult(a, os.existsEnv(a.getString 0))
cbconf dirExists: