Repository navigation
Honor mixed-case Path overrides when running commands on Windows - #762
Open
Gambit-Checkmate wants to merge 1 commit into
Open
Gambit-Checkmate wants to merge 1 commit into
Gambit-Checkmate wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #761. On Windows,
.envcontainingPath=...orpath=...can produceCommand not foundwhile the identical value underPATHruns the command. Windows environment names are case-insensitive, but the dictionary used for explicit command lookup preserves both the inherited uppercase key and the added mixed-case key.Normalize the added names to uppercase on Windows before merging into the effective environment and looking up PATH. Leave POSIX name handling unchanged. Add native process tests using a harmless copy of cmd.exe with a unique name: these avoid batch-file shell lookup masking the bug. Further subprocess controls verify ordinary variables and
--no-overrideon both case-sensitive and case-insensitive platforms. README/changelog updated.Validation on Windows / CPython 3.13.13:
printenvuse the installed Git for Windows utility on PATH. Package coverage is 88%; subprocess execution is not included in that single-process coverage measurement.Checked #730/#742 (effective PATH lookup) and #749 (failed lookup fallback). This fixes key canonicalization before that lookup; it does not change fallback or PATHEXT behavior. The issue was reported with an independently run native Windows reproduction before editing.
AI assistance: OpenAI Codex (GPT-6) prepared the investigation, implementation and validation under the account owner's contribution task. No production usage or independent human review is claimed.
Hosted validation on
3c0102eaa3fee464421db4ef79f40d89ca5a542e: Run Tests 46327730170 completed successfully, including Ubuntu CPython 3.10–3.15, 3.15t and PyPy 3.11, and native Windows CPython 3.10/3.15.