Solved [TC 10.50b7] /S=L: works differently from command line as a parameter for cm_List

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

Moderators: white, Hacker, petermad, Stefan2

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

Solved [TC 10.50b7] /S=L: works differently from command line as a parameter for cm_List

Post by *petermad »

history.txt wrote: 24.05.22 Added: The internal commands cm_list, cm_listInternalOnly, cm_listInternalMulti, cm_listOnly, cm_listMulti now support the same parameters as via command line, with switch / at the start, e.g. cm_list /T1 filename (32/64)
24.05.22 Added: Command line parameter /S=L to open a separate Lister window: New sub-parameter F to open Lister in full screen view, e.g. /S=L:F filename (32/64)
Even if Lister is configured for Autodetection of Font at startup this is seen with the new use of parameters for em_List

If I use for example this command line:
%COMMANDER_EXE% /S=L:T1
Lister start up in ANSI mode, just if I just use cm_List

But if I use cm_List /S=L:T1
Lister starts up in ASCII mode - and worse - any use of cm_list (without parameters) or F3 thereafter starts in ASCII mode until I restart TC.

This applies to T1-T8 ,N,A,S and P parameters. If I use the V parameter, every following use of cm_list (without parameters) or F3 results in Variable char width to be used until I restart TC.

If I override the Autodetection of Font at startup by usinf for example cm_List /S=L:AT1 - things work OK, but of course without autodetection.

EDIT:
My mistake!

If I omit /S=L: and just use for example cm_List /T1 instead of cm_List /S=L:T1 things work OK - but since the history says: " now support the same parameters as via command line" I expected /S=L:T1 to work as well - it would be conveniant if it did work too - especially since it almost does work, except for the font problem.
Last edited by petermad on 2022-06-15, 17:39 UTC, edited 4 times 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.50b7] /S=L: works differently from command line as a parameter for cm_List

Post by *ghisler(Author) »

How would you change the description? They are the same parameters of the /S=L command, not the /S=L command itself.
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.50b7] /S=L: works differently from command line as a parameter for cm_List

Post by *petermad »

Maybe just emphasize not to use the /S=L: part - like:

Added: The internal commands cm_list, cm_listInternalOnly, cm_listInternalMulti, cm_listOnly, cm_listMulti now support the same parameters as via command line, with switch / at the start, e.g. cm_list /T1 filename - i.e. omit the S=L: part of the command line parameter (32/64)
Last edited by petermad on 2022-05-27, 12:03 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.50b7] /S=L: works differently from command line as a parameter for cm_List

Post by *ghisler(Author) »

Good idea, I will use something like that also in the help.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.50b7] /S=L: works differently from command line as a parameter for cm_List

Post by *white »

I have tried with TC10.50b7 64-bit and json plugin and N switch to not use the plugin/multimedia.

Command line with parameters: /S=L:N d:\TEST\File.json - works, the plugin is not used
Internal command: CM_LIST /N d:\TEST\File.json - does not work, the plugin is used
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50b7] /S=L: works differently from command line as a parameter for cm_List

Post by *petermad »

CM_LIST /N d:\TEST\File.json - does not work, the plugin is used
Confirmed - testet with image files - I don't have a json viewer plugin
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.50b7] /S=L: works differently from command line as a parameter for cm_List

Post by *ghisler(Author) »

Your command and parameter are contradicting: CM_LIST tells TC to auto-detect with plugins. /N tells it to auto-detect without plugins.
That's why there is a CM_LISTINTERNALONLY command.

I'm really sorry but I don't know how to better resolve such contradictions.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.50b7] /S=L: works differently from command line as a parameter for cm_List

Post by *white »

ghisler(Author) wrote: 2022-05-29, 08:59 UTC I'm really sorry but I don't know how to better resolve such contradictions.
The purpose of parameters is to override behavior. And you say all parameters are supported.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50b7] /S=L: works differently from command line as a parameter for cm_List

Post by *petermad »

The purpose of parameters is to override behavior. And you say all parameters are supported.
I agree - at least it should be mentioned in the History and the Help that /N is an exception.
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.50b7] /S=L: works differently from command line as a parameter for cm_List

Post by *ghisler(Author) »

OK, I can change that. Did you find any other such contradicting parameters?

For example, I found one:
CM_LISTINTERNALONLY /Ppluginname filename

This will not use pluginname to display filename because of the "INTERNALONLY" part. I will change that too.
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.50b7] /S=L: works differently from command line as a parameter for cm_List

Post by *petermad »

history.txt wrote:31.05.22 Fixed: The internal commands cm_list* now work with parameters even when the /S=L: part isn't removed (32/64)
Not completely fixed- it only works in 32bit TC 10.50b8 - the 64bit version still sees the S as the parameter for ASCII.

history.txt wrote:30.05.22 Fixed: cm_list* commands with parameters: /N (no plugins) and /Spluginame now take precedence over cm_list vs cm_listInternalOnly (32/64)
Confirmed fixed in TC 10.50b8 :-)


history.txt wrote:24.05.22 Added: The internal commands cm_list, cm_listInternalOnly, cm_listInternalMulti, cm_listOnly, cm_listMulti now support the same parameters as via command line, with switch / at the start, e.g. cm_list /T1 filename (32/64)
changed to:
history.txt wrote:24.05.22 Added: The internal commands cm_list, cm_listInternalOnly, cm_listInternalMulti, cm_listOnly, cm_listMulti now support the same parameters as via command line, with switch / at the start, e.g. cm_list /T1 filename (omit the S=L: part of the command line parameter) (32/64)
in TC 10.50b8 - but it is only of historical interest with the change from 31.05.22 here above (once it also works for 64bit TC).
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.50b7] /S=L: works differently from command line as a parameter for cm_List

Post by *ghisler(Author) »

Not completely fixed- it only works in 32bit TC 10.50b8 - the 64bit version still sees the S as the parameter for ASCII.
That's odd, the code change is in both versions. I will have to check it in the debugger.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.50b7] /S=L: works differently from command line as a parameter for cm_List

Post by *white »

petermad wrote: 2022-06-01, 15:41 UTC
history.txt wrote:31.05.22 Fixed: The internal commands cm_list* now work with parameters even when the /S=L: part isn't removed (32/64)
Not completely fixed- it only works in 32bit TC 10.50b8 - the 64bit version still sees the S as the parameter for ASCII.
I cannot confirm this either. Can you give an example?
petermad wrote: 2022-06-01, 15:41 UTC
history.txt wrote:30.05.22 Fixed: cm_list* commands with parameters: /N (no plugins) and /Spluginame now take precedence over cm_list vs cm_listInternalOnly (32/64)
Confirmed fixed in TC 10.50b8 :-)
Confirmed fixed, however.. Unlike running TC with parameter /S=L:, when you use more than 1 space between the parameters, the sh** breaks and things get messy ;)

And there are 2 mistakes in the HISTORY.TXT entry in the text "/Spluginame".
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10.50b7] /S=L: works differently from command line as a parameter for cm_List

Post by *petermad »

white wrote: 2022-06-02, 11:30 UTC
petermad wrote: 2022-06-01, 15:41 UTC
history.txt wrote:31.05.22 Fixed: The internal commands cm_list* now work with parameters even when the /S=L: part isn't removed (32/64)
Not completely fixed- it only works in 32bit TC 10.50b8 - the 64bit version still sees the S as the parameter for ASCII.
I cannot confirm this either. Can you give an example?
Weird - I cannot reproduce it now. You can move this thread to Fixed Bugs.
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
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 10.50b7] /S=L: works differently from command line as a parameter for cm_List

Post by *white »

petermad wrote: 2022-06-02, 11:49 UTC You can move this thread to Fixed Bugs.
Not yet because I just mentioned a few more issues.
Post Reply