Fixed @filesize[...,a] space allocated values incorrect

rps

Jul 6, 2008
300
4
#1
These results are the same in both V22 & V23
Code:
v23.00.22_$ver
TCC  23.00.22 x64   Windows 10 [Version 10.0.17134.112]

v23.00.22_$echo %@filesize["d:\bat\Smalltest.txt",bc,a]
4,583
v23.00.22_$echo %@filesize["d:\bat\Smalltest.txt",bc]
4,583

v23.00.22_$*dir /Nfv d:\bat\SmallTest.txt
 Directory of  D:\bat\SmallTest.txt
 7/21/2013   3:38           4,583  SmallTest.txt
               4,583 bytes in 1 file and 0 dirs    8,192 bytes allocated
V21 values are correct.
Code:
v21.01.63_$ver

TCC  21.01.63 x64   Windows 10 [Version 10.0.17134]

v21.01.63_$echo %@filesize["d:\bat\smalltest.txt",bc]
4,583

v21.01.63_$echo %@filesize["d:\bat\smalltest.txt",bc,a]
8,192
Didn't pick this up earlier since I hadn't used @filesize[] in any of my older batch files. :oops:
 

rps

Jul 6, 2008
300
4
#3
It's back in 23.0.25
Code:
v23.00.25_$dir /h /nfv %comspec

 Directory of  C:\JPSoft\TCMD23x64\TCC.EXE

 7/22/2018  15:36         240,208  tcc.exe
             240,208 bytes in 1 file and 0 dirs    241,664 bytes allocated

v23.00.25_$*echo %@filesize[%comspec,bc]
240,208

v23.00.25_$*echo %@filesize[%comspec,bc,a]
483,328
V22.00.42 also has an issue.
Code:
v22.00.42_$dir /nfv "%comspec"

 Directory of  D:\TCMD v22\TCC.EXE

 5/05/2018  21:30         241,280  tcc.exe
             241,280 bytes in 1 file and 0 dirs    241,664 bytes allocated

v22.00.42_$*echo %@filesize["%comspec",bc]
241,280

v22.00.42_$*echo %@filesize["%comspec",bc,a]
241,280