I posted about this a few months ago, but didn't get a reply. I've reproduced the issue with a script this time, although it affects binaries as well.
By default CMD supports Unix paths, but TCCLE needs UnixPaths=Yes in TCMD.INI. However while TCCLE gets %0 correct, %1 starts from the / in the script name.
Incorrect results from TCCLE, followed by correct results from CMD.
TCC LE 14.00.8 x64 Windows 10 [Version 6.3.10586]
Copyright 2016 JP Software Inc. All Rights Reserved
[C:\Program Files\JPSoft\TCCLE14x64]type \temp\x.cmd
@echo "%0"
@echo "%1"
[C:\Program Files\JPSoft\TCCLE14x64]c:\temp\x.cmd
"c:\temp\x.cmd"
""
[C:\Program Files\JPSoft\TCCLE14x64]c:\temp/x.cmd
"c:\temp/x.cmd"
"/x.cmd"
[C:\Program Files\JPSoft\TCCLE14x64]cmd
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Program Files\JPSoft\TCCLE14x64>c:\temp\x.cmd
"c:\temp\x.cmd"
""
C:\Program Files\JPSoft\TCCLE14x64>c:\temp/x.cmd
"c:\temp/x.cmd"
""
C:\Program Files\JPSoft\TCCLE14x64>
By default CMD supports Unix paths, but TCCLE needs UnixPaths=Yes in TCMD.INI. However while TCCLE gets %0 correct, %1 starts from the / in the script name.
Incorrect results from TCCLE, followed by correct results from CMD.
TCC LE 14.00.8 x64 Windows 10 [Version 6.3.10586]
Copyright 2016 JP Software Inc. All Rights Reserved
[C:\Program Files\JPSoft\TCCLE14x64]type \temp\x.cmd
@echo "%0"
@echo "%1"
[C:\Program Files\JPSoft\TCCLE14x64]c:\temp\x.cmd
"c:\temp\x.cmd"
""
[C:\Program Files\JPSoft\TCCLE14x64]c:\temp/x.cmd
"c:\temp/x.cmd"
"/x.cmd"
[C:\Program Files\JPSoft\TCCLE14x64]cmd
Microsoft Windows [Version 10.0.10586]
(c) 2015 Microsoft Corporation. All rights reserved.
C:\Program Files\JPSoft\TCCLE14x64>c:\temp\x.cmd
"c:\temp\x.cmd"
""
C:\Program Files\JPSoft\TCCLE14x64>c:\temp/x.cmd
"c:\temp/x.cmd"
""
C:\Program Files\JPSoft\TCCLE14x64>