cmderdev / cmderdev/cmder

[Bug] Issue with Cmder's first run when the PATH env variable contains double quotation (") character

Open
#2,999 1 comment 0 reactions 1 assignee View on GitHub

@DRSDavidSoft is already working on this.

Since May 17, 2025.

🐛 Type: Bug
Dominant language
PowerShell
Stars
27k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

Version Information
Cmder version: 1.3.25
Operating system: windows 10 22H2
Description of the Issue

When starting Cmder, an error message appears that says: "it should not be here..." followed by several system environment PATH variable entries. Additionally, the ls and pwd commands fail with an "error not found" message.

Upon further investigation, I found that one of the PATH environment variable entries contained a double-quoted string. After removing the double quotes from that entry, Cmder initialized correctly.

It seems this issue affects Cmder only during its initial setup. Once Cmder initializes successfully, it can start normally in subsequent runs, even if the PATH variable contains quoted entries.

Steps to Reproduce
  1. Add a double-quoted string to one of the PATH entries in the environment variables.
  2. Start Cmder for the first time on the computer.
  3. Observe the error during initialization.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.