Page 1 of 1

TC Fails to Quote Filenames on Command Line

Posted: 2019-02-08, 17:52 UTC
by ingenuus
When putting filenames on the command line (Ctrl+Enter), TC fails to quote files with commas, apostrophes, etc., so programs interpret a single filename as multiple arguments.

It never hurts to quote, but the behavior should probably mirror cmd.exe's tab completion, which means that any file or directory name with these characters should be quoted (probably unicode, too):

"' !%&(),;[]^`{}~+="

I've reported this before, but perhaps as a feature request. It actually should be categorized as a bug since TC doesn't put the filename on the command line in a usable format.

Thank you for TC, Christian! I hope this gets fixed. :)

Re: TC Fails to Quote Filenames on Command Line

Posted: 2019-02-08, 18:24 UTC
by Dalai
Confirmed. And I also confirm this is an issue because CMD treats something like

Code: Select all

script.cmd Ethernet0,Ethernet
as two parameters for script.cmd, making quoting necessary to avoid such behavior.

Regards
Dalai

Re: TC Fails to Quote Filenames on Command Line

Posted: 2019-02-08, 22:21 UTC
by ingenuus
Exactly, that's the most common problem -- batch files don't always work from tcmd so I have have to manually enter quotes.

Thanks, Dalai! :)

Re: TC Fails to Quote Filenames on Command Line

Posted: 2019-11-07, 23:50 UTC
by ingenuus
Could I get an update on why this bug isn't being fixed? Should I re-file the bug with each new version?

Re: TC Fails to Quote Filenames on Command Line

Posted: 2019-11-08, 15:25 UTC
by ghisler(Author)
Currently only names with spaces in them will be quoted.