Is it a bug ? echo %path% can not evaluate the variable.

Occasional Contributor

Is it a bug ? echo %path% can not evaluate the variable.

 

I set the system variable PATH that call the user variable but not evaluate correctly.

 

Input :    echo %ERLANG_HOME%\bin

Return : C:\Program Files\erl-24.1\bin

 

Input :    echo %path%

Return : ... ;%ERLANG_HOME%\bin; ...

 

Edition Windows Server 2022 Datacenter
Version 21H2
Installed on ‎2021/‎10/‎31
OS build 20348.320

 

User : Administrator

current user   ERLANG_HOME C:\Program Files\erl-24.1
System           PATH                  %ERLANG_HOME%\bin

 

Capture.PNG

 

Capture___.PNG

 

0 Replies