Inconsistency in @version's use of quotes

Apr 18, 2014
TCC 26.02.41 x64 Windows 10 [Version 10.0.19041.388]
TCC Build 41 Windows 10 Build 19041

If I use @version with filenames that have spaces in them the quoting of the returned names is inconsistent. For example, if the file "foo bar.txt" does not exist then @version returns a quoted filename:

d:\>dir /b "foo bar.txt"
TCC: (Sys) The system cannot find the file specified.
 "D:\foo bar.txt"

d:\>echo %@version["foo bar.txt"]
"D:\foo bar.txt"

But if the file already exists then @version returns the versioned filename without quotes:

d:\>dir /b "foo bar.txt"
foo bar.txt

d:\>echo %@version["foo bar.txt"]
D:\foo bar.txt;1

I was expecting @version to return quoted filenames in both cases, at the very least I think it should be consistent whether the file exists or not.
Similar threads
Thread starter Title Forum Replies Date
jbanaszczyk help files: minor inconsistency Support 2
thedave BDEBUGGER vs not inconsistency Support 15
M If and Iff inconsistency... Support 9
Jay Sage Inconsistency in Date Formats Between @DATE and @MAKEDATE Support 3
D pdir inconsistency Support 4
Dmitry L. Kobyakov How to? How to remove the record of the old version of the Take Command? Support 5
D Documentation WebHelp lands at version 26 Support 0 HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) Support 0
S Issues with version v26.02.42 x64 Support 0
Joe Caverly Documentation COMMANDS in Version 27 help Support 8
C version help Support 3
thorntonpg What is the latest version of everything Support 1
S Windows Server version not being detected correctly in TCMD 26RC2 Support 9
D Which is the latest version for Windows XP? Support 2
gentzel "Check for Updates" appears to be checking for old version Support 2
D Fixed @VERSION does not increment pre-fixed version numbers. Support 1
nikbackm TCMD 25 - Unregister older TCMD version Support 2
Stefan Hassel Installation file TC 24.02 Build 47 is actually version 25.00.1 Support 10
Joe Caverly What version and Windows OS are you using? Support 3
Dmitry L. Kobyakov From old version: had the setup's error been corrected? Support 6
R How to? Compare executables' version/build # including 123.456.789.01 Support 10
RChrismon How to? Copy TCMD.INI to New Version Support 7
vefatica Windows 10 version number? Support 6
H @ceiling @floor @int not working version 21.01.63 Support 9
B Everything version in Take Command build 39? Support 3
G Version 20.11 installed on Windows 10 problems Support 9
M ANSI is used to show files instead of OEM in version 17 to 19 ! Support 5
E How to? Create a portable version of TCMD to use on other computers w/o installation Support 4
C 21b47 version[] Support 4 Version 21.23 fails to install Support 4
E Fixed View command broken in version 21.0 build 22 Support 9
rconn News Take Command + TCC + TCC-RT Version 21 Public Beta (RC1) Support 0
R How to? Not have RT version show on start Support 3
Roedy WAD Version number Support 1
Craig Fitzgerald problem with executable extensons with TCC version 19.10.51 x64 Support 3
Jesse Heines How to? Everything Tool Not Working After Version 20 Installation Support 8
T Portable instructions for version 19 Support 7
cgunhouse Version 19.00.23 Crashes Support 16
vefatica Updater says wrong version Support 1
Sande Nissen TCC/LE version? Support 6
Mordachai Upgrades - can I skip version(s)? Support 2
D Version 18 changed the naming convention of TC's folder Support 5
D Started suggestions, not in this version (yet?) Support 1 How about updating the version shown when you upload a new one? Support 4
Joe Caverly PLUGINs and Version 17.0 Support 4
C Is 17.00.55 same as release version? Support 3
Jay Sage Version 17 Installer Leaves Multiple Copies of ShrAlias Support 48
M How to? Start the version of Take Command that I want... Support 7
B Help file problem with version 16 Support 2

Similar threads