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

Fixed set /r has stopped working in build 35

Discussion in 'Support' started by RogerB, Dec 31, 2016.

  1. RogerB

    Joined:
    Apr 18, 2014
    Messages:
    142
    Likes Received:
    3
    It was working OK in build 32, but I can't now get set /r to read variables from a file:

    Code:
    TCC  20.11.35 x64   Windows 10 [Version 6.3.14393]
    TCC Build 35   Windows 10 Build 14393
    
    d:\>*set testvar
    TCC: Not in environment "testvar*"
    
    d:\>type var.txt
    testvar=foobar
    
    d:\>*set /r var.txt
    d:\>*set testvar
    TCC: Not in environment "testvar*"
    No errors are reported.
     
    Juppycmd likes this.
  2. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,888
    Likes Received:
    30
    Observed here too. And after one attempt, the file in question is locked.
    Code:
    v:\> echo testvar=foobar > var.txt
    
    v:\> set /r var.txt
    v:\> set t
    TEMP=h:\Temp
    TITLEPROMPT=20.11.35$s$s[2080]$s$s$p
    TMP=h:\Temp
    TSLOPE=-0.1887
    TXINTERCEPT=58.4311
    TYINTERCEPT=11.0284
    
    v:\> echo testvar=foobar > var.txt
    TCC: (Sys) The process cannot access the file because it is being used by another process.
     "V:\var.txt"
    
    v:\> filelock var.txt
     2080  G:\tc20\tcc.exe
     
  3. rps

    rps

    Joined:
    Jul 6, 2008
    Messages:
    196
    Likes Received:
    3
    Same here.

    Code:
    [C:\JPSoft\tcmd20x64]ver
    
    TCC  20.11.35 x64   Windows 10 [Version 6.3.14393]
    
    [C:\JPSoft\tcmd20x64][C:\JPSoft\tcmd20x64]type varlist01.lst
    AliasFN=myTCMDalias.lst
    Alocation="%@path[%_cmdspec]..\myTCMDalias.lst"
    usb=%@left[2,%_cmdspec]
    
    [C:\JPSoft\tcmd20x64]*set /r varlist01.lst
    [C:\JPSoft\tcmd20x64]*set AliasFN
    TCC: Not in environment "AliasFN*"
    
    [C:\JPSoft\tcmd20x64]*set alocation
    TCC: Not in environment "alocation*"
    
    [C:\JPSoft\tcmd20x64]*set usb
    TCC: Not in environment "usb*"
     
  4. Juppycmd

    Joined:
    Dec 10, 2014
    Messages:
    61
    Likes Received:
    1
    Thanks, I won't upgrade until this is resolved.

    In the Changelog it says "ALIAS /R and FUNCTION /R - increased the speed 20x" so there seems to have been some tempering wiith the general /r code. Note to self: Can't have your cake and eat it :->
     
  5. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,809
    Likes Received:
    82
    It was fixed in 20.11.36 (uploaded a week ago).
     

Share This Page