Automatic quoting broken for %M

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3501
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Automatic quoting broken for %M

Post by *Flint »

1. Create the following buttonbar button:

Code: Select all

TOTALCMD#BAR#DATA
cmd /k echo
?N: %N === PN: %P%N === M: %M === TM: %T%M
cmd.exe



-1
2. On both left and right panels place the cursor on a file which has spaces in name, but not in path. Then press the button.
3. The dialog with the current parameter values will show, and the value will look like this:
N: "this is an example.txt" === PN: "c:\Temp\1\this is an example.txt" === M: this is an example.txt === TM: "c:\Temp\1\this is an example.txt"
You can see that %M is the only parameter that did not add quotes around the name, even though it has spaces. All the other added quotes, even %T%M, even though %T did not add any extra spaces of its own.

Tested in TC 10.52 32- and 64-bit.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Automatic quoting broken for %M

Post by *petermad »

License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Flint
Power Member
Power Member
Posts: 3501
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Re: Automatic quoting broken for %M

Post by *Flint »

2petermad
Ah, thanks. Since "%M" is not searchable, I couldn't make a proper search request…
Pity, I was sure it's a bug that can be fixed. This inconsistency looks really weird and hard to explain in documentation.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
Post Reply