- Nov
- 358
- 10
There's an odd behaviour about the command-line arguments that are passed to some external programs.
1- Start a TCC window by itself. Invoke the TSEPro text editor to edit three files (a.txt, b.txt, c.txt). TSEPro will start and it will load the three files.
2- Start TCMD, with a TCC window inside it. Invoke the TSEPro editor to edit three files (a.txt, b.txt, c.txt). It will start and will attempt to load a single file, called "a.txt b.txt c.txt".
3- Detach the TCC window from TCMD. Repeat the command above. It will work as in step 1.
4- Reattach either TCC window back to TCMD. Repeat the command above. It will work as in step 2.
Yes, I took out all plugins, aliases, TCMD.INI, etcetera.
I've just tested this with TCMD 20.10.30 and even by attaching a TCC 20.11.37 window to it. Yesterday night, I tried this on TCMD 19 as well (but not as thoroughly as right now) and got the same results.
This issue also applies to redirection. "dir | g32" in an independent TCC window works as expected; but in an attached one doesn't.
Replace the editor (TSEPro) with Notepad++... and the problem disappears. Everything works as expected. View, less, more, and several other commands don't have any problems, either.
I think there's a combination of issues here, where part of the problem may be that TSEPro is expecting the command-line parameters in an "old way", so to speak, but I find it really odd that the behaviour differs on whether TCC is inside TCMD or not.
Just for kicks, I just tried this with CMD instead of TCC. CMD attached to TCMD exhibits the same issue.
Some environment data, just in case:
TCC 20.10.30 x64 Windows 10 [Version 6.3.14393]
TCC Build 30 Windows 10 Build 14393
TCC 20.11.37 x64 Windows 10 [Version 6.3.14393]
TCC Build 37 Windows 10 Build 14393
1- Start a TCC window by itself. Invoke the TSEPro text editor to edit three files (a.txt, b.txt, c.txt). TSEPro will start and it will load the three files.
2- Start TCMD, with a TCC window inside it. Invoke the TSEPro editor to edit three files (a.txt, b.txt, c.txt). It will start and will attempt to load a single file, called "a.txt b.txt c.txt".
3- Detach the TCC window from TCMD. Repeat the command above. It will work as in step 1.
4- Reattach either TCC window back to TCMD. Repeat the command above. It will work as in step 2.
Yes, I took out all plugins, aliases, TCMD.INI, etcetera.
I've just tested this with TCMD 20.10.30 and even by attaching a TCC 20.11.37 window to it. Yesterday night, I tried this on TCMD 19 as well (but not as thoroughly as right now) and got the same results.
This issue also applies to redirection. "dir | g32" in an independent TCC window works as expected; but in an attached one doesn't.
Replace the editor (TSEPro) with Notepad++... and the problem disappears. Everything works as expected. View, less, more, and several other commands don't have any problems, either.
I think there's a combination of issues here, where part of the problem may be that TSEPro is expecting the command-line parameters in an "old way", so to speak, but I find it really odd that the behaviour differs on whether TCC is inside TCMD or not.
Just for kicks, I just tried this with CMD instead of TCC. CMD attached to TCMD exhibits the same issue.
Some environment data, just in case:
TCC 20.10.30 x64 Windows 10 [Version 6.3.14393]
TCC Build 30 Windows 10 Build 14393
TCC 20.11.37 x64 Windows 10 [Version 6.3.14393]
TCC Build 37 Windows 10 Build 14393