Solved [TC 10 b4] Inconsistent support for filename with cm_List* commands

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 b4] Inconsistent support for filename with cm_List* commands

Post by *petermad »

Currently cm_List and cm_ListInternalOnly supports a filename (with full path) on the commandline.

It seems logical that this should also be supported for cm_ListOnly

It could also be nice if the path of the current panel could be used if filename was indicated without path.
Last edited by petermad on 2021-04-13, 19:46 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 b4] Inconsistent support for filename with cm_List* commands

Post by *ghisler(Author) »

I will add it. It's not there because with one parameter cm_List and cm_ListOnly would do exactly the same thing.
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 b4] Inconsistent support for filename with cm_List* commands

Post by *petermad »

history.txt wrote:07.04.21 Fixed: CM_LISTONLY now accepts a file name as parameter just like CM_LIST (32/64)
Confirmed fixed in TC 10 b5 :-)

But, there is another peculiar behaviour with cm_List, cm_ListOnly and cm_ListeInternalOnly - if I (in a button) only use the file name without path, then the command only works (=opening the file if it exists in the source file panel) every second time it is executed - with full path for the filename, there is no such problem
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 b4] Inconsistent support for filename with cm_List* commands

Post by *ghisler(Author) »

Sorry, only full path and environment variables are supported.
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 b4] Inconsistent support for filename with cm_List* commands

Post by *petermad »

Can you explain why it works every second time without the full path?
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 b4] Inconsistent support for filename with cm_List* commands

Post by *ghisler(Author) »

It depends on what the current directory is when you launch the command. Total Commander does not set the current directory before each command, only before things like launching other programs. So it's just by chance that the current directory is the same as in the active panel.
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: Solved [TC 10 b4] Inconsistent support for filename with cm_List* commands

Post by *petermad »

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