1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New "home" variable parsing issue

Discussion in 'Support' started by Steve Fabian, Mar 23, 2011.

  1. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    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
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,804
    Likes Received:
    82
    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.
     

Share This Page