Skip to content

docs: state plainly that niu has no MSYS runtime - the labels are a persona - #248

Merged
caomengxuan666 merged 1 commit into
masterfrom
docs/no-msys-clarification
Oct 10, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
docs/no-msys-clarification

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Motivation

niu's Windows identity surfaces are MSYS-labeled (uname -s -> MSYS_NT-..., $OSTYPE = msys, $MACHTYPE = x86_64-pc-msys), but we have no MSYS runtime at all — no msys-2.0.dll, no cygwin1.dll, no POSIX->Windows argv conversion. The labels are the compatibility persona from rubash#154, added so ecosystem scripts that gate on MINGW*|MSYS*|CYGWIN* / OSTYPE = msys pass. The docs should not extend that disguise: this PR documents the persona as a persona.

What changed

One new section in docs/src/platform-support.md — "What niu is not: no MSYS runtime":

  • niu is a pure native Windows build; the MSYS labels are a compatibility persona (rubash#154), and a default rather than a fact (RUBASH_IDENTITY=native flips uname -s to Windows_NT, $MACHTYPE to x86_64-pc-windows).
  • A measured behavioral-boundary table: POSIX-form argv arrives verbatim (cmd /c echo /d/repo prints /d/repo); git -C /d/repo ... fails — pass D:/repo; no MSYS2 root filesystem (/ is the drive root, /etc carries only winuxcmd's mtab shim); no perl, and awk is winuxcmd's own native build, not MSYS2's.
  • Scripts depending on the MSYS runtime rewriting argv on the way to a native program will behave differently under niu than under Git Bash — deliberately with no MSYS_NO_PATHCONV-style switch, because there is nothing to switch off.
  • One-line orientation: Git Bash = MSYS2 runtime + GNU bash; niu = native engine + compatibility persona.

Every claim in the table was reproduced against the released build before being written down. README (en/zh) was checked and left untouched: all of its MSYS/Git Bash mentions are already explicit "not MSYS / not Git Bash" statements, so there is nothing to correct there.

Upstream sync reminder (rubash)

The persona's code comments live in rubash src/executor/identity.rs, outside this repo. rubash should get a matching comment/Docs note so the "labels are a persona, not a runtime" statement is stated at the implementation site too, not only here.

No code changes; docs only.

…ersona

niu prints MSYS labels (uname -> MSYS_NT, OSTYPE=msys, MACHTYPE
x86_64-pc-msys) but is a pure native Windows build: no msys-2.0.dll, no
cygwin1.dll, no POSIX->Windows argv conversion. Document the persona as
a persona (rubash#154), list the measured behavioral boundary (POSIX
argv spellings arrive verbatim; /etc is a real Windows dir with only
mtab; no perl; awk is winuxcmd's own native build), and give the
one-line orientation: Git Bash = MSYS2 runtime + GNU bash; niu = native
engine + compatibility persona.
@caomengxuan666
caomengxuan666 merged commit 9d131ff into master Oct 10, 2026
3 of 9 checks passed
@caomengxuan666
caomengxuan666 deleted the docs/no-msys-clarification branch October 10, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant