Repository navigation
fix(executor): #850 — fold /cygdrive/<letter>/... to the drive letter for in-shell faces - #893
Merged
Merged
Conversation
… for the in-shell faces rubash's in-shell normalization (shell_path_to_windows) had a /mnt arm but no /cygdrive arm, so `cd /cygdrive/d/repo`, `test -f`, `[[ -d ]]`, `source`, and redirect targets all returned ENOENT for a path the bundled winuxcmd applets (ls/cat/cp — whose normalize_api_operand_w already folds /cygdrive/d/... into /d/...) resolved fine. Same path, two answers depending on which layer handled it. Add a /cygdrive/ branch parallel to the /mnt/ one: exactly /cygdrive/<letter> or /cygdrive/<letter>/... maps to <letter>:\ (or the drive's subdirectory). All other /cygdrive* spellings fall through to the shell-root resolution, same as before. Regression: cygdrive_forms_resolve_across_in_shell_faces exercises cd, test -d, [[ -d ]], redirect write, and test -f+cat on one scratch dir. Existing path-contract tests (native_core, posix_forms, verbatim) and issue566 (bare drive root) stay green.
Contributor
|
欢迎!这是你的第一个 PR 🎉 请确认已跑过本地测试套件;CI 通过后维护者会 review。 |
Member
独立评审结论:APPROVE-WITH-NITS(评审代理独立复验:自建克隆 + worktree 复现与修复对照(master 红 → 分支绿,同一条 /cygdrive/c/... 路径)
新守卫与 #1245 语义逐字对齐(恰 回归与审计
NIT(不阻塞)
不合并(按评审纪律由维护侧执行)。 |
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.
Closes #850.
shell_path_to_windowshad a/mntfolding arm but no/cygdrivearm — so the in-shell faces (cd,test -f,[[ -d ]],source, redirect targets) ENOENT'd a path that the bundled winuxcmd applets (ls/cat/cp—normalize_api_operand_walready folds/cygdrive/d/...→/d/...) resolved fine. Same path, two answers by layer.Added a
/cygdrive/<letter>arm parallel to/mnt: exactly/cygdrive/Xor/cygdrive/X/...maps toX:\(or its subdirectory); every other/cygdrive*spelling falls through unchanged. Verified the five in-shell faces (cd,test -d,[[ -d ]],test -f, redirect write+read) all resolve a scratch dir through the fold, plus barecd /cygdrive/dand the sibling/mnt//dforms unchanged.Regression
cygdrive_forms_resolve_across_in_shell_facespins all five faces on one scratch dir; path-contract suites (native_core, posix_forms, verbatim) + issue566 stay green.