Hi,

Can we do

if (! env.containsKey(ScriptingFunctions.PWD_NAME)) {
env.put(ScriptingFunctions.PWD_NAME, System.getProperty("user.dir"), scriptEnv._strict);
}

in Global.java instead of checking for Windows platform explicitly?

-Sundar

On Friday 05 June 2015 03:08 PM, Michael Haupt wrote:
Dear all,

please review and sponsor this fix.
Bug: https://bugs.openjdk.java.net/browse/JDK-8080087
Webrev: http://cr.openjdk.java.net/~mhaupt/8080087/webrev.00

In Nashorn scripting mode, $ENV.PWD contains the current working directory. 
This is imported from the environment on unixy platforms. As the PWD variable 
is nonexistent on Windows by default, it needs to be set explicitly.

Thanks,

Michael


Reply via email to