Solved [TC 10 b8] change in handeling of cd command, so it is no more backwards compatible

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Solved [TC 10 b8] change in handeling of cd command, so it is no more backwards compatible

Post by *petermad »

I have been using these four commands for many years in TC, but since TC 10 b8 they do not work anymore, if the folder or file does not have an extension - i.e. it still works for "item.1", but not for "item1"

Code: Select all

[em_ext_show_ext]
cmd=cd
param=%Z;"*.%E"
menu=Show Only Files with Same Extension
button=wcmicons.dll,25

[em_ext_hide_ext]
cmd=cd
param=%Z*|"*.%E"
menu=Hide Files with Same Extension
button=wcmicons.dll,25

[em_ext_show_folder_ext]
cmd=cd
param=%Z;"*.%E\"
menu=Show Only Folders with Same Extension
button=wcmicons.dll,25

[em_ext_hide_folder_ext]
cmd=cd
param=%Z*|"*.%E\"
menu=Hide Folders with Same Extension
button=wcmicons.dll,25

There is no problems with the four commands in TC 10 b7.

___________________________________________________


The corresponding commands for file/folder names still work:

Code: Select all

[em_ext_show_name]
cmd=cd
param=%Z;"%O.*"
menu=Show Only Files with Same Name
button=wcmicons.dll,25

[em_ext_hide_name]
cmd=cd
param=%Z*|"%O.*"
menu=Hide Files with Same Name
button=wcmicons.dll,25

[em_ext_show_folder_name]
cmd=cd
param=%Z;"%O.*\"
menu=Show Only Folders with Same Name
button=wcmicons.dll,25

[em_ext_hide_folder_name]
cmd=cd
param=%Z*|"%O.*\"
menu=Hide Folders with Same Name
button=wcmicons.dll,25
Last edited by petermad on 2021-05-06, 21:33 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10 b8] change in handeling of cd command, so it is no more backwards compatible

Post by *ghisler(Author) »

I will check it, these don't use any of the new functions, so should still work normally.
Author of Total Commander
https://www.ghisler.com
joe910
Junior Member
Junior Member
Posts: 36
Joined: 2009-02-23, 03:05 UTC
Location: Peoria, IL USA

Re: [TC 10 b8] change in handeling of cd command, so it is no more backwards compatible

Post by *joe910 »

I can confirm the issue, at least on x64.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10 b8] change in handeling of cd command, so it is no more backwards compatible

Post by *petermad »

Probably the same reason as this: viewtopic.php?p=400835#p400835
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10 b8] change in handeling of cd command, so it is no more backwards compatible

Post by *ghisler(Author) »

I can confirm the problem - the new function to append partial strings got confused by the empty extension and copied it to the command line instead of appending it. I will fix it.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10 b8] change in handeling of cd command, so it is no more backwards compatible

Post by *petermad »

history.txt wrote:02.05.01 Fixed: Some parameters were not appended when empty, like %E (file extension). Instead, the command was truncated at that position (32/64)
Confirmed fixed in TC 10 b9 :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply