I was trying to build the code to a 3rd party program. The program has a complicated build system that uses the COMSPEC environment variable to invoke different commands. As I use TCC as my primary command shell, the build tools automatically used it. I am using TCC 26.02.42 x64.
I was getting failures when using TCC that I do not get when using CMD.
I traced it down to behavior difference in the COPY command when +,, is appended to the file. At one point, this is executed:
Where <file> is the same filename.
I did a quick test by creating a dummy file and it does indeed seem that the behavior is different.
On TCC, it returns:
Whereas on CMD, it treats it as "success":
It's silly to copy a file onto itself, but as it's a third party code base, it wouldn't be easy to make changes to it. Is there any way to make TCC emulate the behavior of CMD?
Also, as a side note, it seems like your forums use CloudFlare now for some kind of security scanning and it is over-aggressive. If you include the letters DOT EXE (using the symbol instead of the word DOT -- e.g. CMD*EXE) it will block me from posting.
I was getting failures when using TCC that I do not get when using CMD.
I traced it down to behavior difference in the COPY command when +,, is appended to the file. At one point, this is executed:
COPY /b <file>+,, <file>
Where <file> is the same filename.
I did a quick test by creating a dummy file and it does indeed seem that the behavior is different.
On TCC, it returns:
[D:\Temp]copy /b out.txt+,, out.txt
0 files copied
Whereas on CMD, it treats it as "success":
D:\Temp>copy /b out.txt+,, out.txt
1 file(s) copied.
It's silly to copy a file onto itself, but as it's a third party code base, it wouldn't be easy to make changes to it. Is there any way to make TCC emulate the behavior of CMD?
Also, as a side note, it seems like your forums use CloudFlare now for some kind of security scanning and it is over-aggressive. If you include the letters DOT EXE (using the symbol instead of the word DOT -- e.g. CMD*EXE) it will block me from posting.