Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Fixed set /r has stopped working in build 35

Apr
393
13
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.
 
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
 
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*"
 
It was working OK in build 32, but I can't now get set /r to read variables from a file

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 :->
 

Similar threads

Replies
4
Views
2K
Back
Top