-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spurious "/title" in initial command line #2820
Comments
@duncairn Can you please attach your ConEmu.xml or user_ConEmu.xml in Cmder so we can investigate? Firstly please check if the file that you attach contains the ESP32 IDF task, thanks. |
ConEmu.xml attached. |
UPDATE: never mind -- the |
Yes :) |
|
I would have put this down to cmd parsing the quotes a bit funnily, but there are two things that caused me to think it's not that:
I changed the command line to call a simple test.bat instead:
The contents of test.bat are: The result of the new version Cmder.exe: And the old version Cmder.exe: That, to me, implies that something has changed in Cmder.exe to cause this. Could it have been a side effect of #2752 (comment) |
@DRSDavidSoft this is a bug in the Cmder launcher: Here is the code: CmderLauncher.cpp @@ -427,14 +428,19 @@
if (!streqi(cmderTask.c_str(), L""))
{
swprintf_s(args, L"%s /run {%s}", args, cmderTask.c_str());
}
+ if (!streqi(cmderTitle.c_str(), L""))
+ {
+ swprintf_s(args, L"%s /title \"%s\"", args, cmderTitle.c_str());
+ }
+
if (cfgRoot.length() != 0)
{
swprintf_s(args, L"%s -loadcfgfile \"%s\"", args, userConEmuCfgPath);
}
if (!streqi(cmderConEmuArgs.c_str(), L""))
{
swprintf_s(args, L"%s %s", args, cmderConEmuArgs.c_str());
} But the ConEmu documentation states about the So the Cmder launcher is appending Depending on what |
Thanks very much, @chrisant996 |
@chrisant996 Hi there, thanks for the investigation and the fix, this issue has been closed by #2806. Sorry I've been super busy these couple of weeks, will be back for the other fixes soon. |
Version Information
Cmder Edition
Cmder Full (with Git)
Description of the issue
I have a task which initially calls a setup .bat file.
-cur_console:d:G:\ESP32\idf4.2\esp-idf cmd /k ""G:\ESP32\dev.espressif\idf_cmd_init.bat" "G:\Python" "G:\Tools\Git\cmd""
Within that file is the following line:
if "%~2"=="" (
If I call Cmdr with that task as the argument (that is, this is the initial task) the .bat fails with "The syntax of the command is incorrect" at that line. The displayed output from the .bat is:
G:\ESP32\idf4.2\esp-idf>if "G:\Tools\Git\cmd"" /title "Cmder"=="" (
If I start Cmdr with the default task, and then start this task in a new tab, it works perfectly and the output of that line is:
G:\ESP32\idf4.2\esp-idf>if "G:\Tools\Git\cmd" == "" (
If I switch Cmder.exe for a previous version (V1.3.14, which is what I used before) there is no problem.
How to reproduce
No response
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: