﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
5891	getEnvironmentVariable does not return any output	dariomangoni@…	somebody	"Trying in 

`(str, b) := Modelica.Utilities.System.getEnvironmentVariable(""Path"", false);`

but it returns no output at all, not even with `getErrorString()`.

I also tried running on OMSheel and also from command prompt the attached MOS script:


{{{
loadModel(Modelica);
(str, b) := Modelica.Utilities.System.getEnvironmentVariable(""Path""); getErrorString();
}}}

that returned.

{{{
C:\workspace\_modelica_temp>omc getEnv.mos
true
Error processing file: getEnv.mos
# Error encountered! Exiting...
# Please check the error message and the flags.

Execution failed!
}}}



On Dymola2020, same command returns the expected values.

Am I missing something?"	defect	reopened	normal	2.0.0	Scripts	v1.16.0-dev			
