Repository navigation
fix(windows): normalize prefix TMPDIR at native child boundary - #446
Merged
Merged
Conversation
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.
命令前的
TMPDIR=/c/... command会覆盖apply_child_environment已完成的路径转换,导致原生 Windows 子进程仍收到/c/...。本 PR 在这一步复用现有child_env_value,使结果为C:/...。Fixes #445.
这是 unixwin/niubash#162 / 6d74c86 的补充修复,保留现有 shell-only TMPDIR 默认值策略及 shell 内路径表示;其他变量不变。
验证(Windows x64,基于 master 8d8c66a):
cargo test --test native_tmpdir_prefix --test issue162_tmpdir_child_boundary:8 项测试通过。cargo fmt --check、git diff --check。@caomengxuan666 请审阅这个原生子进程边界遗漏。