Repository navigation
fix(executor): fold the command stem's ASCII case in PATH lookup (#999) - #1000
Merged
Merged
Conversation
System32 ships PING.EXE / NETSTAT.EXE / TRACERT.EXE / HOSTNAME.EXE; the rubash#799 byte-exact stem contract made lowercase ping/netstat/tracert unreachable (owner live report on 1.4.1/1.4.3, PING uppercase resolved). The fold arm now compares the stem ASCII-case-insensitively (owner ruling: parity with CMD/PowerShell/msys — the #799 harvest hang is accepted again as the price of Windows parity). Byte-equal spellings still win within a directory; extensionless on-disk names stay byte- exact; the resolved spelling is always the on-disk one. tests/issue799_command_name_case_regressions.rs rewritten for the relaxed contract, with a new System32-uppercase regression (PING.EXE + NETSTAT.EXE reached as ping/ping.exe/netstat). Fixes #999
caomengxuan666
added a commit
that referenced
this pull request
Oct 22, 2026
- finalize the 10-22 batch into [1.4.3]: the command-stem ASCII case fold (#998/#1000), the interactive ${v^^} crash fix (niubash#503), cli_tests isolation (#996), the no-IFS short-circuit re-land (#995/#1002), and the assoc/signal/test-bench perf batch - backfill the missing [1.4.2] and [1.4.1] sections from the tag boundaries (the bump-only releases left them unwritten) - PROJECT version 1.4.2 -> 1.4.3
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.
Summary
ping/netstat/tracertwerecommand not foundon every live install: System32 ships those applets with UPPERCASE on-disk names (PING.EXE,NETSTAT.EXE,TRACERT.EXE, alsoHOSTNAME.EXE), and the rubash#799 byte-exact stem contract rejected every lowercase invocation (owner:PINGuppercase resolved,pingmissed;whichfound it whilecommand -vdidn't — the two faces disagreed).Relaxes the fold arm to compare the stem ASCII-case-insensitively, per the owner ruling:
rlaunching an unrelatedR.exe) is accepted again as the price of that parity — byte-exactness was the overreach.)Test plan
tests/issue799_command_name_case_regressions.rsrewritten for the relaxed contract; newlowercase_invocation_reaches_uppercase_disk_nameregression (PING.EXE as real PE + NETSTAT.EXE, reached asping,ping.exe,netstat) — 5/5 greencargo test --lib executor::path72/72 (rewritten TOOLB/GHOST_TOOL staleness assertions)command -v ping→/c/Windows/system32/PING.EXE,ping -n 1 127.0.0.1executes, rc 0Note:
bash.exe(thin forwarder to the installed host shell) keeps reporting the installed engine's behavior until niu rebuilds with this — engine-side fix only.Fixes #999