You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[path][P2] POSIX absolute-path operand translation drifts by execution context: sed/du fail inside for-loops/subshells, fine at top level #592
niu -c 'for i in 1; do sed -n 1p /d/repo/rubash/Cargo.toml; done' -> ENOENT; the same command without the loop succeeds. find | xargs sed -i and find -exec sed fail down the chain. grep/wc/head carry their own POSIX layer and are fine; sed/du (no self-translation) fail in script contexts. __RUBASH_ARGV_DIALECT=legacy un-breaks it, so the pre-translation gate is context-sensitive. Related: #1170 (WinuxCmd-side /d/ gaps). Found in the 1.4.0 real-world sweep — the for/xargs + absolute-path + sed combo is a daily driver.
Scope extension from a real agent incident (2026-10-13): the translation gap is not limited to sed/du in loops.
New datapoint — git worktree add /d/repo/niubash-wt-291 ... issued from niu created the worktree at D:/d/repo/niubash-wt-291 (the /d/... operand was resolved as current-drive-root-relative by the native git), while git -C /d/repo/rubash status translates fine. So the pre-translation layer is parameter-position and/or existence sensitive: -C <existing path> translates, worktree add <new path> does not.
Implications:
Every external command that takes a to-be-created path operand (worktree add, mkdir, tee, cp dest, output redirects are fine but argv-based dests are not) can land at the wrong drive-root location — silently.
niugit is Windows-native by adjudication (no MSYS layer, unlike Git for Windows which digests /d/... itself), so the rubash pre-translation layer is the only place this can be fixed.
Repro hint for the fixer: compare git -C /d/repo/rubash status (translates) vs git -C D:/repo/rubash worktree add /d/repo/wt-test branch (does not) on current master.
Activity
caomengxuan666 commentedon Oct 13, 2026
Scope extension from a real agent incident (2026-10-13): the translation gap is not limited to sed/du in loops.
New datapoint —
git worktree add /d/repo/niubash-wt-291 ...issued from niu created the worktree at D:/d/repo/niubash-wt-291 (the/d/...operand was resolved as current-drive-root-relative by the native git), whilegit -C /d/repo/rubash statustranslates fine. So the pre-translation layer is parameter-position and/or existence sensitive:-C <existing path>translates,worktree add <new path>does not.Implications:
Repro hint for the fixer: compare
git -C /d/repo/rubash status(translates) vsgit -C D:/repo/rubash worktree add /d/repo/wt-test branch(does not) on current master.fix(path): POSIX drive-form operand pre-translation covers every chil…
docs(changelog): fold the post-0d99ae2c wave into the 1.4.0 section (#…
docs(readme): captured artifacts for quickstart and identity, restruc…
docs(readme): path-dialect copy to the unixwin#748/unixwin#779 genera…
docs(contract): sync windows-path-contract to the unixwin#748/unixwin…