cmder
cmder copied to clipboard
[Bug] Error on launch with /TASK: "The syntax of the command is incorrect"
Version Information
Cmder version: 1.3.20.151
ConEmu version: 22.12.18.0
Operating system: Windows 10 22H2
Cmder Edition
Cmder Mini
Description of the issue
When running cmder.exe /TASK "{Cmder::Cmder}"
or cmder.exe /task "{Cmder::Cmder as Admin}"
, "The syntax of the command is incorrect" is shown in the newly-spawned console window. The error message is followed by a cmd.exe-style prompt (not the Cmder-style one with a lambda symbol) and features like shell history search are unusable.
I didn't edit these two tasks. Running these tasks using the "+" button is ok.
How to reproduce
- open a terminal
- navigate to the directory where Cmder placed
- run
cmder.exe /TASK "{Cmder::Cmder}"
orcmder.exe /task "{Cmder::Cmder as Admin}"
Additional context
Checklist
- [X] I have read the documentation.
- [X] I have searched for similar issues and found none that describe my issue.
- [X] I have reproduced the issue on the latest version of Cmder.
- [X] I am certain my issues are not related to ConEmu, Clink, or other third-party tools that Cmder uses.
This might be a duplicate of #2820, due to the cmder.exe launcher specifying conemu arguments in the wrong order.
@chrisant996 Thanks for the investigation, I'll apply the fix soon
I found that this issue was fixed in 1.3.21. I downloaded this version from download page, but if I try to start Cmder as topicstarter did I see the same error. I checked the version in the archive (just downloaded from https://github.com/cmderdev/cmder/releases/download/v1.3.21/cmder.zip ) in windows file properties - it's 1.3.20.151
And I do not know - if the error is not fixed. Or version in the archive was not updated