Repository navigation
fix(path): operand-boundary residuals — less, unix2dos family, dos2unix write side, cygpath -u, which (#1385) - #1421
Merged
Conversation
… shared fold (#1385) The #1364 audit's remaining faces, minus cpio (its archive-member names are a different operand class and get their own issue): - less/pager: file operands open through normalize_api_operand instead of a raw ifstream. - unix2dos/u2d/dos2unix: the read side folds; dos2unix's write side now writes the folded spelling instead of re-opening the raw operand. - cygpath -u: prints the shell-namespace mount name for payload paths via the new native_path::shell_tree_display accessor (with the /home alias declined — cygpath mirrors on-disk layout), instead of folding the payload drive to /z/. - which: the operand's directory part folds through the boundary, with the POSIX-absolute parent judged on its leading separator ("/ra-tool"'s parent is "/" even though fs::path calls it drive-relative). Every face carries a regression: bare "/" lands in the payload root, /c-spellings are unchanged, relative operands untouched.
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 #1385 (except the cpio face, which the issue itself scopes to a separate issue — archive-member names are archive content, not argv operands).
Six residual faces from the #1364 operand-boundary audit now route through the shared fold:
normalize_api_operandinstead of a rawstd::ifstream.<payload>\sub→/sub) via the newnative_path::shell_tree_displayaccessor instead of folding the payload drive to/z/. The accessor declines the /home alias for this caller — cygpath mirrors on-disk layout, soC:\Users\...keeps its drive spelling (three pre-existing cygpath pins caught this during verification)./ra-tool's parent is/even thoughfs::pathcalls it drive-relative on Windows).Every face carries a regression: bare
/lands in the payload root,/c-spellings unchanged, relative operands untouched. Full suite on the branch: 3350 passed, 0 failed (baseline exclusions only). i18n delta: none.