cmderdev / cmder

Lovely console emulator package for Windows
https://cmder.app
MIT License
25.81k stars 2.02k forks source link

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

Open notastudio opened 1 year ago

notastudio commented 1 year ago

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

chrisant996 commented 1 year ago

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

DRSDavidSoft commented 1 year ago

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

svezr commented 1 year ago

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