TC Fails to Quote Filenames on Command Line

Please report only one bug per message!

Moderators: sheep, Hacker, Stefan2, white

Post Reply
ingenuus
Junior Member
Junior Member
Posts: 11
Joined: 2004-11-24, 23:27 UTC

TC Fails to Quote Filenames on Command Line

Post by *ingenuus » 2019-02-08, 17:52 UTC

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. :)

User avatar
Dalai
Power Member
Power Member
Posts: 6450
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: TC Fails to Quote Filenames on Command Line

Post by *Dalai » 2019-02-08, 18:24 UTC

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
#101164 Personal licence
Athlon X4 880K, 16 GiB RAM, Gigabyte F2A88X-D3HP, Win7 x64

Plugins: Services2, Startups

ingenuus
Junior Member
Junior Member
Posts: 11
Joined: 2004-11-24, 23:27 UTC

Re: TC Fails to Quote Filenames on Command Line

Post by *ingenuus » 2019-02-08, 22:21 UTC

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! :)

Post Reply