Repository navigation
fix(windows): let the bundled coreutils own the shell tree (niubash#346) - #649
Merged
Merged
Conversation
niubash#346: WinuxCmd's native_path now resolves the shell namespace itself (shell_tree_to_native_w mirrors shell_path_to_windows), so a posix_aware child gets /usr/bin, /etc, /tmp, /home and /mnt/X VERBATIM instead of the pre-translated native spelling and renders the POSIX face — readlink -f and realpath now agree with the spelling-preserving pwd, and the engine no longer re-imposes the native form on the one class that can resolve it. Every other child class (native exes, cmd, MSYS/Cygwin tools) is untouched and still resolves the same roots through the engine map; drive forms (/d/x, /cygdrive/d/x) keep the rubash#592 translation so the shipped toolchain always receives a spelling it can open. Requires a WinuxCmd release carrying the shell-tree layer: bump niubash's scripts/release/winuxcmd-pin.json before this ships in a release.
This was referenced Oct 17, 2026
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.
niubash#346. WinuxCmd's
native_pathnow resolves the shell namespace itself (shell_tree_to_native_wmirrorsshell_path_to_windows), so the engine no longer needs to re-impose the native spelling on the one class that can resolve it:posix_awarechild (the bundled WinuxCmd applets) gets/usr/bin,/etc,/tmp,/homeand/mnt/Xverbatim and renders the POSIX face —readlink -fandrealpathnow agree with the spelling-preservingpwd;cmd, MSYS/Cygwin tools) is untouched and still resolves the same roots through the engine map, sols /usr/bin | wc -lkeeps working;/d/x,/cygdrive/d/x) keep the rubash#592 engine translation, so the shipped toolchain always receives a spelling it can open.The predicate (
windows_shell_namespace_argument) is the shell-tree class only — virtual roots, the temp namespaces,/home,/mnt/X, the bare/and/dev/*— and is pinned by a shape-class test.Dependency
Do not merge before a WinuxCmd release carries the shell-tree layer. The niubash pin
scripts/release/winuxcmd-pin.json(currentlyv1.1.7) must be bumped in the same niubash release. With the pre-shell-tree WinuxCmd,ls -d /usr/binfails.Refs unixwin/WinuxCmd#1185, unixwin/niubash#346.