a1bc1f56cc
However on win7 though (but not on winxp) all set variables inside script will be leaked if the script fails within another setlocal ie. set JAVA_CMD="ja"va" lein set Will show LEIN_HOME, LEIN_JAR and ORIGINAL_PWD remained set. The following .bat will prove the point: @echo on setLocal EnableExtensions EnableDelayedExpansion set xxx="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" rem comment the following line to prevent xxx to leak into parent shell: setlocal rem the below will make script fail(just type "set" to see it leaked): if x == ' echo not reached! |
||
---|---|---|
.. | ||
lein | ||
lein-pkg | ||
lein.bat | ||
release |