Forum Discussion

rojarsmith's avatar
rojarsmith
Copper Contributor
Nov 04, 2021

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

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

 

 

 

1 Reply

  • I'm not sure what you mean, if you echo something in a command-prompt containing a variable and you suffix that with something else.. It will just print that output?

Resources