New "home" variable parsing issue

#1
TCC 12.10.56 WinXP SP3

Define environment variable HOME using a definition file containing the lines below, loaded by a SET /R command, as follows:

home=%mstr\JPSOFT
mstr=C:

Executing the command "*CD ~" reports:

TCC: (Sys) The system cannot find the path specified.
"*~*"

Cf. command "echo %home" correctly reports "C:\JPSOFT".

The issue is evaluation of nested variables. There is no problem when HOME is set to an unquoted path name containing spaces.
--
Steve
 

rconn

Administrator
Staff member
May 14, 2008
10,532
94
#2
The issue is evaluation of nested variables. There is no problem when HOME is set to an unquoted path name containing spaces.
WAD. The "CD ~" syntax does not support variable expansion, relative paths, embedding in pathnames, etc.

Those are on the suggestion list for a future version.