TC Fails to Quote Filenames on Command Line

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

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

TC Fails to Quote Filenames on Command Line

Post 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. :)
User avatar
Dalai
Power Member
Power Member
Posts: 9352
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: TC Fails to Quote Filenames on Command Line

Post 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
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
ingenuus
Junior Member
Junior Member
Posts: 12
Joined: 2004-11-24, 23:27 UTC

Re: TC Fails to Quote Filenames on Command Line

Post 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! :)
ingenuus
Junior Member
Junior Member
Posts: 12
Joined: 2004-11-24, 23:27 UTC

Re: TC Fails to Quote Filenames on Command Line

Post 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?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC Fails to Quote Filenames on Command Line

Post by *ghisler(Author) »

Currently only names with spaces in them will be quoted.
Author of Total Commander
https://www.ghisler.com
Post Reply