cmder icon indicating copy to clipboard operation
cmder copied to clipboard

[Bug] Error on launch with /TASK: "The syntax of the command is incorrect"

Open notastudio opened this issue 1 year ago • 3 comments

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

  1. open a terminal
  2. navigate to the directory where Cmder placed
  3. run cmder.exe /TASK "{Cmder::Cmder}" or cmder.exe /task "{Cmder::Cmder as Admin}"

Additional context

image

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.

notastudio avatar Apr 04 '23 10:04 notastudio

This might be a duplicate of #2820, due to the cmder.exe launcher specifying conemu arguments in the wrong order.

chrisant996 avatar Apr 04 '23 19:04 chrisant996

@chrisant996 Thanks for the investigation, I'll apply the fix soon

DRSDavidSoft avatar Apr 04 '23 20:04 DRSDavidSoft

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

svezr avatar May 12 '23 09:05 svezr