[TC11.55rc1-rc4] Command chain does not work with cd

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

Moderators: Hacker, petermad, Stefan2, white

sa16
Senior Member
Senior Member
Posts: 344
Joined: 2021-09-10, 07:15 UTC

[TC11.55rc1-rc4] Command chain does not work with cd

Post by *sa16 »

The chain of commands does not work, for example, in the TC folder:

Code: Select all

TOTALCMD#BAR#DATA
cm_ClearAll,cd "History.txt"

WCMICONS.DLL
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50817
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11.55rc1-rc4] Command chain does not work with cd

Post by *ghisler(Author) »

Chained commands work in the command line, but not with the cd command, this isn't currently supported.

Moderator message from: ghisler(Author) » 2025-05-27, 13:04 UTC

Moved to suggestions
Author of Total Commander
https://www.ghisler.com
sa16
Senior Member
Senior Member
Posts: 344
Joined: 2021-09-10, 07:15 UTC

Re: [TC11.55rc1-rc4] Command chain does not work with cd

Post by *sa16 »

ghisler(Author) wrote: this isn't currently supported.
In the TC11.02... TC11.51 chains worked.
Perhaps after this fix:
History.txt wrote: 05.10.23 Release Total Commander 11.02 release candidate 1
...
11.09.23 Fixed: cd *.ext or cd c:\path\*.ext didn't work in command line, or when combining multiple commands in button bar (where the path must be put in double quotes) (32/64)
User avatar
petermad
Power Member
Power Member
Posts: 16098
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC11.55rc1-rc4] Command chain does not work with cd

Post by *petermad »

2ghisler(Author)
Obviously sa16 is not talking about the command line, but about using cd chained in a button.

2sa16
If works in a button if you use:

Code: Select all

[Configuration]
IgnoreDirErrors=1
in your wincmd.ini file.

2ghisler(Author)
I think it is a bug that it is now necessary to use IgnoreDirErrors=1 to make cm_ClearAll,cd "History.txt" work in a button?
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
tuska
Power Member
Power Member
Posts: 4111
Joined: 2007-05-21, 12:17 UTC

Re: [TC11.55rc1-rc4] Command chain does not work with cd

Post by *tuska »

Hmm, here's another example where the button works.

Code: Select all

TOTALCMD#BAR#DATA
cd "*.txt",cm_SelectAll

wcmicons.dll,9
cd "*.txt",cm_SelectAll|https://www.ghisler.ch/board/viewtopic.php?t=85897|[TC11.55rc1-rc4] Command chain does not work with cd|cm_ClearAll,cd "History.txt"


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

Re: [TC11.55rc1-rc4] Command chain does not work with cd

Post by *petermad »

sa16 wrote: 2025-05-27, 13:29 UTCIn the TC11.02... TC11.51 chains worked.
I can confirm that it worked in a button (like the one in the first post) in TC11.51 without the IgnoreDirErrors=1 parameter.

Moderator message from: petermad » 2025-05-27, 13:38 UTC

Moved from "TC fixed bugs" back to "TC11.x bug reports (English)"
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
sa16
Senior Member
Senior Member
Posts: 344
Joined: 2021-09-10, 07:15 UTC

Re: [TC11.55rc1-rc4] Command chain does not work with cd

Post by *sa16 »

2tuska
To demonstrate the bug, an example is given in which an error appears, and not vice versa.
Use an absolute path or "%COMMANDER_PATH%\History.txt" - there will be no error either.
User avatar
petermad
Power Member
Power Member
Posts: 16098
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC11.55rc1-rc4] Command chain does not work with cd

Post by *petermad »

2sa16

I can confirm that it works when using cd "%COMMANDER_PATH%\History.txt" instead of just cd "History.txt" - where if History.txt is present in the current directory.

And still - it worked with cd "History.txt" in TC 11.51 - so TC 11.55 is currently not backwards compatible in this matter.
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
tuska
Power Member
Power Member
Posts: 4111
Joined: 2007-05-21, 12:17 UTC

Re: [TC11.55rc1-rc4] Command chain does not work with cd

Post by *tuska »

sa16 wrote: 2025-05-27, 13:47 UTC 2tuska
To demonstrate the bug, an example is given in which an error appears, and not vice versa.
Please excuse my unfortunate choice of words.

I gave this example to refute this statement:
ghisler(Author) wrote: 2025-05-27, 13:04 UTC Chained commands work in the command line, but not with the cd command, this isn't currently supported.
sa16
Senior Member
Senior Member
Posts: 344
Joined: 2021-09-10, 07:15 UTC

Re: [TC11.55rc1-rc4] Command chain does not work with cd

Post by *sa16 »

2tuska
Now I get it! Excuse me too!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50817
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11.55rc1-rc4] Command chain does not work with cd

Post by *ghisler(Author) »

Thanks, I understand the problem now. It's caused by the unfortunate change to support commands like this:
cd "test 1.*" "test 2.*"
To support this, I can no longer just remove the first double quotes, I have to remove them wherever needed. But this clashes with chained commands, where the parameters of cd must be always in double quotes, otherwise it would be impossible to find the end of a cd command. Because of this change, cd "History.txt" is passed with the double quotes to the cd command handler, which fails.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 16098
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC11.55rc1-rc4] Command chain does not work with cd

Post by *petermad »

2ghisler(Author)

Is it because of the backslash in the name that it still works for cd "%COMMANDER_PATH%\History.txt" or cd "c:\totalcmd\History.txt" ?
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
JOUBE
Power Member
Power Member
Posts: 1685
Joined: 2004-07-08, 08:58 UTC

Re: [TC11.55rc1-rc4] Command chain does not work with cd

Post by *JOUBE »

ghisler(Author) wrote: 2025-05-27, 20:08 UTC Thanks, I understand the problem now. It's caused by the unfortunate change to support commands like this:
cd "test 1.*" "test 2.*"
To support this, I can no longer just remove the first double quotes, I have to remove them wherever needed. But this clashes with chained commands, where the parameters of cd must be always in double quotes, otherwise it would be impossible to find the end of a cd command. Because of this change, cd "History.txt" is passed with the double quotes to the cd command handler, which fails.
This is really annoying. Please just remove the change and everything will be fine again. Why do a customer keep making more and more pointless demands and, above all, "Ghisler Software GmbH" follow them? Please put such requests to "will not be changed" and stop answering at the subforumIn the interest of your professional customers who do not want to take steps backwards.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50817
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11.55rc1-rc4] Command chain does not work with cd

Post by *ghisler(Author) »

Please just remove the change and everything will be fine again.
Why such radical negativity? I just need to address this additional special case.
Author of Total Commander
https://www.ghisler.com
sa16
Senior Member
Senior Member
Posts: 344
Joined: 2021-09-10, 07:15 UTC

Re: [TC11.55rc1-rc4] Command chain does not work with cd

Post by *sa16 »

27.05.25 Fixed: Command cd "filename" to position cursor on file could no longer be combined with other commands on a button (32/64)
Confirmed fixed in TC 11.55rc5.
Post Reply