更新日志
聚合自各仓库 CHANGELOG · 拉取于 2026-12-02 · 每产品显示最近 3 个版本
-
niubash 1.5.3 2026-12-02
Fixed
- Engine and bundled-commands line rises to 1.5.3: the rubash pin takes rubash master `851130ce` (v1.5.3 — the 40-issue GNU Bash 5.3.20 differential wave, see the rubash changelog), the ruline pin stays at ruline main `ff34aee5` (ruline main has advanced to `6f103c0a` since, but that tree differs from the pinned tree — the ruline#69 rename completion and the ruline#66 conformance-probe includes — so the editor code itself is unchanged), and the bundled WinuxCmd line is 1.2.4 (the winuxcmd-pin tag/digest backfill lands in the ignition sequence, after the WinuxCmd v1.2.4 publish). Also in this win
- Field reports from the shipped 1.5.2 closed: the grep-pipeline hang under IDE hosts (#1135 — fixed by deleting the host's process-stdin bridge outright, #1138), the gradle run that left niubash never exiting (#1122, #1124), the installer PATH entry that was swept on uninstall but never added (#1140, #1141), and the bundled `mkdir -p` drive-path stray directory (#1101). The exit-freeze half of the psmux Ctrl+D report (#1129) is wired to rubash's detached procsub finish (#1132).
- The niugit credential seed now judges the PATH niu actually runs with: the #1067 seed (host Git Credential Manager first, bundled wincred as fallback) was gated on the pre-injection PATH, so on real machines it was vetoed outright or planted over the user's own git — the gate now rebuilds the effective PATH (#1112, closing #1109/#1110; the inherited-PATH half is #1103, closing #1100). Also closed in this window: the long-standing Git Bash drop-in umbrella (#993/#996) after a face-by-face closing audit, its one surviving product question split out as #1126.
Full list
- All 13 issues closed in the window (2026-11-25 – 12-01) that are new to this release (one further closure in the window, #1104, was already listed under 1.5.2), grouped by theme (mechanical classification, one group per issue; titles verbatim):
- #### Startup & configuration (3)
- #1100 [host] credential seed planted even when user git is first on PATH (issue1067 pin fails on real host, CI green)
- #1109 niubash给niugit播种credential helper时漏掉git for windows的ucrt64前缀,导致探测不到宿主的git credential manager
- #1110 给niugit播种credential helper的逻辑在装了外部git的机器上永远都会被整体跳过,无论niubash里默认用的git是不是外部git
- #### CI & tests (1)
- #1106 [ci] host_contract pins have never executed in CI — they need a full staged tree
- #### Build, packaging & updates (2)
- #1002 [bug][installer][niugit] 分发不带 env.exe:#!/usr/bin/env bash shebang 的 git hook 全部无法 spawn(no env found on PATH)
- #1140 installer: AddAppDirToUserPath never adds {app}\winuxcmd\bin (uninstall sweeps an entry that was never added)
- #### Community (2)
- #633 合作邀请
- #1115 请问有交流群吗
- #### Other (5)
- #993 Git Bash drop-in report: `set -u` + `${X:=v}`, permission model, `cmd //c`, `command -v` for emulated commands, `/dev` devices
- #996 [tracking] #993 拆分追踪:12 节 + S1–S11 按面路由(rubash/winuxcmd/host),文档批(§2/§8/§9/§12)已定论为有意分歧
- #1101 [bug][winuxcmd] 脚本里 mkdir -p 接盘符绝对路径时,cwd 会多出空目录 "D"+U+F03A(bundled WinuxCmd 1.2.2)
- #1122 niubash中运行gradle任务,结束后ai agent仍认为niubash的任务没结束
- #1135 grep and pipe to a different grep (or head) hangs
-
rubash 1.5.3 2026-12-02
修复
- GNU 差分修复波(2026-11-26 – 12-01):窗口内本仓共关闭 45 单,其中 5 单(#4169、#4188、#4189、#4190、#4193)关闭于 11-25、修复已含于 v1.5.2 出货树 `ec14a903`(补打 tag 点),不重复计入;本版新增 40 单,与 [1.5.2] 及更早各版清单逐号核对零重叠(同期本仓合并 PR 79 张),全部以 GNU Bash 5.3.20 为规范源、经真 oracle 逐形差分定谳后修复,每条均带以 issue 号命名的回归钉。按主题机械归类(每单只计一族):fd/重定向 10、引号与词法 2、执行与子进程 2、declare/readonly/local 2、算术 2、参数展开 2、作业控制与 wait 2、case 1、补全 1、heredoc/herestring 2、数组/assoc 2、procsub 4、其他 8,合计 40(完整清单见下)。冻结头为 master `f8392aaf`(API 台账对 #4318 的合入点)。
- 推进波要点:#4296 退出路径同步执行 persistent 输出 procsub 体、可无界阻塞退出——修复以显式 opt-in 门把收尾体移交宿主二进制的游离重执行(#4298,niubash 侧 #1132 接线),与 GNU 退出仅约 10ms 对齐。夜间找茬收割的重定向行走差分波一次清完六单(#4300、#4301、#4303、#4304、#4310、#4315,经 #4302、#4306、#4309、#4314、#4316、#4317 合入):算术错误在重定向目标里不再双重报错或误杀脚本、动态 fd 变量行走在失败后不再续绑或漏绑、模拟 `cat` 改走共享 fd-1 偏移。#4288 修边界死亡通知后 `wait` 仍收割到 137 的真分歧(应为 no such job / 127)。外部报告面:ShiomiHC 的 #4126(模式内引号字符保义)与 #4272(`compgen -G` 双面失配)均已修复关单。#4299 恢复 census 排除集,把主干 census 基线从 30 名收回 7 名;#4318 与 niubash #1142 成对补齐 API 台账(`rubash::api::HistoryProvider` 拼写),niu-canary 复绿。本波残差另立 #4305(追踪器,含 #4311、#4312、#4313)与 #4307 跟踪。
完整清单
- 窗口(2026-11-26 – 12-01)内关闭、本版新增的 40 单按主题机械归类如下(每单只计一族,标题逐字取自 issue 原文):
- #### fd/重定向(10 单)
- #4043 [gnu-baseline] exec-walk save slots are not kernel-materialized at fd-table saturation — GNU EMFILE dup diagnostic cannot arise
- #4045 [gnu-baseline] async respawn leaks the env-stamp carrier handle into the child at fd 12
- #4091 [longtail G7] fd save/restore aliasing: writes to a saved fd land in the file fd 1 was redirected to (exec 5>&1, 1>file, 1>&5)
- #4225 [bug] issue1838: shell-level close of adopted fd aborts with IO Safety violation (SIGABRT)
- #4300 [bug] arithmetic error in redirect target double-reports as ambiguous redirect and aborts script
- #4301 [bug] emulated cat writes stdout at EOF instead of the shared fd-1 offset, so its output is overwritten when the parent redirects the child shell's stdout to a file
- #4303 [bug] compound redirect with arithmetic error in target double-reports and loses rc=1
- #4304 [bug] dynamic fd-var redirect walk keeps binding later entries after an arithmetic error in an earlier target
- #4310 Dynamic fd-var walk leaks earlier binds for disk commands on open failures
- #4315 case redirect: failglob verdict raised but the literal target is still opened
- #### 引号与词法(2 单)
- #4195 Brace expansion: after a single-quoted span ending in a backslash, quoted braces expand (`'\'"x"'{a,b}'` gives two words), so `eval` can run a whole command twice
- #4285 Parser leniency: 'echo )' inside an if body is silently accepted (GNU: syntax error rc 2)
- #### 执行与子进程(2 单)
- #4229 x=$(</dev/stdin) at the top level of -c / a script blocks forever, whatever fd 0 is (residual of #3964)
- #4271 program_execs_directly MZ arm is unconditional, asymmetric with is_enoexec_candidate
- #### declare/readonly/local(2 单)
- #4160 declare-family readonly compound: -g and same-scope forms over-report and fail to abort (DISCARD discipline)
- #4161 declare against a rejected local copy reports the wrong prolog category for the bare bind layer
- #### 算术(2 单)
- #4253 [bug] declare -i statement-level += does not wrap on overflow
- #4254 [bug] arithmetic evaluation error diagnostic bypasses function stderr redirect
- #### 参数展开(2 单)
- #4126 `${x//pat/…}`, `${x#pat}`: a quoted or escaped `]`, `-`, `!`, `^`, `#`, `%` keeps its pattern meaning
- #4273 [bug] IFS="" (null): "$*" embedded in a quoted command argument joins with a space instead of no separator
- #### 作业控制与 wait(2 单)
- #4279 [bug] wait death notice for SIGKILLed background job has an extra space after `line N:`
- #4288 [gnu-baseline] 边界死亡通知后 wait %1 仍收割到 137,应为 no such job / 127
- #### case(1 单)
- #4227 [bug] case x in ;; esac reports wrong token: unexpected token 'esac' instead of ';;'
- #### 补全(1 单)
- #4272 `compgen -G` returns nothing for a pattern without glob characters, and nothing at all under `set -f` (GNU returns matches in both cases)
- #### heredoc/herestring(2 单)
- #4166 Heredoc EOF-warning face: three gaps in the quoted-comsub/piped neighbourhood (outputs correct)
- #4197 [bug] heredoc EOF warning line attribution for compound-command redirect words uses the legacy seed
- #### 数组/assoc(2 单)
- #4200 [bug] Compound array element mixing quote families is a syntax error: f=('a'"b"'c)
- #4248 [gnu-baseline] compound assignment element: ${x:-$'…'} inside array element is stored literally, not expanded
- #### procsub(4 单)
- #4046 respawn 孩子中 procsub plumbing 占用 fd 致 move 误判成功(生产者 fd 布局)
- #4088 [longtail G3] coproc lifecycle residuals: dead coproc stays bound after pipe read; child group stalls after dead write; coproc simple command rejects procsub word
- #4255 [bug] spurious write error on unread /dev/fd write end in process substitution
- #4296 [bug] 退出路径同步执行 persistent output procsub body,退出可被无界阻塞(GNU 退出仅 ~10ms)
- #### 其他(8 单)
- #4036 set -x: xtrace line and diagnostic interleave in opposite order to GNU
- #4089 [longtail G4] cwd ghost: cd by path into a recreated directory does not adopt it (reads stay on the dead inode)
- #4120 [gnu-baseline] chdir: error retrieving current directory 诊断只印 1 行,GNU 印 2 行(毒化 cd . 面)
- #4228 [bug] Executor::drop restores synced thread locale during TLS teardown and aborts (0xc0000409)
- #4247 [gnu-baseline] fc: first-command fc -l 0 reports Erange where GNU lists (index model lands last_hist=-1 on sole current entry)
- #4266 this_command_name lifecycle: for/select loop heads do not clear it (GNU sets NULL)
- #4270 parameter_transform_tests parallel race: tests share a fixed path under target/
- #4274 [observation] 并行 in-process ${PS@P} 探针高频 abort:IO Safety violation: owned file descriptor already closed(macOS)
-
WinuxCmd 1.2.4 2026-12-02
Added
- wpm expose / unexpose (#1835, PR #2012): wpm gains the post-hoc exposure switch — `wpm expose` (re)builds an installed package's entry links in `winuxcmd\bin` and `wpm unexpose` withdraws them, so a package installed without exposure can be exposed later, and an exposed one withdrawn, without a reinstall. This is the A side of #1844, split off and landed on its own.
- wpm keeps `winuxcmd\bin` on the user PATH (#2013, PR #2014): install and expose now ensure the entry bin directory is on the user PATH by default (`--no-path` opts out; `links rebuild` joins only through its explicit `--path` flag, so the niubash installer's unconditional rebuild call can never write the PATH against a declined installer task). The write side the niubash#313 record assumed had in fact never existed; the uninstaller already swept both entries.
Changed
- cat and uniq run on the rust2 library (#1488; PRs #1882, #1877): both commands are wired to their Rust library ports through the bridge. The uniq wiring also fixes `+NUM` after `--` being taken as a skip-chars count instead of a file operand (PR #2009; the Rust face of #1878 — that issue stays open on its C++ face).
Fixed
- cp -n diagnostic (#1879, PR #1978): `cp -n` now prints GNU's "not replacing" diagnostic and returns GNU's exit status instead of silently skipping with rc 0 (I_ALWAYS_NO per pristine GNU coreutils 9.4).
- cp --parents drive designator (#1980, PR #1992): `cp --parents` with a backslash drive-absolute destination no longer leaves a bare `C:` directory in the current directory.
- Path layer: drive-absolute, `..` and colon operands (#1870, #1872, #1874; PRs #1875, #1873, #1876): `mkdir -p` anchors drive-absolute operands at the drive root instead of resolving them drive-relatively; `..` operand components are collapsed at the api_path boundary so the fs applets (stat/touch/fmt family) accept them; literal-colon operand components are carrier-encoded in the canon layer instead of failing.
- ls Unicode output and quoting (#1883, #1890; PRs #1887, #1893): printable Unicode is no longer shown as escape sequences when no POSIX locale is in play, and shell-escape quoting merges adjacent $'...' segments into one segment in the C locale like GNU instead of segmenting per character.
- realpath -m / readlink -m relative `..` (#1908, PR #1918): a relative `..` under `-m` ascends from the current directory again instead of never going above it.
- Bracket ranges in the shared regex (#1911, PR #1919): ranges after the first in a character class are ranges again — `[A-Za-z]` matches `b` — across grep, sed and find.
- od -w non-multiple width (#1943, PR #1951): a `-w` width that is not a multiple of the format unit size now warns and falls back to the format-size LCM like GNU instead of being silently accepted.
Full list
- All 12 issues closed in the window (2026-11-25 – 12-01) that are new to this release (two further in-window closures are not listed: #1869, whose fix PR #1871 is the v1.2.3 tag target and so already shipped in 1.2.3, and #1953, closed as not planned — a tracking note with no fix shipped), grouped by command/theme (mechanical classification, one group per issue; titles verbatim):
- #### cp (2)
- #1879 [bug] cp -n: skips without GNU's "not replacing" diagnostic and returns 0
- #1980 cp --parents with a backslash drive-absolute destination leaves a `C:` directory in the current directory
- #### ls (2)
- #1883 ls 中文显示成了转义字符
- #1890 [bug] ls shell-escape quoting segments $'...' per character in C locale (GNU merges one segment)
- #### mkdir (1)
- #1870 [mkdir] -p 接盘符绝对路径:同盘 cwd 下「D:/…」按盘符相对落盘(目标不建、cwd 长树),反斜杠写法又不建父级
- #### od (1)
- #1943 [bug] od: -w width not a multiple of the format unit size gets no GNU warning or fallback
- #### realpath (1)
- #1908 realpath -m / readlink -m: a relative `..` never goes above the current directory
- #### wpm (2)
- #1835 wpm 需要事后暴露/收回开关:已装包命令在 winuxcmd\bin 的补建与撤销(install -g 的正身)
- #2013 wpm: ensure winuxcmd\bin is on the user PATH (the niubash#313 write side does not exist)
- #### Cross-cutting & other (3)
- #1872 [bug] operands with a `..` component fail across fs applets (stat/touch/fmt family) — split from #1869
- #1874 [bug] applets fail on literal-colon operands: canon layer does not carrier-encode operand path components
- #1911 grep/sed/find: only the first range in a bracket is a range; `[A-Za-z]` does not match `b`
-
niubash 1.5.2 2026-11-24
Fixed
- Engine and bundled-commands line rises to 1.5.2: the rubash pin takes rubash master `ec14a903` (v1.5.2 — the 40-issue GNU Bash 5.3.20 differential wave, see the rubash changelog), the ruline pin takes ruline main `ff34aee5` (the ruline#67 rename merge; its tree is identical to the previously pinned `36d875ac`, so the editor code itself is unchanged), and the bundled WinuxCmd line is 1.2.3 (the winuxcmd-pin tag/digest backfill lands in the ignition sequence, after the WinuxCmd v1.2.3 publish). Also in this window: the crates.io rename chain completed on the code side (ruline#67, #1081, #1085 —
- Field reports from the shipped 1.5.1 closed: the drive-root `ls` failure (#1082, fixed on the WinuxCmd side as #1862), the skill bundle's stale version strings (#1083), the launcher's drive-root resolution of leading-`/` arguments (#1084), and the procsub/coproc early-reader write-error noise (#1079).
- PATH priority is bundled-first again, with one escape switch (#1050): the 1.5.1 directory promotion — the directory holding your git moved ahead of the bundled directories — is removed. Where that directory also carries other programs (a scoop shims directory holds `bash`/`sh` next to `git`), those programs silently shadowed niu's own bundled commands. By default the bundled directories now stay first. Set `NIU_USER_PATH_FIRST=1` to make your inherited `PATH` order win wholesale instead — your git, bash, grep, everything — with the bundled directories appended behind as a fallback.
Full list
- All 11 issues closed in the window (2026-11-22 – 11-25) that are new to this release (one further closure, #1063, was already listed under 1.5.1), grouped by theme (mechanical classification, one group per issue; titles verbatim):
- #### Startup & configuration (4)
- #1050 如何配置NiuBash使用已经安装的Git命令(比如 Git for Windows 或 scoop git)?
- #1061 [bug][winuxcmd] 随包 niu-git 无 credential.helper,非交互 HTTPS 凭据询问无限挂起
- #1067 #1061 B 面:随包 niu-git 无 credential.helper、也不继承宿主 GCM(私有仓凭据无来源)
- #1077 [setup wizard] journal/undo list omits the parked rc_sample when the rc slot was occupied
- #### CI & tests (2)
- #1089 check-rename-clean.sh: rubash version allowlist rots every release — make the lock check version-agnostic
- #1104 [bug][ci] issue1067 integration pins never actually run in CI — staging absent, six pins early-return green
- #### Documentation (1)
- #1083 [docs][skill] The skill bundle shipped with 1.5.1 still reports niubash 1.5.0 and also claims 1.4.4
- #### Build, packaging & updates (1)
- #1084 [skill] --target dir:<path> resolves POSIX paths against the current drive root, and installed state follows the cwd
- #### Other (3)
- #1079 A process substitution or coproc whose reader stops early prints `niu: stdout: write error: pipe closed by downstream reader`
- #1082 [BUG] `ls: cannot access '.': No such file or directory` on `/c` root drive path
- #1094 [Windowsl `niu-ctrlc-watch` busy-loops on queued non-Ctrl+C input while a foreground process sleeps
-
rubash 1.5.2 2026-11-24
修复
- GNU 差分修复波(2026-11-22 – 11-24):窗口内本仓共关闭 48 单,其中 8 单(#2810、#2828、#3965、#4001、#4002、#4059、#4060、#4080)已列入 1.5.1 清单、不重复计入,本版新增 40 单(四仓同期共关闭 61 单、合并 PR 91 张;四仓本版新增合计 51 单),全部以 GNU Bash 5.3.20 为规范源、经真 oracle 逐形差分定谳后修复,每条均带以 issue 号命名的回归钉。按主题机械归类(每单只计一族):fd/重定向 6、引号与词法 1、执行与子进程 1、declare/readonly/local 2、算术 3、参数展开 2、作业控制与 wait 1、case 1、补全 1、heredoc/herestring 5、数组/assoc 2、`[[ ]]` 2、procsub 6、trap 1、其他 6,合计 40(完整清单见下)。冻结头为 master `ce1eb288`(外部贡献者 jhermelink 的 #4171 合入点)。
- 推进波要点:外部报告面大部全清——ShiomiHC 第二批八单(#4125、#4127–#4133)与 xuangeyouneihan 的 #4138、#4149 均已修复关单(同批仅余 #4126 待作者返工)。其中 #4149 把 #684 的控制台行规程推广到进程内模拟 `cat` 的三个 stdin 读者(共享纯裁决单元 `veof_verdict` 与 `ConsoleLineDiscipline` 状态机,`read` 的两处内联裁决同步迁入、无第二走法);#4158 让进程内 `eval` 经普通重定向计划安装输入侧(绑定点在内建分发层,避开 `mapfile -C` 的 #3660 共享流绑定);#4159 在两处算术求值点结算 DISCARD 类重定向展开失败的 latch;#4171(jhermelink)剥除进程内管道阶段操作数的 blank guard 泄漏,与简单命令路径的物化契约对齐。本波残差另立 #4166、#4170、#4172、#4175 跟踪。
完整清单
- 窗口(2026-11-22 – 11-24)内关闭、本版新增的 40 单按主题机械归类如下(每单只计一族,标题逐字取自 issue 原文):
- #### fd/重定向(6 单)
- #4099 重定向词内 :? 参数错误对普通命令被误判整脚本致命(GNU 只判命令失败续行)
- #4131 A builtin's `> file` stays open after the builtin returns, so a pipeline started right after cannot open the file with read-only sharing
- #4146 Failed expansion with 2>/dev/null leaks fd 2 to /dev/null for the rest of the script
- #4151 Redirecting, `touch`ing or `cp`ing to `/dev/tty`, `/dev/stdin`, `/dev/stdout` or `/dev/stderr` creates regular `CON`, `CONIN$`, `CONOUT$` files in the current directory
- #4158 eval's own input redirections are silently dropped (output side fine)
- #4159 A DISCARD-class redirect expansion failure silently swallows the NEXT command in the list
- #### 引号与词法(1 单)
- #4132 [gnu-baseline] Sourced file: backquote body containing `<<` misroutes a later `exit` to the parent script (residual of #3962/#4018)
- #### 执行与子进程(1 单)
- #4149 行内Ctrl-D把提交行切开:子进程收到EOF,后半段被shell执行,提示符也不换行
- #### declare/readonly/local(2 单)
- #3970 [bug] declare 家族复合赋值不做 brace 展开:declare e=({1..3}) 只存 1 个元素(GNU 3)
- #4123 [gnu-baseline] declare/local compound assignment to readonly in function: missing function-named first diagnostic (follow-up to #2658)
- #### 算术(3 单)
- #2826 [perf] 算术求值缺通用编译缓存:每求值新建 parser,现以三条形状 fastpath 代替
- #4090 [longtail G5] errexit: arithmetic expansion error must DISCARD the command and continue (assignment / echo / [[ ]] faces)
- #4130 Assignment: `$(( … $(cmd) … ))` is stored as text when the RHS is quoted or not a lone `$(( ))`
- #### 参数展开(2 单)
- #4004 [gnu-baseline] double-quoted ${} span boundary: quoted } inside default ends span early, filename diverges from GNU
- #4068 [gnu-baseline] bad-substitution pre-scan discard skips word-internal comsub side effects
- #### 作业控制与 wait(1 单)
- #4097 wait after STOP+CONT+KILL must report 147 silently (currently 137 plus a Killed notice)
- #### case(1 单)
- #4031 [gnu-baseline] case 体在 $( 嵌套 placement 下被 case-pattern tracker 误读(#4026 钉文件自承残差)
- #### 补全(1 单)
- #4101 bind -x widget 只 unset READLINE_LINE 时 READLINE_POINT 被钳制到 0(应保持原值)
- #### heredoc/herestring(5 单)
- #4093 herestring to an external command: ${var:=word} in the herestring must not persist in the parent (child-context expansion)
- #4128 `"$( … )"`: a quoted `<<X` spanning lines appends 0x1c to the last word before `)`
- #4138 #1025 落下了heredoc
- #4140 Unterminated-heredoc EOF warning is deduplicated across distinct commands in one script
- #4141 Quoted comsub with piped heredoc leaks the delimiter line (with 0x1c) into output
- #### 数组/assoc(2 单)
- #4098 数组元素赋值不应用重定向(入向静默 rc=0、出向不建文件)
- #4102 导入 GROUPS 的元素面仍走 live 组数组(${GROUPS[0]} / GROUPS[0]=e)
- #### `[[ ]]`(2 单)
- #4125 `[[ =~ ]]`: `BASH_REMATCH` drops or rewrites the bytes 0x11, 0x17, 0x18, 0x1a, 0x1c, 0x1f
- #4133 [gnu-baseline] [[ =~ ]] under LC_ALL=C re-encodes subject bytes 0x80-0xff as UTF-8 (split from #4125)
- #### procsub(6 单)
- #3094 [design] process substitution yields /dev/fd/N: enumerated cases of where that path resolves and where it does not
- #4092 [longtail G8] compound procsub diagnostic reports the compound's own line instead of the ambient frame line
- #4103 /dev/fd procsub 管道同秒内建时 -nt/-ot 视 mtime 有严格序(GNU 视其相等)
- #4127 Windows: inside `<(…)`, `>(…)` and `coproc`, variables whose names differ only in case become one variable
- #4129 `>(…)`: the consumer ignores the fd 1 / fd 2 redirections around the command — its output escapes `$( )`, `{ …; } > file`, `2> file` and `exec >`
- #4135 `<(…)`: the producer ignores the fd 0 / fd 2 redirections around the command — its stderr escapes `{ …; } 2> file`, `$( … 2>&1)`, `f 2> file` and `exec 2>`
- #### trap(1 单)
- #4096 ERR trap: pipeline region adjudication in a subshell function reports the body line instead of the region (close-paren) line
- #### 其他(6 单)
- #2812 [perf] 测量专用构建变体:feature 门控的分配计数,计时与分配两轴分离
- #4094 empty HOME: cd ~ must fail with 'null directory'; pushd ~ / pushd -n ~ empty-expansion faces
- #4095 type -a under-reports ./ matches for repeated empty PATH elements (visit/fold accounting missing)
- #4105 Windows 原生路径转换改写导出 POSIX 路径(issue149 基线红)
- #4150 `mkdir -p C:/x` (or `/c/x`) creates a stray `C:` directory in the current directory
- #4154 env-value conversion (#4064) collides with the #149 verbatim export contract — boundary ruling needed
-
WinuxCmd 1.2.3 2026-11-24
Changed
- CMake 4.5 build wiring (#1865, PR #1867): the import-std wiring adapts to CMake 4.5's shipped model instead of the ≤4.4 experimental UUID table, which dead-ended into LNK1181 once the windows-2025 runner image rolled to CMake 4.5. #1865 stays open for the toolchain unpin retry once the image rolls again.
Fixed
- env -i empty-environment launch (#1837, PR #1841): `env -i` no longer fails to launch commands whose environment block reduces to a single empty entry (rc 126 was returned instead); the fix carries regression pins, and the env suite passes 54/54 with the captain-run GNU coreutils 9.4 end-to-end shapes matching.
- diff -r spurious command echo (#1861): recursive diff no longer prints a spurious command line for every compared file pair, including identical files; exit codes were already correct — the pollution was output-only.
- ls at a drive root (#1862): `ls` no longer fails with `cannot access '.'` when the process working directory is a drive root (the niubash #1082 field report).
- seq with huge equal arguments (#1860): `seq` no longer loops forever printing the value when start and stop are huge and equal; it prints the single line GNU prints.
Full list
- All 5 issues closed in the window (2026-11-22 – 11-24) that are new to this release (one further closure, #1847, was already listed under 1.2.2), grouped by command (mechanical classification, one group per issue; titles verbatim):
- #### diff (1)
- #1861 diff -r / -rq prints a spurious command line for every file pair, including identical files
- #### env (2)
- #1837 env: env -i fails to launch some commands with an empty environment block (rc126)
- #1840 env polish: child-block U+FFFD byte loss, message forms, stale env.md status
- #### ls (1)
- #1862 ls: cannot access '.' when the process cwd is a drive root
- #### seq (1)
- #1860 [bug] seq with huge equal args loops forever printing 1e21 instead of one line
-
niubash 1.5.1 2026-11-22
Fixed
- Deep-audit host fix wave (1.5.1-bound, 2026-11-04): seven non-interactive host findings fixed (#886) — including corrupt plugin-spec errors now naming the file and the cause; `$BASH_ARGV0` seed no longer clobbered by host startup and `NIU_COMP_WORDS` no longer duplicated (#887, with the engine-side compspec fixes in rubash #2756); frozen interactive config specs (`NIU_BINDKEYS`/`NIU_COMPDEFS`) re-applied on setup re-run (#891, closing #889/#890). The remaining host finding (#888, exported HISTFILE) is a recorded owner decision. Engine-side counterparts landed in rubash's deep-audit wave (see t
- Windows interactive login shells read `~/.niubashrc` again (niubash#1057): `--login`/`-l` (and the argv[0] `-` seed) no longer divert the interactive startup face onto the GNU profile chain — `niu --login -i` now sources the generated plugin loader and `~/.niubashrc` exactly like `niu -i` (`--rcfile` and `NIU_RC_POLICY` apply unchanged), restoring the standing contract "Windows accepts the flags with unchanged behavior (no login concept)". GNU shell.c:1833's "the login profile chain replaces the interactive-RC alternative" is a deliberate product fork on this face, not a GNU-alignment gap: on
- Engine and bundled-commands line rises to 1.5.1: the rubash pin takes rubash master `649b3be3` (v1.5.1 — the 703-issue GNU Bash 5.3.20 differential wave, see the rubash changelog), the ruline pin takes ruline main `4d0aefa8`, and the bundled WinuxCmd line is 1.2.2. Also in this wave: bind -x conhost chord dispatch and READLINE_POINT restore (#1065, closing #1063) and the env.exe distribution fix through the winuxcmd bundle (#1062).
Full list
- All 72 issues closed in the window (2026-11-03 – 11-22), grouped by theme (mechanical classification, one group per issue; titles verbatim):
- #### Completion (13)
- #830 has_compspec probe uses first whitespace token of the whole line — compspec silently bypassed on multi-command lines
- #831 library Shell::completion_probe diverges from the REPL — no bridge, no compdefs, empty state on one-shot shells
- #832 menu_open stand-down flag wired to only 2 of 6 completion menus — hinter paints over menus and Right accepts the ghost instead of navigating
- #833 poisoned completion_state lock silently freezes the completion snapshot forever; other lock poisonings go stale or respawn per-TAB
- #836 compdef_suggestions runs ahead of the compspec gate and merges into compspec-owned commands
- #838 $ alone completes nothing — variable completer bails on the bare prefix
- #840 state.behavior is write-once — mid-session NIU_COMPLETION_* changes never reach the completer
- #841 residue sweep: WINSH_ env var + ~/.winsh cache dir on the live completion path
- #845 completion cache keys omit inputs — stale values served across args, dirs, TTLs, and binary upgrades
- #849 setup re-apply re-sources the rc but never re-reads NIU_BINDKEYS/NIU_COMPDEFS — wizard-added declarations silently inert
- #851 staleness/quoting batch — exec_verdicts chmod-blind, effective_flags wrong token, compdef ignores match mode, pending-input drops non-ASCII, vi maps lose GNU C-x chords
- #918 [bug] Windows drive-letter words fail through complete_detailed under default COMP_WORDBREAKS (colon split strips the drive)
- #973 [plugin] complete-alias fixture entry unreachable: extension-less entry files are not enumerated as enable-able assets
- #### Interactive editing & display (6)
- #731 [feature] K3 翻译扩围(承 #630 余项):分类器扩围 + redraw-current-line + quoted-insert 投递臂
- #866 缩窗后编辑态 prompt 换行堆叠重印:resize→repaint 未原地重绘(niubash-runtime 共享层,1.4.4 与 master 同现)
- #882 [interactive] Per-keystroke FULL prompt repaint (erase-down + re-render) relies on Sync-2026 — terminals without it flicker on every key
- #927 [repl] TAB on an empty-word buffer inserts a literal tab instead of completing
- #974 [bug] unix 关标签页(SIGHUP + PTY 主端关闭)会话挂死不退出,整会话历史与 EXIT trap 丢失
- #985 run_repl_without_line_editor 降级回路:阻塞 stdin 读不被 SIGHUP 门铃唤醒,未 trap 形得 129 而非信号死
- #### Keybindings & widgets (9)
- #834 dropped-binding coverage gaps — chord-layer drops, unknown -m keymaps, bundle widget binds, and NotSentinel all vanish without a registry record
- #835 menu-complete-backward missing from native_widget_event — binds to a dead key via widget paths
- #844 \xHH macro escapes decode byte-as-char — non-ASCII bind/macro text double-encodes into mojibake
- #848 plugin chords silently lose to GNU defaults and engine chords — Script-layer precedence inverted in ChordIndex
- #850 host-side ruline mappings wrong — yank → PasteCutBufferBefore kills yank-pop; exchange-point-and-mark → wrong EditCommand; insert-comment missing GNU '# '
- #961 repl:BindingSpec::Keymap 显式臂替换通配臂(rubash #3013 宿主半)
- #977 Ctrl-C 在 bind -x widget 执行之后不弃行(普通提示符下正常)
- #1047 [ledger] api-ledger §6 dropped the BindKindView::Keymap variant row (next rubash canary will trip)
- #1063 bind -x 在 Windows/conhost 上按键不触发,且 widget 内 READLINE_LINE/READLINE_POINT 为空
- #### Startup & configuration (6)
- #846 NIU_* env channels orphaned or startup-only — prompt segments permanently empty, interactive export silently ignored
- #947 Segments prompt backend is unreachable in the shipped product: no config/env/rc/CLI path selects prompt_style "segments"
- #954 Interactive startup never sources the default ~/.bashrc (only --rcfile works)
- #1001 [bug] 环境变量值里的 POSIX 路径原样泄漏给原生 exe:FOO=/d/x cmd/python 收到 /d/x(参数位有转换、env 值没有)
- #1006 build: Linux-host cross build to x86_64-pc-windows-gnu cannot embed the niu.exe icon (build.rs wants rc.exe/llvm-rc.exe and an MSVC .res GNU ld rejects)
- #1057 [bug][Windows] `--login` skips `~/.niubashrc` and falls back to the GNU profile chain
- #### Plugins (4)
- #843 small staleness/diagnostic gaps batch — history-error collapse, stale-dir fallback, state_path cwd leak, preset silence, plugin unbind reach, dead expand loop, layer misattribution
- #852 fail-quiet/leak batch — unix paste-protection gap, git scratch silent None, plugin loader unreadable≡absent, preserve_std_handles partial failure, terminal size fallback
- #889 [A4-08] Plugin source registry accepts duplicate ids; remove deletes one record at a time
- #968 plugin enable cannot see extension-less entry files of path-added (wild) sources
- #### History (5)
- #888 [A4-02] Exported HISTFILE is ignored as the REPL backing file (decision: seed vs #571/#661 doctrine)
- #890 [A4-09] History flush recursively creates a nonexistent HOME tree
- #950 stdin feeder: tracked (history/alias) arm does not stop on a parse error — reads past the batch and exits 0
- #956 $- lacks H (histexpand) in interactive -c/script forms; the stdin REPL form carries it
- #971 关闭 Windows Terminal 标签页时,本次会话历史不写入 `~/.niubash_history`
- #### Git & doctor (3)
- #842 git-prompt invalidation is Windows-only — unix cached git segment can go stale
- #1049 niugit如何被外部使用?
- #1052 随包 1.5.0 全新装 winuxcmd\bin 缺 git:打包清扫漏掉预装根 bin(#1049 分立单)
- #### CI & tests (11)
- #827 [CI] 交互式 PTY 门禁:全平台必跑(现仅 Windows 跑全量 test,Unix 仅 check+lib 信息项,Android 从不跑)
- #953 [test] plugin-source fixture zoo: after-load call chains (bash-preexec hooks, fzf-git widgets, complete-alias wrapper)
- #960 CI 基线红:host_contract alias 测试断言 stderr 恒空,与无 TTY 交互 shell 的 job-control 警告冲突(master 同红)
- #965 [test] bash-preexec fixture never wires its preexec runner (upstream installs the invocation path at load)
- #966 [test] fzf-git.sh / complete-alias fixtures are no-op stubs: chains can prove execution, never output
- #978 test hygiene: lib test 目标 -D warnings 既有 11 处 lint 清零(基底 e6fc93f8)
- #1028 [test] issue993 doc-content pin fails on Windows checkouts (CRLF vs \\n-spanning assert), masked by issue683 fail-fast
- #1033 [CI] build-and-test 不跑 niubash-runtime lib 套件:14 个 doctor 单测只由 X299 腿覆盖
- #1034 [test-gap] 「未设 + Git for Windows 在场」面须在有 Git for Windows 的真机上活体验证
- #1035 [clippy] Linux-only drop_non_drop: ctrl_c.rs:926/:928 drop(watch) on ForegroundWatch without Drop
- #1040 [test] shell::tests::bash_ps0_runs_before_interactive_command fails: PS0 expansion does not set STARSHIP_START_TIME
- #### Performance (3)
- #839 resolve_dynamic values_from_command subprocess: silent None on every failure shape and no timeout — a hanging tool freezes the TAB keypath
- #847 Windows wait_with_timeout treats WAIT_FAILED as finished — unbounded wait + permanently dead git-prompt refresh
- #879 [perf-budget] 5 bash-it themes hard-fail by TIMEOUT (no completed rep) — adjudicate harness vs product hang before the gate's veto is restored
- #### Documentation (2)
- #963 [docs] pointer from niu test docs to the eco manual-run list (companion to rubash#2910)
- #1031 Claude Code silently runs Git Bash instead of niu when CLAUDE_CODE_GIT_BASH_PATH names no file or Git for Windows is installed (backslash collapse, path conversion); doctor row + docs fix
- #### Build, packaging & updates (4)
- #997 能否支持scoop安装?
- #999 [build][windows-gnu] Cross-compile link of niu.exe fails: mingw ld export ordinal too large: 87895 (--export-all-symbols)
- #1008 [build] main() comment still says non-Windows cross-build is unsupported after #1007
- #1013 self-update 闪退
- #### Other (6)
- #792 关于落实修复全部Bug工作并统筹推进v1.5.0超大杯牙膏挤爆超级无敌版本发布前各项准备事宜的最终确认与进度追踪综合议题
- #863 [1.5.1 charter] 换用 rubash 新 API + 清除 niu 侧手接线/桥接
- #984 Similar problems as gash
- #988 编辑器路执行期形:命令执行中收到 SIGHUP 不信号死,命令跑完后以命令状态平直退出(GNU 等待中即信号死)
- #995 反斜杠被吞掉
- #1060 [bug] 单引号包裹的数组元素仍被花括号展开拆分:'X{16,}Y' → X16Y / XY
-
rubash 1.5.1 2026-11-22
修复
- 深审修复波(1.5.1 向,2026-11-04):两轮深度审计(约 214 条经队长复核的发现)中可局部修复项全部落地——解析器诊断归因对齐 GNU(case/if/函数/算术-for/命令替换/EOF 各形态的报错令牌与行号,#2739–#2754、#2679);heredoc 展开上下文统一(#2676、#2681);解析器挂死与解析期代码执行两处高危关闭(#2682、#2686);状态变更内建在重定向失败时不再执行(#2692);环境导入不再误剥小写变量的导出标记(#2723);compspec 锚定与补全分发面修正(#2724、#2726、#2727);词法/展开/作用域多处 GNU 对齐(#2668–#2675、#2756–#2767、#2778)。每条修复均带以 issue 号命名的回归钉。结构性余项(单一展开管线、fdwalk 等)按 1.5.1 专项六件工程推进,残差均已逐条立单。
- GNU 差分修复波(2026-11-04 – 11-22):2026-11-03 至 11-22 窗口内本仓共关闭 703 单(其中挂 1.5.1 里程碑 456 单;四仓同期合计关闭 926 单、合并 PR 1060 张),全部以 GNU Bash 5.3.20 为规范源、经真 oracle 逐形差分定谳后修复,每条均带以 issue 号命名的回归钉。按主题机械归类(每单只计一族):fd/重定向 80、解析与诊断 68、引号与词法 28、执行与子进程 59、展开 10、declare/readonly/local 33、算术 28、参数展开 38、作业控制与 wait 40、case 23、补全 16、heredoc/herestring 23、数组/assoc 31、[[ ]] 18、procsub 19、nounset 13、glob 8、trap 19、coproc 18、其他 131,合计 703(完整清单见下)。冻结头为 master `eeb424da`(#4067 合入点);已知轮换/环境性 census 红与 goldens #4038 切片非确定性均已逐项定性、不属本版回归(见发版卷宗冻结头测试总表)。
完整清单
- 窗口(2026-11-03 – 11-22)内关闭的 703 单按主题机械归类如下(每单只计一族,标题逐字取自 issue 原文):
- #### fd/重定向(80 单)
- #2395 [bug] exec 接管道 stdin 时物化残留临时文件且重定向丢失
- #2613 [fd] 管道 stage 子进程根本不交付 {var} 绑定(EBADF,W3 stage 方言)
- #2615 [fd] {var} 分配在模型空间而非 OS 空间,$v 数字与 GNU 分歧(文件结果一致)
- #2662 [upstream] read: `read -d` with a high-byte (>= 0x80) delimiter reads nothing
- #2688 [A2-01] Spawn fd aliasing: children inherit the same file at duplicate descriptor numbers
- #2689 [A2-02] command <external> as a pipeline stage drops the command's own redirections
- #2690 [A2-03] /dev/stdout reopen (O_TRUNC) semantics missing on the exec redirect face
- #2691 [A2-04] >&/dev/fd/N and >&/dev/stderr fail with ENOENT instead of duplicating the fd
- #2718 [B2-F06] Redirect-only commands expand redirect words before binding their (permanent) assignments
- #2748 [B6-R10] `function NAME` without `()` and with a redirection is run as an external command
- #2773 driver: set -v echoes rendered commands at execution time, not input lines as read [B4-F04]
- #2775 fd: varredir_close OFF ignored — command-scoped {var} fds always closed at command end [B4-F13]
- #2787 [B6-R13 face 4, decision D3] -c route reports status 2 for a read-time comsub failure; GNU reports 127
- #2793 /dev/tcp 进程内可用,但 socket fd≥3 不随外部子进程传递;/dev/udp 静默丢包
- #2803 [bug] exec with a command treats >&fd / >&- as output to a file named fd / -
- #2821 [bug] 带命令的 exec 只应用最低编号的输出重定向,其余输出重定向被静默丢弃
- #2848 [GAP-12 tail] Session face for the retained invocation's shopt flags (enter_interactive read)
- #2880 [bug] Background fifo reader can die before applying its redirects — parent's exec 6> fifo open deadlocks (run-test test1.sub dance)
- #2883 Interactive read -p prompt renders raw-byte marker pairs instead of the control bytes
- #2979 printf: remaining locale faces (byte_mode, \u gate, decimal_point) read the process env, not the variable-table guard
- #3046 exec in a pipeline/subshell ignores stdin redirect from a character device (reads EOF) and drops stderr redirects
- #3061 [bug] printf -v 'x[0]' element bind leaks raw compound storage encoding on scalar read-back
- #3104 raw-byte (U+E000) pairs leak at name-consumption boundaries: redirect targets, test/[ operands, source, cd (E000-domain counterpart of #3076)
- #3187 [bug] read -t with invalid timeout is diagnosed only after redirection succeeds; GNU validates the timeout first
- #3191 read -r -a 在单字节 locale 下字节域分裂丢空字段(#2819 残余)
- #3201 comsub 外部子进程 ambient fd 交付不稳定(多数运行整段缺失,与 #2688 别名异源)
- #3212 read -d 分隔符字节与后续数据字节构成合法 UTF-8 时在传输文本中不可见(joined 形态)
- #3213 varredir 物化 fd 在 shell 自身 /proc/$$/fd 视图不可见(GNU 可见)
- #3218 PATH/名字折叠丢逐字符来源:同名真 Latin-1 字与 byte char 混用取字节拼写,折叠串作键共享重定向旗标
- #3221 junit-formatter.bats 仍报 15 instead of 13:嵌套 tap13 行经 ambient fd 3 泄漏(#3149 残余)
- #3286 已删 cwd 下相对输出重定向至已存在 FIFO 即时 ENOENT(GNU 阻塞 rendezvous 后成功)
- #3291 read: C.UTF-8 file loop fd_table mb serve diverges on multibyte delimiter remainder
- #3293 read: byte-served path skips the -t timed judge (and invalidates the stream arrival table)
- #3294 read -n: illegal UTF-8 sequence measured as 1-byte units (GNU/glibc mbrtowc consumes the whole sequence)
- #3308 [bug][fd] 脚本模式 $(外部 | 外部):管道首进程 stderr 绕过全部重定向直写控制台(-c 模式正常;GNU 无此行为)
- #3311 [bug] exec with a command opens fd>=3 redirect targets but never passes the fd to the child
- #3312 [bug] exec with a command routes device redirect targets through a /tmp sink file, silently swallowing write failures
- #3313 [bug] exec with a command replaces <&- with /dev/null instead of closing stdin
- #3325 timed 体内内层 compound 重定向失败不到达 ERR 裁决(time { if … < /bad; })
- #3334 [bug] read -n/-N counts characters instead of bytes in C locale
- #3401 [bug] termsig death still delayed on comsub, blocking-read and simulated-exec waits (residual of #3284)
- #3402 [bug] pipeline stage stderr bypasses the fd table on the Windows concurrent path (Windows face of #3308)
- #3403 [bug] sequential redirect loop resolves 2>&1 against the live fd 1 target instead of the dup-time snapshot
- #3432 [bug] test -ef/-nt/-ot resolve /proc/self/fd/N and /dev/fd/N to the wrong file (off by one fd)
- #3539 [bug] $BASH_COMMAND of a top-level command renders redirections outside print_cmd.c print_redirection (>&2, 3>&2- dropped, &> split)
- #3560 [bug] Windows: a command's own N>&- does not revoke the ambient fd N handed to a rubash child
- #3640 [bug] Shell holds its startup cwd open on fd 3, so `exec 3>file` lands on fd 4
- #3644 Windows:command_substitution_values.rs 的 use std::io::Read 在 Windows 上未使用
- #3706 [bug] Group redirect `{ ...; } N<redir` does not restore fd N to its pre-group target
- #3726 fd: /dev/tcp|udp bind restores a retired entry (same hazard as #3706)
- #3727 fd: function-call stdin bindings restore retired fd 0 entries (same hazard as #3706)
- #3728 fd: read from /dev/tcp restores a retired fd 0 entry (same hazard as #3706)
- #3729 fd: stdio-marker reinstate restores a retired entry (same hazard as #3706)
- #3733 fd: redirect failure mid-list does not undo partial binds (GNU undo_partial_redirects)
- #3770 read on write-only fd 0 fails silently instead of `read: 0: read error: Bad file descriptor`
- #3785 [bug] read -n/-N counts characters instead of bytes in C locale on redirected / pipeline stdin (follow-up to #3334)
- #3792 [bug] cmd <&N on a write-only fd fails the redirect ("N: Bad file descriptor") instead of dup'ing the descriptor; emulated cat reads the file instead
- #3814 子 shell 的 8<&- 泄漏到父 shell:( … ) 8<&- 后父 shell fd 8 损坏
- #3815 嵌套组内层 fd 8 恢复落到野管道:{ { …; } 8</dev/null; …; } 8</dev/null
- #3819 [bug] failed pipe creation under fd exhaustion is silently ignored; the pipeline runs instead of failing ("pipe error")
- #3828 [bug] output redirects fail spuriously when umask strips owner-write from the created file ("f: Permission denied", rc 1, data lost)
- #3852 redirect failure does not set the exit status (GNU sets $? to 1)
- #3856 [bug] fd>=3 delivery to children dead on Windows since #3736: fork_respawn_transport_key strips __RUBASH_FD_* for every non-respawn birth
- #3892 exec: {var} 重定向绑定在同 list 后续条目失败时被回滚(GNU varassign 无 undo 记录,绑定存活)
- #3917 残差(#3640/#3891):exec 3>file / exec 4>file 不落指定 fd,自带钉两格恒红
- #3938 持久 exec 重定向落点的完整性残差:dup 源不物化 / ≥10 被占用保持虚拟回退 / 快照恢复留 dup 描述符(#3917 相邻面)
- #3939 /dev/zero 的 <> 分裂模型:读写臂为两个文件描述,共享偏移与 GNU 分歧(P3)
- #3943 [bug] read -d with a multibyte delimiter stops on a raw byte equal to the delimiter's codepoint
- #3944 [bug] `read -d` with a single-byte delimiter >= 0x80 fails on file-backed input under a UTF-8 locale
- #3945 [bug] `read -t 0` returns success when no input is available
- #3985 subshell ( exec … >&3 ) 3>/dev/full: shell-side EACCES at fd binding instead of child's ENOSPC write failure
- #3991 [gnu-baseline] redirect undo saves are never materialized: dup from a save slot fails EBADF (1>&10 after exec 9>file)
- #3995 [gnu-baseline] cat - inside a file-redirected group poisons the next fd-0 read (silent empty, rc=0)
- #3997 [gnu-baseline] fd-table /dev/full binding never reaches external children (ambient fd>=3 delivery drops the slot)
- #3999 [gnu-baseline] read serve face has no undo-save resolution (0<&10 inside a read list still EBADF)
- #4000 [gnu-baseline] move (N>&M-) retires a handle a same-walk dup still aliases: flush writes to a closed descriptor
- #4024 [gnu-baseline] 同 list 从 walk save 槽 dup 回 stdio fd 得到死端点(静默丢输出),GNU 从真描述符 dup 正常
- #4027 [gnu-baseline] 同 walk 先重绑 fd N(生 save)后 move 关 N:GNU 恢复 save 绑定,rubash 的 persist 关闭胜出致后续 >&N EBADF
- #4044 [gnu-baseline] exec walk inside a nested context closing fd 1 also kills the parent shell's fd 1
- #4054 [test-infra] issue3997 fd-enumeration pins assume a clean ancestor fd set — harden against harness-held fds
- #### 解析与诊断(68 单)
- #2635 [bug] RLIMIT_NOFILE 软限内重定向目标 fd ≥ 限额时不报错(GNU: Bad file descriptor, rc 1)
- #2637 [bug] history -c 带多余操作数时报错且不清表(GNU 静默 rc 0 清空)
- #2639 [bug] times 无效选项报错独缺 line 1: 前缀(GNU: line 1: times: -x: invalid option)
- #2665 [upstream] Diagnostic fidelity family: line-number drift, message shapes, Rust-format leakage, help layout, missing identifier diagnostic, carrier-byte leakage (7 micro-items)
- #2680 [A1-F07] Parse/execute interleave: ;-separated commands before a later syntax error still execute
- #2714 [B1-11] Diagnostic prolog hardcodes `bash` instead of the argv[0]-derived name (owner decision: impersonation vs fidelity)
- #2725 [B5-01] Interactive stdin driver swallows the rest of the stream after compound-opener parse errors, then kills the session
- #2728 [B5-04] Exported-function (BASH_FUNC_*%%) import: wrong silence/diagnostic split and a laxer shape check
- #2734 [B5-17] Interactive-route diagnostics carry a `line N:` segment GNU omits (and a spurious `-c:` segment on -i -c)
- #2739 [B6-R1] Syntax error at a continuation position blames the previous command's line and drops the source echo
- #2741 [B6-R3] `if true then ...`: GNU blames the closing keyword `fi` (then is consumed as a condition argument); rubash blames `then`
- #2742 [B6-R4] `while do done` / `until do done`: GNU blames `do`, rubash blames `done`
- #2745 [B6-R7] `select` rejects a loop variable literally named `in`
- #2751 [B6-R13] Command-substitution inner syntax errors: missing `while looking for matching ')'` suffix, fragment echo, per-level escalation lines, `-c` status 2 vs GNU 127
- #2754 [B6-R17] EOF diagnostic arm reports first-command-line + 1, not the end-of-input line
- #2755 [B6-R18] Bad-interpreter exec diagnostic carries a `line 1:` segment GNU omits
- #2789 [read-time] comsub bodies validated at execution, not at read: skipped bodies never fail; parse-time body failures miss the -c 127 remap
- #2791 [D1 残面] 诊断前缀冷路径字面量未随 argv[0]:builtin 本地 fallback 的 "bash"/"rubash" 字面量
- #2796 [bug] cd 对软链父目录的 `..` 按物理路径解析,默认与 -L 下均偏离逻辑目录
- #2871 [bug] bind set silently accepts invalid bell-style/keymap values (no "could not set value" diagnostic)
- #2873 [bug] bind silently swallows malformed bind specs (no "no key sequence terminator" diagnostic)
- #2924 inputrc / bind -f parser still drops old-style binding lines (second consumer of the #2914 arm)
- #2947 [bug] POSIX-mode source diagnostic prints `.` instead of `source`
- #2966 shift: out-of-range diagnostic prints the parsed count instead of GNU's word (and invents one for the implicit count)
- #3008 printf %S 在 C locale 下应报错(宽字符转换失败),rubash 照常打印
- #3040 Stored U+E314 value used as a name renders the E400 pair: command-not-found diagnostic and redirect filename
- #3090 bind -f / history 文件面的相对文件名不锚定会话 cwd(进程 cwd 解析,平名复现)
- #3091 管道成员 spawn 失败的状态与诊断塌陷:PIPESTATUS 为 0、诊断丢 ./ 拼写(平名复现)
- #3193 [census] 产品字面 bash: 诊断前缀站点普查:逐点核 GNU 在不同 argv[0] 下的前缀真值
- #3209 函数体首命令带重定向时报错行指向命令自身而非函数定义行(行戳捕获面)
- #3222 命令未找到诊断的 stderr 写失败时退出码翻 1,GNU 保持 127(诊断收尾路径写错误传播进 exit_code)
- #3254 main.rs 启动诊断族字面程序名不随 argv[0] 派生(-o/-O/-c/长选项/debugger 全族)
- #3256 共享 diagnostic.rs / exec.rs 冷路径字面前缀收敛(待 #2968/#3214 合入后派)
- #3268 已删 cwd 下进程内路径串解析同族残差:comsub 内 cat、cd ..、壳侧输入重定向、模拟 cp 操作数面
- #3285 cd . 于已删 cwd:缺 getcwd 失败诊断且 PWD 拼写丢 /. 尾(#3268 b4 残差,resetpwd 路径)
- #3300 后台函数体重解析行戳取决父进程退出时序(`background_first` box 报 line 2、本地/GNU 报 line 1)
- #3328 重解析源回显行是 parser 重序列化文本而非原文行(__RUBASH_PARSE_SOURCE__ 跨度保真)
- #3333 [bug] simulated mkdir -p diagnostic names the whole operand instead of the first failing component
- #3335 [bug] cd . in a deleted cwd: pushd entry still fails rc 1; cd entry lacks getcwd diagnostic and PWD /. suffix
- #3340 [bug] bind --help 非交互下缺失 line editing 警告(help 门先行跳过了处理器前导诊断)
- #3343 [bug] unset 诊断路由谓词仍全表扫选项(操作数后 -f/-v 双置形分歧)
- #3355 空 argv[0] 调用时 $0 被种成 /、诊断印 /: …(GNU 印空名)
- #3388 未闭合的 [ 在解析期夭折整脚本(GNU 为运行时 missing ']' 错误、脚本继续)
- #3396 pushd 相对目标按 $PWD 解析(未设/空/陈旧时失败;GNU 按真实 cwd 解析)
- #3404 [bug] diagnostic re-print of a comsub inside a subscript keeps >&2 where GNU normalizes it to 1>&2
- #3407 [bug] alias-body diagnostics report invocation line + body offset; GNU reports the invocation line
- #3411 tests/issue3182_diagnostic_faces.rs:30 死字段使 master 全靶 -D warnings 红(#3373 钉善后)
- #3412 空 argv0 的 -c 形态下 alias/unalias 诊断头仍印 bash:(应随空 $0 印 :)
- #3415 非 shell shebang 的脚本直执行被当作 bash 执行:体报语法错 rc=2;shebang-only 文件静默 rc=0(#993 OMP 矩阵立项)
- #3420 [bug] Background child spawn chdirs by raw path string without consulting the cwd anchor (deleted-cwd diagnostic + rc 1 where GNU is silent rc 0)
- #3434 [bug] builtin diagnostics in a pipeline component print after later stdout
- #3453 [bug] diagnostics to a closed fd: printf pass-abort and pipeline-stage resurrection vs GNU
- #3574 cd entry in a deleted cwd does not emit GNU's chdir: diagnostic
- #3635 cp emulation: failed create diagnostics drop the `regular file` kind (GNU copy.c copy_internal)
- #3647 [parser] syntax error after `!` in reserved position does not echo the source line
- #3648 [parser] `! } { }` runs `}` as a command instead of a syntax error
- #3774 [fd] read 自身输出重定向 0>file 仍静默丢 EBADF 诊断(#3773 c4 残面)
- #3777 [fd] Windows 上 read < 目录在重定向打开层报 Permission denied,达不到 EISDIR 诊断(issue1495 钉 X299 双边既存红)
- #3808 parser: `>(...)` with a `{ ...; }` group body is rejected as `ambiguous redirect` (GNU accepts it)
- #3813 modernish builtin.t 007 解析死亡:别名 { f() { + $(…) 内奇数撇号注释致 rc=2
- #3818 [bug] input-redirect failures under fd exhaustion: wrong "N: Bad file descriptor" diagnostic, and "< file" on external commands silently dropped
- #3827 [bug] exec-failure diagnostic prints the absolute path for commands found via a relative PATH entry (GNU prints the PATH-joined form, e.g. "sub/mycmd: Permission denied")
- #3833 [parser] reserved words after pending-inversion `!` run as command words instead of syntax errors (siblings of #3648)
- #3845 regression: golden_issue1230 — pipeline-stage spawn diagnostic leaks to stderr inside comsub (suspect #3631)
- #3914 [bug] escaped newline inside a delimiter body is not counted in EOF diagnostic lines
- #3936 while/until 体错误归属同族残差:parse_loop_body 吞掉 latched 错误、回退报 EOF-from-while 形(#3184 缺陷 B 同族)
- #4028 [gnu-baseline] move 显式命名 fd 10(8>&10-)时 GNU 有 undo 期 Bad file descriptor 诊断,rubash 无
- #4047 redirect failures inside async subshell bodies are swallowed whole (rc=0, no diagnostic)
- #### 引号与词法(28 单)
- #2684 [A1-F12] Single-quoted double-quote inside $() inside double quotes breaks the scanner
- #2706 [B1-04] Quoted expansion results lose IFS protection in mixed words ($a"$b" splits inside the quoted part)
- #2708 [B1-06] Tilde expansion is not vetoed by quotes inside the tilde prefix (~'' expands; GNU leaves it literal)
- #2747 [B6-R9] Function-definition errors blame `(` instead of the token after `()`
- #2781 arith-for single-`)` headers keep the matched-pair EOF form instead of blaming the inner token (F4/R11 residual)
- #2882 Escaped user U+E002 is eaten by blind QUOTED_NULL consumers (printf emits stray U+E400, echo emits nothing, concat drops the char)
- #2959 set -k (keyword): assignment words are re-judged after expansion — quoted words with '=' are stripped, bare assignments lost
- #2999 fix: comsub suffix folds backslash out of a preceding single-quoted segment
- #3005 __git_ps1 分离头描述值泄漏载体字节 U+0010 与引号(t9903 六例)
- #3017 fix: set listing of scalars with bare C0 bytes lacks $'...' quoting
- #3020 [bug] hash-leading command word dropped as comment after quoting or expansion
- #3029 [bug] non-ASCII command names printed raw in errors, GNU uses octal quoting
- #3031 [bug] syntax-error token naming differs from GNU (pipe vs paren faces)
- #3034 [bug] assignment y="($x)" leaks 0x10 + quotes into the stored value
- #3089 [bug] Redirect target joining a quoted space segment with a substitution reports "ambiguous redirect"
- #3103 unquoted splitting in command-word position (for list / set -- / args) loses data carrier bytes: \x1c eaten as glue, \x1f folded to '$'
- #3263 信任条件 (a) 理论误触:同词 glue 落他字时引号内 IFS 空白未受保护仍被判可信(#3089 返工面外观察)
- #3435 $(...) 跨度扫描对 backquote 组内未配平 " 盲(整文件误作未闭合引用)
- #3495 [bug] unquoted digit-leading compound LHS should be a GNU parse-time syntax error
- #3505 [bug] N>> append redirect (e.g. 3>>) rejected by the lexer
- #3557 [bug] 命令位加引号的 '(' / '{' 被当作子 shell / 组命令(GNU 为普通 WORD,command not found)
- #3582 [bug] unset 'a[~]' 诊断 token 应为 ~,rubash 报 /home/hatch(#3522 残差)
- #3639 [bug] Trailing unquoted `{ }` after `!` is folded into one word "{ }"
- #3663 [bug] Unquoted assignment x=a\\*e drops the backslash before * and ? (value becomes a*e), breaking the modernish DBLBRACKET guard
- #3664 [bug] Double quotes inside a backquote command substitution inside double quotes cause a syntax error
- #3838 [lexer] comsub alias pre-scan newlines untracked (second-order gap after #3678)
- #3859 [bug] $(...) body walkers: ANSI-C $'...' escaped quote hides ')' — bare comsub EOF error, quoted comsub wrong value
- #3904 unclosed-construct diagnostic fidelity: token-error wording (v=(a (echo) and closer char (v=(a[1 reports ')' for ']')
- #### 执行与子进程(59 单)
- #2565 [env] 导入的已导出 LINES 不进子进程 env,COLUMNS 进(组合/导入链路不同形)
- #2636 [bug] 子 shell 内的 ulimit 改动泄漏回父 shell(GNU 外层不变)
- #2642 [bug] #2514 残差:command -v/-V env 仍被仿真注册表遮挡(GNU: /usr/bin/env)
- #2652 [upstream] set -e: failure suppression in tested contexts (&&/||, !, conditions, eval) not honoured — shell exits at the first tested failure
- #2661 [upstream] exec: executing a directory reports "not found" / exit 127 instead of "cannot execute: Is a directory" / 126
- #2693 [A2-08] Pipeline-stage builtins are SIGPIPE-immune (PIPESTATUS 0 instead of 141)
- #2694 [A2-09] umask set in a pipeline stage leaks back into the parent shell
- #2696 [A2-13] Hash table stores absolutized path; type prints it instead of the as-found relative spelling
- #2699 [A3-R58A] Multi-argument builtin stdout/stderr interleaving lost in the shared buffered-output path
- #2717 [B2-F05] `command -v` reports non-executable slash-named files (no file_status qualification) and absolutizes them
- #2722 [B3-F05] BASH_SUBSHELL over-counts when a `( )` is a pipeline stage (stage bump + paren bump)
- #2723 [B5-05] Environment import silently de-exports every lowercase-first variable name (http_proxy & friends invisible to children)
- #2736 [B5-18] type/hash introspection does not reflect emulated dispatch (sleep reported as its PATH body, never hashed)
- #2753 [B6-R16] `--help` (CHECK_HELPOPT) missing from 36 of 55 builtins — no shared getopt help mechanism
- #2783 comsub body error echo shows the body fragment, not the enclosing line (F4/R13 residual)
- #2810 [api] Session 协作式取消:执行安全点轮询宿主取消令牌(不依赖信号)
- #2881 External boundary leaks the E400 escape pair into child env/argv (decode_raw_byte_markers_to_byte_chars lacks the LITERAL_CHAR_ESCAPE arm)
- #2884 Environment import is an unencoded entry point: inherited user values are interpreted as live carrier protocol
- #2901 [test] bats-core: re-run scenario chain + own suite on current master — adjudicate DIV-D (zero-exec on the engine binary)
- #2939 builtin: words after '--' re-checked as options instead of names
- #2942 enable -n : does not persist: the disabled-builtin carrier is colon-separated and ':' round-trips to empty
- #2949 BuiltinRow exposes pub fields of pub(crate) types (E0603 under -D warnings) — breaks niubash CI
- #2958 builtin_diag::valid_number rejects vertical-tab-padded numbers GNU accepts (trim_ascii lacks 0x0B)
- #2995 sleep Fastpath 仿真无 OS 子进程:ps 树杀链(bats 每测试超时)够不着在飞的 sleep
- #3054 [bug] respawn serialization drops first_word_end_line (residual of #3028)
- #3071 tempenv prefix assignment: self-referencing RHS is expanded twice into the child environment (PATH splice corrupts)
- #3076 E400 literal-char pairs leak at command-lookup / slash-execve-classification / cd / exec operand boundaries (same family as #3040)
- #3108 Session 快照把启动种子名误报 exported=true(from_environment 给种子表条目统一打 exported)
- #3147 Describe of a fresh PATH walk absolutizes the display instead of the as-written join (command -v / type)
- #3148 exec builtin face does not classify a bad interpreter (raw OS error, 127, line segment) where GNU reports sys_error bad interpreter, 126
- #3198 已删 cwd 下前台外部命令 spawn 全部 rc 127(spawn 按陈旧逻辑 cwd chdir)
- #3284 引擎等待面:前台命令执行期终止信号只在命令结束边界被消费,GNU 在等待中即信号死(niu #988 时序残差归宿)
- #3310 [bug] exec does not decrement SHLVL
- #3314 [bug] bad-interpreter exec exits 127 instead of 126 at top level
- #3315 [bug] plain external commands get basename argv[0] instead of the full path
- #3316 [bug] exec of a relative-path script leaves "/./" in $0
- #3317 [bug] exec with an empty command exits 126 instead of 127
- #3336 [bug] after pushd into a deleted cwd, external children run in the startup cwd instead of inheriting the deleted cwd
- #3339 [bug] command <builtin> --help 重派发面未过 help 门(GNU 出 help)
- #3347 [bug] respawn(脚本文件 spawn)在父壳伪造导出 $PWD 后从变量重派生逻辑 cwd——应随 respawn 运输集携带 logical_cwd 值
- #3348 [bug] $PWD 被伪造后,comsub 内 cd / pwd -L 仍按变量派生逻辑值(状态克隆未覆盖的派生点)
- #3358 [bug] Explicit 'hash name' records the absolutized path for relative PATH entries (follow-up of #2696)
- #3387 times 在子 shell/命令替换/管道段印宿主进程累计 rusage(#2932 残差:模拟 fork 不清零时钟)
- #3414 command 面 help 门未挂 prologue 钩子:bind 警告丢失、hash 拒绝被 help 抢先(#3381/#3385 双合后残面)
- #3507 [test] dead_code in tests/issue2066_pipeline_host_flag_regressions.rs under -D warnings on Windows
- #3512 [test] dead_code in tests/issue2304_numbered_devnull_spawn_regressions.rs under -D warnings
- #3513 [test] dead_code in tests/issue2272_fdvar_spawn_delivery_regressions.rs under -D warnings
- #3550 [bug] Pipeline member with a stale hashed path: wrong ENOENT name, status 0, PIPESTATUS collapses
- #3551 [bug] hash table ignores HASH_CHKDOT: ./NAME created after hashing via PATH=.:… is not preferred
- #3566 [bug] Windows prefix-concurrent pipeline drops the prefix's stdout when its last member wrote stderr
- #3585 [macOS] external commands fail: Mach-O binaries treated as ENOEXEC candidates (cannot execute binary file, exit 126)
- #3824 [bug] hash -p with an empty path stores "./": hash -t prints "./" and running the entry fails "./: Is a directory" (GNU stores "", run fails "No such file or directory")
- #3825 [bug] hash and type -a accept a non-executable file found via PATH (GNU: "not found", rc 1)
- #3865 [bug] issue2612 subshell-dup 4 cells red on master tip — introduced by #3849
- #3875 [bug] probe-then-bind double-open:#3828 的剩余四处(env 腿、异步 spawn、pipeline stage、plan-decline)
- #3905 comsub route: unclosed compound assignment inside $(...) reports EOF exit 2 / line 2, GNU reports 1 / line 1
- #3932 plain-spawn child inherits live SHLVL instead of exported level
- #3962 `exit` in a subshell stops the rest of the script when the sourced file has a multi-line string containing `<<`
- #3965 [bug] 外部命令 spawn 组合路径把 env 值中的 0xFF 字节宽化为 U+00FF(字节不保真)
- #### 展开(10 单)
- #2629 [fd] stage 括号 applier 对带副作用的 {var} 目标词重复展开(GNU 只展开一次)
- #2651 [upstream] Expansion: POSIX mode rescans and re-expands the tilde result in an eval'd assignment (double expansion)
- #2752 [B6-R15] Substring expansion evaluates offset:length eagerly; GNU evaluates the length only if the offset is in range (and nothing for unset values)
- #2764 expansion: process-substitution pattern words are admitted but not executed at match time (split from #2687)
- #2819 [bug] C locale 下多字节 IFS 字符按整字符拆分(GNU 按字节拆分)
- #3255 script_driver 历史展开前缀与 invocation.rs API 种名仍落字面 "bash"
- #3394 cd 不展开 CDPATH 条目中的 ~(GNU 先按 $HOME 展开再搜索)
- #3650 [expansion] `read`-filled value compares unequal under `[`/`test` for control bytes 0x0c/0x11/0x13-0x1f
- #3651 [expansion] junit formatter XML leaves `[0m[K` remnant where GNU strips the CSI sequence
- #3826 [bug] commands are not found via a "~/..." entry in PATH: tilde is not expanded during PATH lookup (GNU expands it)
- #### declare/readonly/local(33 单)
- #2658 [upstream] Attributes: readonly error inside a function is diagnosed twice and does not abort the function
- #2700 [A3-DYN] Filtered declare listings omit dynamic variables and show a phantom BASH_LINENO cell
- #2702 [A3-THISSH] Internal THIS_SH variable is visible in declare output (design question)
- #2720 [B3-F02] Local bindings of dynamic variables never shadow: every read face consults the dynamic provider by name, bypassing the cell
- #2770 variables: FUNCNAME has no listing view in declare/set output (split from #2700)
- #2944 [bug] set -a (allexport) ignored by local/readonly initialization
- #2964 [bug] set -a marks a flagless declare compound assignment inside a function (top-level quirk does not apply there)
- #2970 getopts: a no-argument option unbinds OPTARG (readonly mark lost); GNU binds it empty
- #2972 declare/typeset listing ignores attribute filter flags
- #2973 declare/typeset listing renders dynamic variables with values (BASHPID/RANDOM), extra SECONDS entry, GROUPS shape
- #2974 local -f/-F with no names prints function definitions; GNU prints nothing
- #2980 declare arr[0]=x: subscript operand over-marked -x by the allexport post-pass (both contexts)
- #3026 [bug] typeset listing shows BASH_ARGV0 and renders GROUPS=([0]="0")
- #3048 Residual diagnostic_prefix copies still pair frame line with top-level script name (printf/set/declare/setattr/kill/alias/help/shift/exit/shopt)
- #3049 bats.bats #71 (Don't hang on CTRL-C, issue #353) hangs forever: inner test registration hits "BATS_TEST_TAGS: readonly variable", latch never fires
- #3066 declare -a conversion of an existing scalar locale var skips the locale funnel (GNU warns again with the element value)
- #3186 [bug] readonly/export accept invalid identifiers silently: GNU diagnoses "not a valid identifier" (#2665 D6)
- #3338 [bug] declare/typeset/unset 在首操作数后继续扫描选项(GNU internal_getopt 首个非选项词即止)
- #3344 [bug] declare -f --help 不出帮助(-f 分流先于帮助门,GNU rc=2 出 help)
- #3345 [bug] declare -p 缺名诊断报告序与 GNU 不同(选项形名在先)
- #3350 declare 复合赋值元素边界被整 token 引号判定合并(首元素含引号时 n=1,GNU n=2)
- #3408 [bug] declare -p mixed diagnostic/output still reversed on a merged stream (follow-up to #3324)
- #3421 [bug] readonly-PWD bind family: after a failed readonly pushd bind and directory deletion, 'cd .' loses the getcwd diagnostic line
- #3487 [bug] bare `declare` omits the function definitions GNU prints
- #3529 [bug] local -p 两形态诊断仍与 GNU 有差(execute_local 预-pass 机制)
- #3533 [bug] export NAME=v 撞 readonly 时不设 export 属性(GNU setattr.def 赋值失败后仍 set_var_attribute)
- #3534 [bug] 导入的 bash 托管名(BASH/HOSTNAME/OPTIND/RANDOM/EUID…)丢 export 属性/被重建,GNU 逐名保留 att_exported
- #3609 [compat] local/declare shadowing a readonly outer-scope var spuriously reports readonly variable
- #3661 [bug] POSIXLY_CORRECT assigned at runtime does not switch export -p to POSIX form, breaking isset -x (modernish suite gate)
- #3782 [bug] scalar declare -i/local -i += does not wrap at int64 (GNU wraps)
- #3820 [bug] getopts treats ':' as a valid option letter and leaves OPTARG empty for a declared '?' option
- #3946 [bug] `declare -p` and `${x@Q}` print U+2028/U+2029 raw instead of GNU's `$'...'` octal form
- #4060 [gnu-baseline] assignment/unset/local on imported bash-managed scalar names rejected by static att_noassign table
- #### 算术(28 单)
- #2641 [bug] let 对只读变量的报错绕过命令级 stderr 重定向(2>&1 / 2>file / 2>/dev/null 均失效)
- #2648 [upstream] Arithmetic expansion: parenthesised operand after `<`/`>` inside `$(( ))` is also executed as a command
- #2654 [upstream] Arithmetic: error inside an array subscript is silently swallowed (missing diagnostic)
- #2677 [A1-F02] $(( 1 + 2)x) is a fatal syntax error instead of GNU's recoverable parse fallback
- #2685 [A1-F15] Nested arithmetic expansion fails at depth 52 (GNU fine at 500)
- #2707 [A3-R1] Readonly-variable diagnostics from read / (( )) bypass the command's stderr redirection
- #2713 [B1-10] Substring/arithmetic diagnostics trim the raw expression text GNU echoes verbatim
- #2715 [B1-12] Command substitution inside `$(( ))` is mis-scanned when the body contains `;` or yields multiple lines
- #2749 [B6-R11] Arithmetic-for fallback manufactures the header error for failures after a complete header (post-header junk, EOF, unclosed header)
- #2780 eval 'for ((...' unclosed-header diagnostic names the wrong line (F4/R11 residual)
- #3022 [bug] ${foo/[/]-} misrouted to arithmetic parsing
- #3023 [bug] array subscript $"..." not evaluated as arithmetic
- #3024 [bug] unset ${foo:t5:h2:l} errors arithmetically instead of short-circuiting to empty
- #3059 [bug] arithmetic assignment to a locale variable never warns on setlocale failure (((LC_ALL = 5)) silent)
- #3078 Same-expression arithmetic diagnostics and locale warnings print in opposite order vs GNU (deferred diag flush vs bind-time warning)
- #3085 [bug] Array subscript $'...' leaks the $ into the arithmetic error token (GNU reports 'x y', rubash reports $'x y')
- #3086 [bug] $"..." inside $((...)) bodies and ${...} default words is not decoded as a locale string (shared walker has no $" arm)
- #3182 [bug] Diagnostic text leaks internal carrier bytes: command-not-found E400 pair, parameter-unset \x1c, arithmetic token \x01 (#2665 D7/D8, #2879 F5)
- #3184 [bug] Syntax-error message shapes diverge: unexpected-token choice, source-line echo, arithmetic token rendering (#2665 D2)
- #3204 并置复合命令的语法错误点名差:第二个 ((…)) 起头时 GNU 点名算术体首 token(2),rubash 点名 (
- #3246 算术 nameref 非法标识符报错不入求值序:序反/展开形缺失/marker 跨命令泄漏/状态被报告器劫持为 1
- #3287 致命快赋值后算术致命/展开错误标志跨命令泄漏:后续 (( )) 求值被跳过、诊断全静默
- #3295 算术文本内展开期诊断被入口标签误标:下标/嵌套展开应无标签
- #3383 混合赋值语句与 subshell-prefix 路径忽略 arithmetic_error(#3287 Owed 3 缺口,待探针坐实 GNU 期望)
- #3406 [bug] (( )) fd-0 redirect failure reports the command's first line; GNU reports its completion line
- #3456 [bug] pipeline-element prefix assignment ignores fatal arithmetic error (rubash#3383 face 2)
- #3541 [bug] ${a[$(...)]:?err}: an arithmetic error in the subscript still emits the :? report
- #3649 [expansion] arithmetic write side effect lost in list-subject substring expansion (`a[@]`/`@`)
- #### 参数展开(38 单)
- #2649 [upstream] Expansion: `${!*}` / `${!@}` rejected as "bad substitution" instead of performing indirect expansion
- #2650 [upstream] Expansion: nested `$'name'` (extquote) as a parameter name is rejected inside `${...#...}` patterns
- #2704 [B1-03] Tilde-prefixed words: the remainder of the word is never expanded (~/$a, ~/${a}, ~+/$a stay literal)
- #2711 [B1-08] `${#@...}` / `${#*...}` with an operator suffix is silently accepted instead of bad substitution
- #2712 [B1-09] `${!nr@A}` on a nameref renders the value; GNU renders the target NAME as the value (bug-compat decision)
- #2759 expansion: quoted-site IFS protection lost at unquoted ${arr[@]} junctions (residual of #2706)
- #2762 expansion: parameter-error pre-scan is not order-aware (${a:?} falsely fires after ${a:=ok})
- #2772 expansion: extquote OFF ignored inside double-quoted ${...} (lex-time verdict not threaded) [B4-F02]
- #2794 [Q6 残面] ${var:?} 展开错误不浮出 discard 面:分类契约与交互驱动均不可见
- #3019 [bug] bad substitution exits 0, GNU exits 1 (${} and 16 more shapes)
- #3027 [bug] ${var=word} assignment leaks into preceding ${var:+word} in the same word
- #3030 [bug] extra bad substitution error inside dollar-quoted string, GNU reports only command-not-found
- #3058 [bug] assignment RHS with a command substitution + ${v:+":${v}"} injects 0x1C before every space (carrier-byte leak, same family as #3034)
- #3063 ${?} substring expansion returns empty instead of slicing the $? value
- #3088 [bug] ${var:-word} alternate expansion results lose backslash protection (flat and nested forms)
- #3092 [bug] ${ cmd; } inside PS0/PS1 runs in a subshell while BASH_VERSION reports 5.3 (kills bash-preexec PS0 backend)
- #3116 [bug] alternate word: source \$ not recognised as escape in unquoted alternate (${x:-a\$b} yields [a\] not [a$b])
- #3117 [bug] alternate word: dq-span \q wrongly unescaped (${x:-"a\qb"} yields [aqb] not [a\qb])
- #3260 :? 诊断路径对双引号 span 漏载体恢复:${q:?...} 错误词面泄漏 IFS_GLUE(\x1c)
- #3296 子串偏移展开的诊断丢标签:${v:ref=1:2} 应带 v: 标签(GNU 有、我方无)
- #3433 [bug] bad substitution diagnostic leaks PUA marker U+E31B for assignment-like words with ${-...}
- #3441 bad substitution 诊断引片段而非整词(未加引号的 a=${-x} 形)
- #3499 [bug] bad substitution 多报诊断且不丢弃命令(DISCARD)
- #3500 [bug] compound 赋值元素词 bad substitution 诊断引片段而非元素词
- #3501 [bug] 模式词里的 bad substitution 应静默(GNU 不作参数展开诊断)
- #3502 [bug] ${v:?${-x}} 多报一行 v: (:? 与 bad substitution 竞发次序)
- #3542 [bug] PS4 with ${q:?err}: GNU reports and prints the prompt literally, rubash substitutes the message
- #3543 [bug] bad substitution diagnostic cites a comsub from raw text (>&2) where GNU prints the print_comsub form (1>&2)
- #3581 [bug] 带引号的 "${a[@]#...}" 单 "" 元素应诊断,rubash 静默(#3501 残差)
- #3784 [bug] ${!0} / ${!00} silently expand instead of erroring, and ${!#} is empty when $# is 0
- #3963 `${x//\\\\/@}` replaces each backslash, not each pair
- #3972 [bug] `${ }` 同行纯空白体报 bad substitution/EOF,GNU 5.3.20 输出空串
- #4003 [gnu-baseline] quoted non-blank IFS chars inside ${} defaults lose protection: false ambiguous redirect (condition-(b) sibling of #3263)
- #4017 [gnu-baseline] funsub 体以复合命令结尾无分隔符被拒(bad substitution),GNU 正常运行
- #4029 [gnu-baseline] bad substitution 诊断前引号定界符与反斜杠已丢失(#4025 钉 3 只断言 contains)
- #4035 ${#v} counts byte-marker (extended UTF-8) sequences by bytes instead of as one character — length-face residual of #3947
- #4062 [gnu-baseline] ${name:-default} treats import-preserved bash-managed scalars as unset
- #4080 [gnu-baseline] 未闭合 ${ 的诊断文本与 GNU 分歧:GNU 报 token 语法错误,rubash 报 unexpected EOF
- #### 作业控制与 wait(40 单)
- #2340 [bug] kill + wait 后已终止作业条目的保留与 GNU 不一致(jobs 计数 0 vs 1)
- #2660 [upstream] Async: background job inside a redirected compound command keeps the outer stdout (compound redirections not inherited)
- #2698 [A2-16] Killed job still listed by jobs after its death notice was printed
- #2729 [B5-07] Shell-only SIGINT during a foreground wait is re-raised after the child exits, whatever the child did
- #2730 [B5-08] Emulated `sleep` has no real child for the wait machinery: group SIGINT cannot kill it; shell-only SIGTERM kills the shell instantly
- #2731 [B5-03] Interactive monitor mode defaults ON without a terminal (piped -i route)
- #2735 [B5-09] Signal-death notices are printed even when the shell dies by the same signal
- #2768 [bug] Paren subshell inherits the parent job table; GNU starts it empty (jobs/disown diverge)
- #2769 jobs: boundary death notices carry the just-finished command's line stamp (GNU stamps the next line)
- #2774 interactive: shell claims monitor mode without job control; missing init diagnostics [B4-F05]
- #2777 jobs: stopped (SIGSTOP) job reported as Running; checkjobs wording follows wrong state [B4 obs]
- #2834 [bug] ^Z echo is glued to the Stopped notice (missing newline)
- #2835 [bug] ^C at an empty prompt defers the next exit (shell stays alive)
- #2836 [bug] Interactive shell stops itself on ^Z instead of only the foreground job
- #2837 [bug] ^C aborting a partial line swallows the next line whole
- #2838 [bug] ^Z stopping a sleep inside a for-loop hangs the shell (no prompt)
- #2849 [bug] kill -KILL %1 + immediate exit is refused: the SIGKILL death is claimed one command cycle too late
- #2851 [bug] Subshell inside a loop stopped by ^Z does not abandon the parent loop (r70 slice-4 residual R1)
- #2859 [GAP queue] Session jobs-count face for the host BackgroundJobs prompt segment
- #2886 Bare disown fails on a ^Z-stopped current job (disown: current: no such job) while jobs lists it with the + marker
- #2896 [bug] wait re-wait semantics are inverted: jobspec vs pid after the job is consumed
- #2897 [bug] wait in a subshell reaps the parent shell's jobs
- #2898 [bug] wait with a pid above INT_MAX is treated as a pid instead of an invalid job spec
- #2925 [bug] kill -INT does not kill a non-monitor async job; GNU wait returns 130
- #2927 [bug] kill rejects pid operands with surrounding whitespace; GNU parses them (strtol)
- #2928 [bug] Killed job-death notice printed on async reap in -c mode; GNU prints it only at wait
- #2929 [bug] Killed job-death notice bypasses exec 2> redirect; GNU writes it to the redirected stderr
- #2931 [bug] jobs -x accepts other options before it and swallows -l after it; GNU errors / runs the command
- #2933 [bug] wait -p A -p 1bad validates the first -p, GNU validates the last
- #2935 [bug] wait/disown stopped-job warning pins expect `bash:` prefix; D1 argv[0] prolog renders the absolute binary path
- #2948 monitor flag m in $- does not track job-control availability (set without a tty, never set for library one-shots)
- #2983 bats file_setup_teardown #8: kill -SIGINT -- -$PID reports No such process for the bats subprocess group
- #3051 PTY byte-level ^D exits immediately with stopped jobs, bypassing the EOF deferral (pipe Ok(0) path only)
- #3321 controlling_terminal_available 只试 stderr tty:后台进程组下 ctty 误判
- #3637 [bug] Async-job signal-death notice lost after an intervening foreground wait, doubled after `jobs`
- #3638 [bug] `wait %%` / `wait %+` after the job table drains resolve a stale current-job pointer
- #3656 CI: 普查步在 issue2875 转红后永不可达(lib 步先失败即终止 job)
- #3662 [bug] Background jobs never run when a defined function contains a background job inside a command substitution ($( : & … ))
- #3802 Windows: jobs table renders signal-killed job as `Exit 137` instead of `Killed`
- #3803 Windows: immediate wait after a job's death prints no signal-death notice
- #### case(23 单)
- #2678 [A1-F04] Tokens after case ;& / ;;& parsed as a new command instead of clause patterns
- #2679 [A1-F05] Case-header parse errors blame the wrong token and drop file:line source context
- #2687 [A1-F17] Unquoted < / > in case and [[ ]] patterns treated as literal characters instead of operators
- #2701 [B1-01] `:?`/`:=` semantics lost outside the main word pipeline (redirect words, arithmetic, case patterns, select lists, subscripts, nested fragments)
- #2740 [B6-R2] `case in esac` (missing subject) blames the previous line and drops the source echo
- #2743 [B6-R5] Case-clause error resync blames the resync token (esac) instead of the offending token
- #2744 [B6-R6] Case pattern list starting with `|` is accepted (acceptance bug)
- #2784 $(case x in) is intercepted by the comsub extractor's case-aware scan before the body parser runs (F4/R13 residual)
- #2830 [parser] 长 eval 串内 case 模式表反斜杠续行解析失败(modernish 初始化残废)
- #2916 bind -m keymap validation is case-sensitive; GNU accepts EMACS/vi etc. in any case
- #3000 fix: escaped reserved words + continuation in a case pattern list fail to parse (harden.mm shape)
- #3014 case 图案双引号段把 E400 转义对当裸 quoted-null 吃掉:带引用空字符的图案必 NOMATCH
- #3045 ${var=word} assignment is lost in case-subject / for-word-list expansion
- #3084 DQ-backslash case subject loses the backslash (Refs #3045)
- #3105 OS-argv positional params enter storage unencoded: bare carrier bytes stripped at word finalization (case/substring still see them)
- #3189 [bug] extglob quoted literal '[' never matches: case 'a[b' in @("a[b")) should match (#3050 family residual)
- #3235 case 子句命令的行戳来源与 GNU 分歧:应取 pattern 行(compoundcmd_lineno 族,#3209 残差)
- #3306 comsub unclosed-case residuals: space-separated a|/a;; bodies never arm the read-time extractor region (end-to-end rc 2, GNU 127); () empty-pattern forms stay disarmed at gate stage 4
- #3307 REPL completeness face still judges gate-released unclosed-case comsub units as unclosed (PS2 continuation instead of immediate syntax error)
- #3623 [bug] $(case $(cmd) in ...) nested single-command comsub in case subject truncates the outer substitution
- #3628 case-in-comsub: syntax-error diagnostics report the wrong unexpected token (GNU names the token)
- #3790 [bug] declare -l/-u apply full Unicode case mappings (İ→i+dot, ß→SS, ff→FF) and convert in the C locale; GNU uses locale-aware simple mappings
- #3834 comsub 内含 case + 尾随文本(body 位)仍报 syntax error:GNU rc0 / master rc2
- #### 补全(16 单)
- #2610 [complete] alias 跳后 -F/-C 绑定的 $1 仍是原敲词(GNU 传重建行首词)
- #2611 [compgen] 内建 -F 执行不绑定 pcomp_curcs,函数内 compopt 误报未在补全函数中
- #2719 [B2-F08] `complete -I` (initial-word) specs are stored in the regular compspec table (no itable); `complete -p` shows them where GNU errors
- #2724 [B5-10] Programmable completion resolves the compspec for the line's FIRST word, whatever segment the cursor is in
- #2726 [B5-12] COMP_WORDS handed to -F/-C completion hooks is truncated at the cursor and drops empty words
- #2727 [B5-13] compgen ignores the -o default and -o bashdefault fallbacks
- #2737 [B5-14] compgen/compspec -A user does not handle the `~` word shape (~ro matches nothing)
- #2738 [B5-11] API gap: `complete -E` / `complete -I` are engine-honored but unreachable through the host gate; no selective special-compspec query exists
- #2776 completion: compgen applies FIGNORE filtering; GNU compgen does not [B4 obs]
- #2846 [bug] Windows drive-letter words fail through complete_detailed under default COMP_WORDBREAKS (engine carve-out)
- #2856 [B5-11] complete -E / -I host gate unreachable — contract candidate Session::has_compspec_at
- #2900 [test] add real bash-completion distribution file to eco corpus + chain test triggering _comp_expand_glob eval (follow-up to #2876)
- #2904 [test] git test-lib: standing slice grows t9902-completion + t9903-bash-prompt; re-run slice on current master
- #2907 [test] git contrib: chain the real git-completion.bash (_git in a live completion attempt) + git-prompt.sh (__git_ps1 in a dirty repo)
- #3125 [bug] interactive source does not push a BASH_SOURCE frame (REPL-sourced file sees empty stack; blocks bash-completion suite fixture)
- #3951 [bug] `env` is registered as a shell builtin (compgen/enable/hash/builtin disagree with GNU)
- #### heredoc/herestring(23 单)
- #2676 [A1-F01] Heredoc body expansion applies := before :- (operator order differs from argument expansion)
- #2681 [A1-F08] ${x:=...} in a heredoc feeding an external command persists in the parent shell
- #2682 [A1-F09] Heredoc on an if/while/until condition command hangs the parser
- #2686 [A1-F16] Heredoc delimiter word undergoes command substitution at parse time (executes commands)
- #2761 heredoc: bodies on raw-empty null commands are never expanded (empty-words dispatch bypass)
- #2763 executor: heredoc-body funsub exit latch lingers into the next command
- #2765 parser: heredoc body pairing can cross frame tiers (3+ heredocs on one line spanning a nested if header)
- #2930 [bug] `<<` inside $(( )) in a larger word is mis-lexed as a heredoc; rest of the line is swallowed
- #3003 解析回归:含「. 」token 的行之后 && 衔接 heredoc 解析崩坏(t1300 中止于 198/219)
- #3021 [bug] empty-word command with heredoc returns comsub status instead of 0
- #3183 [bug] Diagnostic line-number accounting: suite shapes from #2665 D1 unprobed on current master (heredoc warning prefixes, break/eval/redir line attribution)
- #3195 heredoc/herestring redirector at/above RLIMIT_NOFILE soft limit is silently bound (Refs #2635 residual)
- #3578 heredoc: 限下双 heredoc 同 list 绑定丢失第一条(exec 14<<A 15<<B,#3576 复核带出的存量缺陷)
- #3654 heredoc: exec 先 herestring 后编号 heredoc 时 heredoc 绑定丢失(exec <<<w 14<<A,#3578 残差)
- #3655 heredoc: 同 fd 先 heredoc 后普通文件重定向时顺序不生效(exec 14<<A 14>file,GNU 后者胜)
- #3725 fd: loop heredoc bind restores a retired entry (same hazard as #3706)
- #3823 funsub ${ ... } 体内 # 注释/heredoc 解析死亡,${x:-$(...)} 闭合 } 漏入输出(真 lexer 层,#3813 续作)
- #3864 [bug] #3855 parameter_errors.rs regresses 30+ pin cells across funsub/heredoc/compound faces (census 86→120)
- #3893 exec: {var}<< heredoc 的 fd 分配在 list 尾部发生,晚于同 list 后续条目的 undo-save 认领(GNU 按位分配)
- #3894 simple command: {var}<< heredoc body 被错绑到 fd 0(GNU 只绑分配 fd,fd0 不受影响)
- #3906 funnel face: apply_dynamic_fd_var_redirects applies {var} heredocs after the plain list, not at list position (GNU: at list position)
- #3964 `$(</dev/stdin)` and `cat /dev/stdin` read nothing from a pipe or here-string in some positions
- #3967 `<<<` inside `$( )` is read as a here-document within a top-level `{ }` group
- #### 数组/assoc(31 单)
- #2595 [expand] 预扫描 :? 臂对下标内命令替换仍双重执行(#2558 残面)
- #2596 [expand] :? 嵌套进 :-/:+ 词内误致命(预扫描算子解析,字面下标+已 set 亦中招)
- #2631 [freeze-1.5.0] executor_tests hygiene: three wrong pins (BASH_ARGC/ARGV vs GNU 5.3.20) + parallel-fd full-run hang at mapfile -u3 pin
- #2634 [bug] extdebug 开→关后 BASH_ARGC 为空数组,GNU 为 ([0]="0")
- #2655 [upstream] PANIC: assignment through a nameref to an array element desyncs typed cell vs mirror store (variable_state.rs:1092/1106)
- #2656 [upstream] Arrays: `declare -p` prints elements in insertion order after delete + re-add (GNU: index order)
- #2657 [upstream] Arrays: `unset` of an associative element whose key is a quote/backslash character fails as "not a valid identifier"
- #2703 [A3-F2] Associative assignment with bracket-bearing keys stores the value with its quotes retained
- #2710 [A3-V1] test -v is blind to frame arrays FUNCNAME and BASH_SOURCE inside functions
- #2779 executor: pipeline brace-group staged input starves the next reader after mapfile -n (A2-11 residual)
- #2876 [bug] eval'd compound array assignment with an extglob element is a syntax error even with extglob on (bash-completion _comp_expand_glob shape)
- #2945 [bug] set -a wrongly marks arrays -x
- #2946 [bug] Associative array assignment evaluates the subscript twice
- #2963 [bug] set -a does not mark a scalar assignment over an existing indexed array
- #2971 export/readonly -aA: indexed attribute should win; assoc ghost remains
- #3065 locale funnel reads raw compound storage for array-bound locale vars (false warning + leaked 0x1D in message)
- #3097 locale funnel: element-assign and for-bind channels never fire for array locale vars; declare channel's funnel projection misses the array marks
- #3102 array mirror serialization panics/garbles multi-element assignments whose elements carry raw-byte pairs (\x1f proven)
- #3107 alias 定义后 declare -p BASH_ALIASES 在 debug 构建 panic:typed assoc cell 与镜像不一致(variable_state.rs:1106)
- #3192 单引号 / ANSI-C 引号段在数组汇合后缀位丢尾随空格(#2759 残余)
- #3203 scanner 保留字位镜像缺 ARITH_CMD/COND_END 臂:复合命令后下标词跨度在空格处断裂(a[1 2]=3 被读成 a[1 + 2]=3)
- #3225 bad array subscript 诊断在非字面/模式/子串展开形翻倍(4 次 vs GNU 2 次;#2527 同族残面)
- #3494 [bug] declare 'a[]=x' does not create the empty array GNU creates
- #3521 [bug] unset 经 nameref 指 assoc 数组 + 引号键仍报 not a valid identifier(#3493 残差)
- #3522 [bug] unset 索引数组反引号键静默 rc 0,GNU 为 rc 1(#3493 残差)
- #3573 Compound assignment to an undeclared name infers assoc from string subscripts; GNU builds an indexed array
- #3613 compound-declare 三重展开:错误 token 泄漏 PUA 载体且空数组被创建(GNU 未赋值)
- #3659 [bug] mapfile/read -a into declare -i/-l/-u array skips attribute conversion (GNU converts)
- #3660 [bug] mapfile -C callback reading mapfile's stdin sees EOF instead of the next unread line (GNU interleaves)
- #3950 [bug] `compgen -A arrayvar` / `-A variable` list declared-but-never-assigned arrays
- #3969 [bug] brace 反引号积粘连时 GNU 重扫报 bad substitution,rubash 字面保留/数组路径跨积配对执行
- #### [[ ]](18 单)
- #2646 [upstream] Parser: reserved word `then` not accepted directly after `(( ))` / `[[ ]]`
- #2683 [A1-F10] Same-line shopt -s extglob not seen by a later [[ ]] on that line
- #2750 [B6-R12] `[[ ]]` error resync: the follow-on `syntax error near` names `]]` instead of the following token
- #2782 conditional follow-on walk truncates a glued redirect item to its first byte (F4/R12 residual)
- #2785 a space before the closing paren extends a conditional's near-token by `)` inside comsub bodies (F4/R13 residual)
- #2827 [perf] [[ =~ ]] 每求值重编译 regex:compile_conditional_regex 无缓存
- #2987 bats timeout.bats: per-test timeout watchdog never fires; [[ ]] with '|' in generated -c code errors
- #3025 [bug] [[ -t a && -z b ]] returns 1, GNU returns 2
- #3100 [[ == ]] quoted RHS with extglob group never reaches the extglob matcher
- #3202 comsub 内条件式体错误被外层语法错误抢占:$([[ a == b c) ) 的诊断优先序与 GNU 不符
- #3227 cond 诊断: [[ a == #x ]] 的 syntax error near 令牌为 == 应为 ]](# 注释语义分歧)
- #3231 [bug] `[[ == ]]` quoted extglob group with a parenthesis inside the quotes does not match (GNU matches)
- #3382 [[ ]] 操作数算术致命泄漏到下一命令(#3287 同族:分派缺 abort 检查)
- #3428 [[ ]] 反斜杠续行输入重定向失败报完成行,GNU 报起始行
- #3545 [[ =~ ]] regex operand: carrier bytes (0x0c, 0x14..0x1f) from $'...' or after | never match
- #3730 fd: [[ ]] stdio save restores retired fd 1/2 entries (same hazard as #3706)
- #3783 [bug] test -v / [[ -v ]] reject positional parameter names (all-digit operands)
- #3791 [bug] [[ =~ ]] rejects bracket expressions containing non-ASCII characters in the C locale ("invalid regular expression")
- #### procsub(19 单)
- #2234 链式输出 procsub > >(A) > >(B) 载荷不穿链(GNU 穿链,物化模型边界)
- #2526 [procsub] 被弃生产者在命令边界被等满全程(10.3s vs GNU 立即返回)(#1959 残面)
- #3053 [bug] first-element line stamp gaps: time prefix and procsub redirect target (residual of #3028)
- #3210 procsub body 内报错行差一行:body 文本行来源面(#1184 族相邻)
- #3292 tests: lib-only runs false-red the issue2875 procsub cell when no rubash bin is built
- #3299 复合命令 stdin procsub 体诊断行取 ambient 而非目标止行(`{…} < <(...)` / `while … < <(...)`)
- #3337 [bug] backquote comsub 下 >(…) procsub fd 解析与 GNU 不一致(#3132 不透明规则只覆盖 $-组)
- #3353 内建命令参数词的中段进程替换不拼接 /dev/fd(组体已生成执行,外部命令路线正常)
- #3354 procsub 跨度提取的括号匹配对 backquote 组盲(组体内未配平括号使整段漏认领)
- #3491 [procsub] numbered-fd output procsub 3> >(...) delivers nothing / Bad file descriptor
- #3506 [bug] `N>>` append redirect with a procsub target is a parse-time syntax error (GNU accepts it)
- #3731 fd: procsub-body parse restores a retired fd 0 entry (same hazard as #3706)
- #3732 fd: procsub spawn-plan bind restores a retired entry (same hazard as #3706)
- #3806 fd: deferred procsub body is dropped after an input rebind (GNU runs it at close)
- #3900 residual(#3701): issue551 c6 procsub EOF line still red after #3897 — EOF line arm does not cover process substitution
- #3941 procsub bodies leak inherited fd 3 (S1): simple-command body `>&3` succeeds instead of EBADF
- #3980 procsub body builtin writing to inherited read-only fd fails silently (no Bad file descriptor diagnostic) — #3941 residual
- #3994 [gnu-baseline] procsub redirect on a command-less assignment is bogusly diagnosed ENOENT (x=1 < <(sleep 1))
- #4007 `case` subject: `<(…)` / `>(…)` text in a variable's value is run as a process substitution
- #### nounset(13 单)
- #3199 算术下标内 $ 展开绕过 nounset((( b[$undef]++ )) 静默,GNU 报 unbound variable)
- #3200 算术元素值递归求值不触发 nounset((( b[i]++ )),b=(x y),GNU 报 y: unbound variable)
- #3251 算术裸形 $ 展开绕过 nounset((( $undef )) 静默,GNU 报 unbound variable)
- #3252 无 nounset 时算术下标诊断整体缺席(GNU 有 bad array subscript + not a valid identifier)
- #3429 set -u 下重定向目标未绑定:GNU 中止脚本,rubash 打印诊断后继续执行
- #3454 set -u unbound redirect target on if/while/for/case/[[]] continues instead of aborting
- #3496 let 运算元 $ 形被 nounset 误捕:GNU 报算术语法错误,rubash 报 unbound variable
- #3497 算术下标单引号内 $ 键被 nounset 误捕:GNU 报算术语法错误,rubash 报 unbound variable
- #3498 eval 时裸名 nounset 报错误名:GNU 报 i,rubash 报下标 $undef
- #3516 [bug] fd-2 redirect on a pipeline member forces sequential drain — unbounded producer hangs (yes | head -3 2>/dev/null)
- #3540 [bug] set -u: unbound array element with a comsub subscript names `echo` and never runs the comsub
- #3563 算术 nounset 同族残差:[[ ]] 操作数文本扫描、预扫描不见 $((k=1)) 绑定、nameref/declare -i/元素赋值诊断
- #4001 [gnu-baseline] nounset (set -u) in redirect words: residual cluster 535/3429/1915 pins still red after closures
- #### glob(8 单)
- #2647 [upstream] Parser: unbalanced `[` inside an extglob group is a fatal parse error and silently truncates the script
- #2664 [upstream] Glob: extglob alternative may match `/` in pathname expansion; slash-in-bracket cases halt output entirely
- #2709 [B1-07] Glob: empty pathname components dropped next to `` (// arity collapse + result-name collapse)
- #3050 extglob group quoted literals never match: extglob_match_literal_with_case lacks the CTLESC escape arm (pure-ASCII repro)
- #3205 同行 shopt -s extglob 泄漏进同一读单元后段词法(&& 段 glob 生效 / 命令位 !( 误判),GNU 以单元开始态为准
- #3208 未引号未闭合 `[` 的 extglob 组在解析期误报 EOF:@(a[b) 应正常解析为 NOMATCH(lexer/skip.rs)
- #3224 extglob 反向泄漏:门开读入的模式节点被执行期 shopt -u 实时态臂拒绝,GNU 回退字面展开(#3205 残余)
- #3229 未闭合 extglob 组的解析诊断归属错误:报 ( 语法错而非 )-EOF
- #### trap(19 单)
- #2630 [perf] trap disposition reconcile fast path dead under entry-ignored signals (~2x per-command tax); multi_session_isolation crawl is this, not a deadlock
- #2638 [bug] trap -p 遇无效信号规格时整批丢弃有效项(GNU 逐项处理)
- #2640 [bug] 子 shell 的 EXIT trap 触发后,后续 EXIT trap 一律不再触发
- #2659 [upstream] Traps: ERR trap does not fire on a redirection error of a compound command (set -e consequence also missing)
- #2692 [A2-07] State-mutating builtins execute despite failed redirections (export/readonly/declare/umask/alias/trap)
- #2716 [B2-F04] EXIT-trap string syntax error replaces the pending exit status; diagnostics lack the `exit trap:` context
- #2824 [bug] 脚本模式 history 保存漏记 trap 行本身(记录行集与 GNU 不一致)
- #2828 [perf] 运行时文本(trap/eval/source)缺内容键 parse 缓存:现仅 DEBUG trap 单槽,且键须含 alias 状态
- #2926 [bug] kill -l/-s reject trap pseudo-signals ERR/DEBUG/RETURN; GNU maps them to 66/65/67
- #2969 [bug] DEBUG trap 内 break/continue:for 触发点误报 only meaningful,且体命令被吞
- #2991 command substitution inside a DEBUG trap handler hangs under set -eET
- #3093 [bug] first DEBUG-trap firing precedes the history write - 633;E carries the previous command
- #3320 verbose 读点覆盖残差三面:eval 逐行采样 / trap 动作读边界 / 交互 fallback 路
- #3324 pipeline stage 输出跨流失序:trap -p 列表与诊断合流顺序与 GNU 不符
- #3327 DEBUG/RETURN/ERR trap 动作重解析同样未置源名上下文(debug/return/error trap)
- #3409 [bug] EXIT trap fires inside a pipeline element (type ls | cat prints the trap output twice)
- #3553 复合命令自身重定向失败的 ERR trap 内 $LINENO 与 GNU 不一致(line_number_for_err_trap 未移植)
- #3641 [bug] Trap action reparse silently accepts unclosed quotes (EXIT/ERR/DEBUG)
- #4002 [gnu-baseline] signal/trap deferral residual cluster: 1034/1035/1036/698/977 pins still red after closures
- #### coproc(18 单)
- #2695 [A2-10] Coproc death is not noticed until wait (stale COPROC fds read as EOF)
- #2746 [B6-R8] Bare `coproc` falls through to external-command lookup instead of a syntax error
- #2802 [bug] Process substitution is passed literally in async/coproc commands instead of being expanded
- #2890 [bug] coproc with an empty compound body is accepted instead of a syntax error
- #2891 [bug] disown closes coproc pipe fds: reads/writes fail Bad file descriptor
- #2892 [bug] Second read past EOF on a coproc fd fails Bad file descriptor
- #2893 [bug] Coproc as a pipeline head prints a spurious Broken pipe diagnostic
- #2894 [bug] Coproc body does not inherit traps
- #2895 [bug] Coproc as a pipeline tail is not set up: COPROC stays unset
- #2918 coproc parse-error diagnostic echoes only the offending token; GNU echoes the full source line
- #3032 [bug] coproc invalid-identifier message shows unexpanded name, GNU shows (null)
- #3267 coproc rejects redirect-first body: `coproc >x name` is a syntax error
- #3301 coproc 折叠体诊断行取首叶起行而非止行(`coproc { foooo\\<NL>bar; }` GNU 2 / 我方 1)
- #3305 read coproc serve 未收敛到单位语义:分隔符首字节泄入记录、-n 单位首字节截断、续字节值分隔符逐字节误判
- #3633 coproc: a coproc childs exec >&- leaks the c2p write end, and COPROC stays bound after the child exits
- #3948 [bug] `read -u` on a coproc fd at EOF retires the coproc before any reap point
- #3949 [bug] `coproc cmd &` (trailing ampersand) does not establish COPROC/COPROC_PID
- #4008 `coproc … >file`: reading `${COPROC[0]}` never sees EOF
- #### 其他(131 单)
- #2606 [bind] 注册表以书写字符串为键,同一键的 \C-u 与 $'\025' 拼写并存(GNU 以字节序列 canonical 化)
- #2653 [upstream] Alias: alias whose value contains a newline is registered but never expanded
- #2705 [A3-T1] printf %(...)T ignores Olson TZ names (renders as UTC)
- #2721 [B3-F03] FUNCNEST overflow does not abort the enclosing command list (no DISCARD-class unwind)
- #2732 [B5-02] Interactive BASH_SOURCE[0] for REPL-defined functions is the shell name, not `main`
- #2733 [B5-16] histexpand (`H` in $-) missing on the `-i -c` and `-i script` interactive routes
- #2771 variables: POSIX-mode in-function kept-tempenv conversion unwired (split from #2720)
- #2797 [bug] pwd -L 照印 $PWD 变量原文,不做逻辑目录规范化
- #2798 [bug] pwd -P 在 cwd 已删时不报 getcwd 错,静默印陈旧目录且 rc 0
- #2799 [bug] 子壳启动丢弃继承的逻辑 PWD,重置为物理路径
- #2820 [bug] pushd 对非法 -<字母> 首参与目录参数报 too many arguments(GNU:invalid number + usage,rc 2)
- #2833 [GAP-13] bind/readline 装配面契约化 + 账本记账修正波(十轮复审产出)
- #2847 [bug] Ledger tripwire does not validate §6 item paths against actual exports
- #2853 [GAP-13 follow-up] bind_registry types never demoted to internal (Q-E remainder)
- #2860 [GAP queue] Retire the stray-close arm onto Session::run (GAP-2 parked arm)
- #2872 [bug] bind -s/-S macro listing prints control characters raw instead of canonical escapes
- #2874 [bug] bind -X listing prints the -x command unescaped; -x command text over-interprets \n and \t
- #2875 [test-harness] Input process-substitution child resolves its exe without the test-binary fallback
- #2879 [audit] Systematic sweep of the C0/PUA carrier protocol (markers.rs) — the recurring ESC/control-byte incident family
- #2885 Marker protocol enforcement gates: per-channel leak-golden coverage, blind-consumer lint, registry completeness (sweep #2879 follow-up)
- #2903 [test] oh-my-bash + bash-it: re-run the host (niu) chains now that the phase-1 interactive gate is closed (niu#806 family)
- #2906 [test] mvdan/sh: pin the 559-snippet extractor and add an execution differential (not -n only)
- #2908 [test] ruby-build: execute the corpus copy offline (--definitions + fake-definition install) as a golden
- #2910 [docs] eco manual-run list: one recorded home for the MANUAL faces (fzf live, ble.sh rendering, oh-my-niu gallery, nvm slow/iojs)
- #2914 bind: old-style keyname specs (Control-t:/Meta-x:) are silently dropped
- #2915 bind 'set: foo' is silently swallowed; GNU truncates at ':' and reports the variable name
- #2920 consumer_tests::shell_spelling_to_native drops the drive separator, failing a Windows test
- #2923 bind prefix-meta (ISKMAP) has no registry kind: sub-map never materializes in listings
- #2932 [bug] times prints stub 0m0.000s instead of real process times
- #2936 umask: bare '-' rejected, post-'--' words ignored, '--help' misparsed
- #2937 dirs/pushd/popd: option loop stops at the first index word; rotation and '-n' mishandled
- #2938 enable: '-a'/'-n' filter precedence wrong — '-an' prints nothing instead of the full listing
- #2940 type: '-type'/'--type' (and '-path'/'-all') not rewritten by the prescan
- #2943 [bug] type -a reports the cwd match once per empty PATH element; GNU collapses adjacent empty elements
- #2955 shopt: --help in option position does not print the long help (reports -- as invalid option)
- #2956 shift/return/break: numeric validity must be checked before the too-many-arguments (no_args) check
- #2957 set: apply loop lacks the '?' arm — set -o? reports an invalid option and returns 1 instead of usage + 0
- #2960 set -t (onecmd): script reader never honors just_one_command — execution continues past the setting command
- #2961 set: apply-loop 'i' (forced_interactive) has no state slot — set -ovi leaves $- without i
- #2965 [bug] printf %d with a multibyte char constant uses the code point in the C locale; GNU uses the first byte
- #2975 bare unalias exits 1; GNU exits 2
- #2981 bats file_setup_teardown #5/#6: nested-run failure trace lines land at different indices
- #2982 bats file_setup_teardown #7: bats_debug_trap/bats_error_trap command not found in the .src run context
- #2984 bats junit-formatter: four standalone failures (XML escaping, FD3 teardown_suite marking, setup error paths)
- #2985 bats load.bats tail #24/#26 fail standalone (failure-wording face)
- #2988 bats warnings.bats: BW01/BW02 stack-trace line lands off lines[4] in reentrant_run capture
- #3004 __git_complete_index_file 对含 \x1c–\x1f 字节的文件名返回空候选(t9902 #165)
- #3009 printf -v 写 LC_ALL 不发 setlocale 失败警告(赋值通道有),funnel 旁路写残余面
- #3013 契约补齐:BindKindView::Keymap 公开面 + 两侧账本行(#2993 后续)
- #3016 fix: U+E316 (PROMPT_ESCAPE_GUARD) typed-data folds to backslash in assignment concatenation
- #3018 [test] E6: debugger/JSON (DAP) channel has no marker-leak golden cell
- #3028 [bug] error line number after backslash-continuation is off by one
- #3035 [bug] error inside a sourced-file function reports the top-level script filename
- #3038 expand_prompt renders the E400 escape pair for a stored U+E314 value instead of the raw char
- #3060 [bug] for-loop over a locale variable warns twice on setlocale failure (GNU: once)
- #3074 DAP/JSON channel renders variable values undecoded (storage carrier encoding leaks into variables/evaluate)
- #3083 Debugger snapshot values for BASH_VERSINFO / DIRSTACK carry a literal \x1d text prefix (capture-time dynamic-declaration RHS extraction)
- #3106 emulated chmod treats a post-mode '--' as a file operand
- #3111 [tests] stderr assertions hardcode "bash:" prefix, red on the rubash binary path (issue639 9 cells + issue2754 1 cell)
- #3149 bats junit-formatter: nested fixture-suite tap13 lines leak into outer TAP stream in full-file runs (Executed 15 instead of 13, rc=1)
- #3185 [bug] help listing layout: two-column fill is not column-major at COLUMNS=80 (#2665 D5)
- #3194 bind -X 列序与 GNU 分歧:rubash 按注册序、GNU 按键序字节序
- #3196 pushd 不查 CDPATH(cd 同形正常)
- #3197 pushd // 被归一化成 /(dirs 顶与 PWD 均错)
- #3207 入口编码契约缺口:SessionBuilder env 种子与 VariablesView::set 裸 set_env 落存储(#3105 同机制残余)
- #3211 动态关联变量整表复合赋值被对账丢弃(BASH_ALIASES=([x]=…) 无属主落点门)
- #3219 ulimit 硬限角:父 shell 软/硬限读回 777/777,GNU 为 4096/4096(rlimit 虚拟化口径待定)
- #3230 [perf] bats gather 阶段在现 master 下病态缓慢(疑 #3177 后回归)
- #3275 删后原地重建目录的幽灵穿越:静止会话经复活路径读到新目录内容(GNU 仍坐死 inode 报 ENOENT)
- #3276 进程内模拟 mkdir/rm/touch 在已删 cwd 下同红(#3268 同族普查)
- #3289 issue977 pin delivery settle too tight: 500ms window flakes under box load
- #3318 [bug] $BASH is the resolved binary path instead of the invocation path
- #3322 set_args_may_set_onecmd 的 'o' 前截断漏检(set -ot)
- #3329 [bug] history -s drops empty / whitespace-only entries
- #3330 [bug] unix process_console_size stub: help width ignores window size when COLUMNS unset
- #3349 [bug] 已删 cwd 下 pwd -P 失败后,默认 pwd / pwd -L 仍印陈旧逻辑串——GNU 经 resetpwd 毒化后同面转红
- #3357 part_024 times 两格断言写死交互裸名前缀(应按名源链派生:bash: line 1:)
- #3359 [bug] Deleted file hashed via a relative PATH entry is not re-validated on lookup
- #3372 #3218 残差:追加漏斗与同胞消费者仍走折叠串键(同串碰撞未除)+ type 显示面
- #3391 fc -s 两面分歧:替换空结果 quirk 与脚本模式追加非替换(PR #3390 Owed)
- #3392 history 条目在 HISTTIMEFORMAT 设定前创建仍被盖墙钟戳(GNU 为空戳、显示 ??、-a/-w 不写 # 行)
- #3393 history -r 无条件重组多行条目(GNU 仅当 HISTTIMEFORMAT 在读之前已设才重组)
- #3395 cd -P 经相对 CDPATH 条目命中的回显被绝对化(GNU 回显条目+参数原样相对路径;#1329 follow-up)
- #3397 part_024 三格 dirs 期望缺陷:期望 dirs 跟随 PWD= 赋值(GNU 四形实测均不跟随;仅测试面)
- #3405 [bug] at EOF inside an unclosed compound, GNU reports the innermost open construct's error; rubash reports the outer EOF error
- #3410 [bug] set -- -t still routes -t as an option after -- (over-acceptance)
- #3413 空值 BASH_ARGV0 import 被当作未设置(回落 argv[0] 种值,GNU 尊重空值)
- #3416 [bug] Simulated cp stat classification: intermediate non-directory reported as ENOENT instead of ENOTDIR
- #3417 [test] issue2702 pin file: dead 'stderr' field is a second full-target -D warnings baseline point
- #3425 [bug] Simulated chmod stat classification: intermediate non-directory reported as ENOENT instead of ENOTDIR
- #3430 CI 不跑新回归钉 stem:Rust tests 只跑精选 nextest 表
- #3448 chmod apply body ignores dead cwd (node stat classifies, apply still uses string paths)
- #3457 [bug] missing/unreadable --init-file/--rcfile is diagnosed instead of silently skipped
- #3488 [ecosuite] bats timeout.bats #2/#3: timed-out test's process tree/pipe not reaped, outer run takes full 10s
- #3489 [ecosuite] junit-formatter: ANSI CSI sequences not stripped before XML escaping
- #3503 [test] #[cfg(unix)] helpers in unix-only pin stems break full --tests under -D warnings on Windows
- #3514 [test] dead_code in tests/issue3413_bash_argv0_empty_import.rs under -D warnings
- #3515 [test] unused-mut in tests/issue2071_test_empty_path_regressions.rs under -D warnings
- #3517 [bug] $SHELLOPTS 是静态物化快照:set -o/命令行/环境导入都不更新它(派生视图缺失)
- #3527 [test] dead_code in tests/issue2883_read_prompt_carrier_regressions.rs under -D warnings on Windows
- #3535 history: comment-char arming is sticky in GNU — reads after unset HISTTIMEFORMAT are still armed
- #3546 pattern bracket expression: carrier bytes (0x0c, 0x14..0x1f) inside [...] never match
- #3568 [bug] common::issue2197_wait_bounded_* 两 pin 在 Windows 环境失效(X299 双边 0/2,Linux 9/9 全绿)
- #3570 [bug][unix] Startup PWD repair rewrites literal backslashes in the physical cwd
- #3571 [ledger] api-ledger.md §5 wording 'by declaration patterns only' is stale after #3556 (paired rubash/niubash change)
- #3572 [ledger] check-api-ledger.py: #[path] only recognized on the immediately preceding line
- #3575 POSIX same_file arm missing: pwd -L prints stale path in a deleted cwd under set -o posix
- #3619 [bug] $'\u/\U decode consults the requested locale name, not the surviving locale after a failed setlocale
- #3625 截断 Mach-O(< 28 字节头)在 macOS 上被承认为原生、execve 失败路径未实测
- #3645 fc -s =x 空模式替换被当成命令名(GNU 视为替换)
- #3772 tests/issue1794: cfg(unix)-gated helpers are dead code under RUSTFLAGS="-D warnings" on Windows
- #3776 [test-hygiene] issue523 钉文件在 cfg(windows) 下 use std::io::Write 未使用,整树 -D warnings 检查在 Windows 上硬错(#3772 同类)
- #3779 [test-hygiene] 整树 -D warnings 普查:16 个钉文件共 31 处死代码/未用 import(#3772/#3776 同类,Windows 腿)
- #3786 [bug] printf %f-family rounds exact-half decimals down (1.2345 -> 1.234, GNU 1.235)
- #3787 [bug] echo -e drops \u/\U escapes for non-scalar code points under UTF-8 locales (GNU encodes them as-is)
- #3788 [bug] cd/pushd into a directory without search permission reports success although the directory change never happens
- #3789 [test-hygiene] issue3255 钉文件在 cfg(unix) mod interactive 内 use super::* 未使用,整树 -D warnings 检查硬错(#3772/#3776 同类)
- #3798 net bind `<>` opens two TCP connections where GNU opens one
- #3800 [test-hygiene] issue3255 interactive cell asserts literal bash: prefix but rubash: contains it as a substring
- #3816 字面控制字节常量损坏:32 个 CC 常量中 10 个被替换为元字符
- #3839 [ci] UTF-8 boundary hygiene gate red on master since #3630 (strmatch.rs 5 unreviewed widenings)
- #3851 regression: issue1868_empty_output_builtin_still_pairs_fifo_open hangs and panics on master
- #3866 [bug] #3861 leaves issue3782 negative-side wrap pin red on master (fail-first cell never went green)
- #3899 regression(#3897): unclosed compound assignment at EOF exits 2, GNU exits 1 (compat_issue78)
- #3909 [bug] extdebug enabled at startup (-O/--debug) does not latch the BASH_ARGC bottom frame
- #3918 残差:issue3185 茎恒红——pwd 表项 [-LPW] 扩展后期望格未重生成
- #3921 残差:零长匹配切半载体 pair;字面 U+E000 按一单元走边界(#3546 余项)
- #3924 pwd usage 行断言互斥:issue705/issue3348 断言 [-LP],issue2753/2791 断言 [-LPW]
- #3942 [bug] printf %q emits non-printable multibyte chars raw instead of $'\ooo' escapes in UTF-8 locales
- #3947 [bug] `$'\U...'` with a code point above U+10FFFF is left literal instead of being encoded
- #4059 [gnu-baseline] printf %T -2 start time shifted by imported SECONDS offset
-
WinuxCmd 1.2.2 2026-11-22
Changed
- locale value model (#1549): `locale` answers keyword operands from the
- new `utils:locale_db` layer, which projects the Win32 NLS database
- (`GetLocaleInfoEx`, `GetCPInfo`, `GetStringTypeW`) onto POSIX `lconv`,
- `strftime` and codeset semantics instead of the hard-coded
- `keyword_value()` table. The C/POSIX locale now reports glibc's empty
- monetary strings and `-1` flags, and `LC_ALL`/`LC_<CATEGORY>`/`LANG` select
- the values (the Windows user locale is the last resort). `-k` additionally
- accepts `grouping`, `mon_grouping`, `am_pm`, `d_fmt`, `t_fmt`, `d_t_fmt`,
- `t_fmt_ampm`, `p_sign_posn` and `n_sign_posn`.
- locale inventories and category dumps (#1549 phase 2): `locale -a`
- enumerates `EnumSystemLocalesEx(LOCALE_ALL)` in POSIX spelling with
- glibc-normalized codeset suffixes (always C/C.utf8/POSIX, sorted,
- de-duplicated) instead of the fixed representative list, and `locale -m`
- enumerates the NLS code page catalogue. `locale CATEGORY`,
- `locale -c CATEGORY` and `locale -k CATEGORY` now dump the glibc
- categories.def item stream for all twelve categories — C/POSIX is
- byte-identical to glibc 2.39 — with `LC_MONETARY`'s international
- `int_*`/`duo_*` block, `date_fmt`, week/calendar items, `measurement`, and
- the `LC_CTYPE` class/digit tables. `date`'s default output now comes from
- `date_fmt` (C/POSIX unchanged).
Fixed
- date locale formats (#1549): `%a/%A/%b/%h/%B/%p/%P/%r/%x/%X/%c` come
- from the `LC_TIME` value model instead of fixed C-locale literals, and
- `-R`/`--rfc-email` stays in English as GNU keeps it. `%h` now expands to
- the abbreviated month (`%b`), not the full month name.
- date input formats (#1813): `date -d` now accepts weekday and
- month-name forms, day+time composites, `TZ=` prefixes, `@`-epoch
- fractions, RFC 2822 dates, and `YYYYMMDDTHHMM`, matching the GNU
- coreutils parser shapes verified against coreutils 9.4.
Full list
- All 127 issues closed in the window (2026-11-03 – 11-22), grouped by command/theme (mechanical classification, one group per issue; titles verbatim):
- #### bsdtar (1)
- #1530 [bsdtar] 解 winlibs 发行 zip 在特定条目失败:Unsupported ZIP compression method (8: deflation)
- #### cat (2)
- #1803 cat: reading a directory on stdin must report EISDIR (rc 1), not silent EOF (rc 0)
- #1807 cat 读目录 stdin 静默 rc=0,应报 `cat: -: Is a directory`、rc=1
- #### chown (3)
- #1701 chown: no-op ownership change fails with "Operation not permitted" (rc 1) where GNU retains (rc 0)
- #1702 chown: -v reports on stderr and -c prints "retained" lines (GNU: stdout, -c silent)
- #1703 chown: empty user spec '' is rejected (GNU treats it as a no-op, rc 0)
- #### cksum (3)
- #1709 cksum -c accepts CRC/untagged-CRC checksum lines that GNU 9.4 rejects
- #1710 cksum: -a crc32b is accepted (GNU 9.4 has no such algorithm)
- #1752 cksum --base64 -a sha256 check file rejected (GNU accepts)
- #### comm (1)
- #1712 comm - -: exits 0 without GNU's "Bad file descriptor" diagnostic (residual #429)
- #### cp (5)
- #1647 [cp] 任何符号链接源都无法复制:cannot open ... Invalid argument(默认/-d/-L/-r/-a)
- #1648 [cp] -i 拒绝复制时退出码为 0(GNU 为 1)
- #1693 [cp] -r -H <dir-symlink> 失败:rc=1,目标目录未创建(GNU 跟随复制;#1647 拆出)
- #1757 cp no-dereference symlink recreation regressed after #1743 (rust2 cp wire)
- #1788 cp -n warning matches GNU 9.4 oracle — audit ruling (niubash#993 S10)
- #### csplit (1)
- #1591 csplit/pathchk/ptx bare -h is misrouted to --help (GNU: invalid option)
- #### cut (1)
- #1511 [C2] cut field mode breaks when field delimiter == record delimiter
- #### date (2)
- #1813 rust2 date: parse-datetime subset still outside the port (weekday/month names, combined day+time, TZ= prefixes, @fraction, RFC 2822)
- #1847 [gnu-baseline] date 解析覆盖缺口:Jan-2-2020(Mon-D-Y 连字符形)与裸 monday 0304 被拒,GNU 接受
- #### dd (2)
- #1707 dd: status summary lacks GNU's FULL+PARTIAL record shape and time/rate suffix
- #1708 dd: conv=ascii/ebcdic/ibm/block/unblock/ucase/lcase/swab rejected as "not supported on Windows"
- #### df (1)
- #1657 [df] --output 末列尾随空格、表头未按列宽对齐
- #### diff (1)
- #1527 diff: optional context forms (--unified=/--context=, -c/-u) still error past UINT64_MAX — needs OptionalUIntClamp
- #### du (5)
- #1656 [du] -L 不跟随目录符号链接参数,错误行缺原因
- #1670 [du] -L 下同一目录经链接名与实名到达时去重失效(dirlink + dir 打印两行,GNU 仅一行)
- #1748 du: -L 对目录符号链接操作数不跟随遍历目标
- #1754 du accepts --summarize together with --all (GNU rejects)
- #1755 du accepts --threshold -0 (GNU rejects)
- #### echo (1)
- #1621 [bug] echo -r/--repeat 仍被 int 解析拒收:退役扩展拼写下 rc 1,GNU rc 0
- #### env (5)
- #1622 [packaging] 默认版剥离 env 入口链接是误归类:env 不是 bash 内建,#!/usr/bin/env 的 git hook 无 env.exe 可用(niubash#1002)
- #1623 [bug] env 启动 #! 脚本失败(Permission denied/126):未接入 execvp 形 childproc 解析,#!/usr/bin/env 的 git hook 依赖它(niubash#1002)
- #1836 env: options after the first assignment are treated as the command (no getopt permutation)
- #1838 env: no env.exe in the installed link set — nested env broken once the shell builtin is gone
- #1839 env: -a/--argv0 cannot dispatch any suite command (multicall argv0 conflict)
- #### factor (1)
- #1814 rust2 factor: operands and stdin tokens above u64::MAX are rejected (u64-only number theory boundary)
- #### find (3)
- #1617 [compat] find 不认 --help/--version 双横线拼法:被当谓词报 unknown predicate(GNU 双拼法同义注册)
- #1633 [compat] find --help/--version 优先级偏差:预扫描先于表达式解析,错误 + help 组合时 GNU 报错优先(wc-b3 3a76db02 后续)
- #1718 [find] -foo -context(裸)先报 ctx 缺操作数,GNU 先报 -foo 未知谓词
- #### fold (1)
- #342 [candidate] fold: bug(fold): when passing $'\xFF' it reports incorrect error messages (uutils#12806)
- #### grep (10)
- #1507 [G11] grep: binary detection samples only the first 64 KiB on the streaming path
- #1508 [G12] grep -o with multiple patterns prints overlapping pieces instead of leftmost-longest
- #1509 [G18] grep count options above INT_MAX rejected instead of ceilinged (shared parser INT_TYPE)
- #1510 [G19] grep missing-pattern diagnostic shape (usage-text plumbing)
- #1515 [A5-G13 residual] grep context line numbers are never width-padded like GNU
- #1516 [A5-G17 residual] grep: an invalid --color value makes GNU print help to stdout and exit 0; ours errors
- #1521 grep/diff numeric options: (INT64_MAX, UINT64_MAX] band should clamp like GNU (residual of #1519)
- #1531 grep's default engine is ~73x slower than --no-pcre, and that flag is undocumented
- #1722 [grep] egrep/fgrep print the obsolescent warning on every call; GNU 3.11 prints none
- #1723 [grep] `grep x ''` reports 'Is a directory'; GNU reports 'No such file or directory'
- #### hexdump (1)
- #1522 Text-mode narrow-ctor operand readers (dircolors, hexdump -f, hostname -F) share the #342 filename class
- #### hostid (1)
- #1802 hostid: -h must be an invalid option (rc 1), like -v/-V — ho12 sibling gap
- #### hostname (1)
- #1526 hostname: -F is advertised in help, rejected by the parser, and its read branch is dead code
- #### join (1)
- #1713 join -z still splits newline-terminated input (residual #1008)
- #### ln (3)
- #1609 [ln] create_symlink absolutizes the link TARGET
- #1651 [ln] -i/-f 顺序未遵循 last-wins:-i -f 仍提示并拒绝
- #1675 [ln] -b 与 -i 同用时提示顺序与 GNU 不符(未提示直接备份)
- #### locale (1)
- #1549 locale 值模型重做(跟踪单):以 locale-database 模拟层替代 keyword_value() 值表
- #### ls (15)
- #1396 [perf] unsigned applets pay a per-spawn AV scan on security-software machines: git 20ms vs ls/which 0.9s (warm)
- #1504 ls: COLUMNS env var ignored when stdout is not a terminal (GNU uses it as the width fallback)
- #1536 [ls] COLUMNS face merged via #1534 diverges from GNU in five recorded ways
- #1542 ls: grid takes 2 columns at exact width where GNU takes 1 (<= vs strict <)
- #1543 [ls] grid column fit accepts an exact-fit layout (total == width) where GNU calculate_columns requires strict <
- #1572 [compat] ls/stat 对裸名缺 .exe 后缀透明:引擎 test/exec 已透明,同一文件多种答案(niubash#993 §3 stat 家族合并建议)
- #1639 [ls] -l 符号链接行缺 ` -> target`,链接 size 恒为 0
- #1640 [ls] -L 无法解引用符号链接:文件/目录链接均报 cannot access,rc=2
- #1641 [ls] 列填充偏差:-s 大小列不右对齐;-x/--format=across 列距多 1 空格、窄宽度少一列
- #1642 [ls] --group-directories-first 未把指向目录的符号链接归入目录组
- #1643 [ls] -Z 直接报 not supported 并 rc=1(GNU 非 SELinux 环境输出 '?' 且 rc=0)
- #1644 [ls/du] --si 未生效:仍按 1024 计算并输出大写 K(GNU 1000 进制、小写 k)
- #1645 [ls] 非法 --sort 值退出码 2 且候选表含 name/type(GNU rc=1,候选表不同)
- #1646 [ls] 引用风格差异:-b 不转义空格/非 ASCII;--quoting-style=shell 给 bak~ 多加引号并用 '\'' 转撇号
- #1777 [compat] 权限模型不自洽:ls -l 恒 777、stat 不认可执行扩展、find/test 已按 0755 判定 —— 需统一为单一 mode 值模型(niubash#993 §3 收尾,#1572 姊妹面)
- #### mv (2)
- #374 [candidate] mv: minorbug(mv): when -m is \x01 it do not quote it like gnu (uutils#13834)
- #1649 [mv] 目录覆盖普通文件时静默替换整个文件(GNU 拒绝,rc=1)
- #### printf (1)
- #471 [wording] bug(printf): big hex values, lead to mismatch in outputs last two digits when paired with rounding (uutils#13867)
- #### realpath (1)
- #1783 Unify realpath/readlink -f/pwd on the shell display spelling (niubash#993 §7)
- #### rm (2)
- #1650 [rm] 空操作数 '' 被当成缺操作数(GNU 报 cannot remove '')
- #1672 [native_path] 空操作数经 to_extended_path 被绝对化成 CWD(共享层隐患,rm 面已坐实 #1650)
- #### shred (1)
- #917 [wording] shred should treat - as standard output (uutils#12288)
- #### sort (1)
- #1812 rust2 sort: --debug accepted but emits no GNU key annotation or ordering diagnostics
- #### split (3)
- #289 [candidate] split: invalid number of chunks: '18446744073709551616' (uutils#10389)
- #1524 split numeric overflow deaths miss GNU's ': Numerical result out of range' suffix (residual of #289)
- #1711 split: -a overflow diagnostic drops the argument and ERANGE suffix (residual #1524)
- #### stat (6)
- #1611 [stat] %s for a symlink reports 0 instead of the target-name length
- #1652 [stat] -L 对符号链接报 ENOENT(GNU 解引用并输出目标信息)
- #1653 [stat] '-' 操作数不支持(回归 #1089)
- #1654 [stat] %N/默认头缺 ` -> target`,符号链接 %s 为 0(回归 #1058/#1611)
- #1655 [stat] TZ 环境变量被忽略:时间恒为本地 +0800
- #1787 stat %F: 'regular empty file' vs 'regular file' — audit ruling (niubash#993 S9)
- #### tail (3)
- #1513 [T1/SH1] bare tail --follow fails 'ambiguous argument' — shared parser collapses bare vs empty OptionalString
- #1637 tail follow unit test hangs on non-Windows: sys::Pid::dead() stub always returns false and the test is not cfg-gated
- #1638 tail/sys.rs FFI redeclarations conflict with du.rs/who.rs signatures (-D warnings hygiene)
- #### timeout (1)
- #1587 timeout: non-PE targets exit 126 with an empty stderr (no diagnostic)
- #### touch (3)
- #1704 touch: "-a -m" together drops the atime update
- #1705 touch -d/-t date grammar residual: bare fortnight, a fortnight, EST, leap second, year 0000 rejected
- #1706 touch: empty operand '' is treated as a missing operand
- #### tr (1)
- #1512 [R2] tr accepts a class/repeat construct as a range endpoint
- #### uniq (1)
- #1523 uniq counts: GNU clamps past UINT64_MAX, WinuxCmd parse-errors (residual of #1519)
- #### wpm (2)
- #1535 [wpm] shim 布局非 adapter 命令硬链接 payload:带私有 DLL 的包在 bin/ 启动 0xC0000135
- #1537 [wpm] shim 布局目录级映射安装不写 shims.map 注册:mingw 18 条命令装完即哑
- #### CI & tests (8)
- #1602 [ci] no workflow runs `cargo test` or `run-gate.sh` — Rust unit tests and gate rows never execute in CI
- #1604 [ci] cargo test and run-gate.sh are never executed by any CI job
- #1607 [test] canon dangling test asserts on its own scratch-dir name
- #1608 [test] chown from_filter assumes Administrators never owns the file
- #1610 [test] nice no-command test assumes the test process runs at Normal priority
- #1616 [ci] run-gate.sh is never executed by any CI job
- #1692 [CI] rust2-gate 在 main 上失败:GNU 侧零输出(81× g_rc=MISSING)
- #1761 [test] W 波接线后的陈旧 C++ pin 家族:mktemp/find/dir/cp-symlink 共 10 例在 main 上持续红
- #### Audits & tracking (2)
- #1462 逐命令对照 Oracle 源码审计:全命令面行为契约核验与修复(用户 2026-10-31 令)
- #1517 [实验 Q4] WinuxCmd 镜像关闭 193 条的分层抽验(win 侧需 1.5 天运行时复核)
- #### Cross-cutting & other (17)
- #1487 [ffi] winuxcore.dll 产品路径实证:调用不应用 shell 重定向(数据丢失)+ dispatch 期不轮询取消 + 出货认领面为空(niubash#727 门①③ 皆红)
- #1488 [2.0 长线] 命令库化:显式 IO 的库形态命令集(Rust 重写候选)与机械替换路线
- #1519 [G18 后续] 共享选项解析器缺无符号路径:(INT64_MAX, UINT64_MAX] 对 uintmax 类选项仍解析失败
- #1552 arm64 full 构建 LNK2001:rust2_bridge 引用 winuxcmd_abi_version/winuxcmd_run/winuxcmd_free_buf 未解析
- #1573 argopt: --help/--version 之后的未知选项未按 getopt_long 短路(GNU 先出帮助 rc 0)
- #1581 dispatcher: --help/--version 拦截扫描不按 argv 顺序终结(先出现的非法选项被后面的 --help 覆盖;--help --version 出顶层 banner)
- #1590 rust2/gate/run-gate.sh is a syntax error on master (missing done, POSIX_MODE guard dropped)
- #1595 childproc: shebang interpreter that is itself a script gets a duplicated argv token
- #1714 dispatcher: -V is intercepted as --version for every applet; GNU coreutils rejects -V
- #1726 [native_path] empty operand still absolutized to CWD via to_extended_path (shared layer; stat-only fix #1725)
- #1753 dead HashAlgorithm::Crc32b remains in src/utils/digest.cppm after #1747
- #1758 [bug] i18n-drift CI gate crashes in i18n_rust.py tokenizer on winuxcmd-driver/src/main.rs — gate permanently red, real drift unchecked
- #1767 [gate] GNU 9.4 首次诚实打分行清零:六分片分歧行清单(distro pin 后暴露)
- #1769 [bug] 1.x C++ tmp_base_w 的 /tmp 解析在 Git Bash 父进程下循环映射(TEMP=/tmp → /tmp)
- #1779 Synthesize /dev/zero, /dev/random, /dev/urandom, /dev/full for all tools (niubash#993 §5)
- #1785 ps: Git-Bash-compatible listing face + -W/--windows (WINPID column) (niubash#993 S5)
- #1791 mvn via junction reports SDKMAN-canonical Maven home — mechanism is rubash spawn canonicalization (niubash#993 S11)
-
oh-my-niu 2.1.0 2026-11-02
更新
- > Release state: a `v2.0.0` GitHub release dated 2026-09-12 already
- > exists, but it predates the framework-first code in this tree and
- > does not contain it. This section ships as v2.1.0, cut from
- > current master (in the Niubash 1.5.0 release sequence); do not
- > treat the 2026-09-12 artifact as this changelog's release.
- Release artifact: `oh-my-niu-2.1.0.zip` (`api = "niubash:[email protected]"`,
- `min_niubash = "1.0.0"`).
- Host compatibility: the `git` prompt segment (`[segments.git] id = "vcs"`
- in `prompts/segments.toml`) now resolves to niubash's native
- `SegmentId::Vcs` as of niubash 1.4.1 — branch / `branch*` / short SHA,
- themed `[git_clean]` cyan / `[git_dirty]` yellow, rendered in-process with
- zero child git processes. No bundle format change: every shipped preset
- already carries the segment (the `lean` preset is the documented showcase).
- Compatibility audit against niubash master (post-1.4.4, 2026-10-25):
- the built-in plugin/theme stack this bundle was originally designed
- against was retired by Niubash (niubash#145), so the framework now
- wires its own lifecycle onto the bash prompt surface — `precmd` and
- `chpwd` dispatch from `PROMPT_COMMAND`, `preexec` from the DEBUG
- trap — and `prompt-core` publishes the rendered prompt to `PS1`
- itself instead of relying on a host bridge consuming
- `NIU_PROMPT_LEFT`. The entry point no longer derives bundle paths
- from an unset `HOME` (niubash#546). Documentation (README,
- compatibility, migration, authoring, design notes) was aligned with
- the current host: rc is `~/.niubashrc`-only (legacy winshrc files
- are never read), plugin CLI state lives in `~/.niubash/plugins.json`
- (a pre-1.5.0 `plugins.toml` is converted once by `niu plugin migrate`),
- bundle updates are manual, and the retired `niu plugin` bundle verbs
- were removed from the guides. The framework smoke harness now
- reloads the entry point explicitly (`--reload`) and asserts the
- hook wiring end to end.
- Renamed the bundle from `oh-my-winuxsh` to `oh-my-niu` to match the
- niubash 1.0.0 brand. Installed `~/.oh-my-winuxsh` directories keep
- working as bundle roots — point `NIUBASH` at the old tree and source
- its entry point. Current Niubash has no bundle discovery of its own
- and reads neither layout.
- Bundle/plugin API identifiers move from the `winuxsh:` prefix to
- `niubash:` (`niubash:[email protected]`, `niubash:[email protected]`,
- `niubash:[email protected]`). Manifests may declare either
- `min_niubash` or the legacy `min_winuxsh` field.
- Entry point renamed to `oh-my-niu.niu`; scripts now use the `NIU_*`
- environment prefix (`NIU_PLUGINS`, `NIU_THEME`, `NIU_THEME_PLUGIN`)
- and the `NIUBASH` bundle-root variable.
- New first-party plugins: `command-timer` (per-command duration and exit
- code), `auto-env` (automatic `.venv` activation per directory),
- `dirmarks` (directory bookmarks), `git-fetch-reminder` (upstream
- divergence notices), and `env-sync` (push/pull shell config and the WPM
- package manifest through any rclone remote).
- All first-party pack manifests move to version 2.0.0 to match the
- bundle release.
- Framework fixes from the 2026-11-01 viability audit against Niubash
- master: `prompt-core` now maintains the `NIU_PROMPT_GIT` snapshot
- itself under the default `native` backend (the `{git}` segment was
- silently empty in framework sessions, where no host renderer runs),
- and the `keybindings` plugin installs its all-keymap preset through
- the `NIU_BINDKEYS` rc variable instead of claiming a
- `reedline-keybindings` host bridge that does not exist — the
- mode-scoped emacs/vi presets are reference data, because
- `NIU_BINDKEYS` has no per-keymap scoping.
-
oh-my-niu 1.0.1 2026-08-02
Changed
- Released first-party `.winux` source packs for Git, Docker, kubectl, npm,
- zoxide, direnv, dotenv, fzf, last-working-dir, and thefuck against the
- Winuxsh source lifecycle host.
- Added the framework entry point, directory-first official plugins,
- `prompt-core`, and theme plugins for minimal, classic, pure, compact,
- cyberpunk, forest, and ocean.
- Kept keybindings and command-not-found as bridge plugins while their low-level
- Reedline/provider call sites remain host-owned.
- Kept old `packs/` manifests as compatibility and package-review metadata over
- the directory plugin surface.
- Added `tools/smoke_framework.winux` for runtime verification with an
- installed Winuxsh binary.
- Updated bundle metadata with `api = "winuxsh:[email protected]"` and
- `min_winuxsh = "0.10.0"` so older Winuxsh hosts refuse this RC-first
- source-pack bundle.
- Added deterministic release packaging for `oh-my-winuxsh-1.0.1.zip` and the
- matching `.sha256` checksum file.
Compatibility
- Requires Winuxsh 0.10.0 or newer for source plugin startup and lifecycle hook
- loading through `.winux` files.
- Keeps process and WASM plugin protocols unchanged; WASM provider/effect APIs
- remain future host work.
Release Checklist
- Attach `oh-my-winuxsh-1.0.1.zip` and
- `oh-my-winuxsh-1.0.1.zip.sha256` to the GitHub release.
- Include this changelog entry and `docs/compatibility.md` in the release notes.
- Run `python tools/validate_bundle.py` and
- `python tools/package_bundle.py --check` before publishing.
- Run `winuxsh tools/smoke_framework.winux .` before publishing framework
- changes.
-
oh-my-niu 1.0.0 2026-07-31
Added
- Established the repository as the official Winuxsh plugin bundle rather than
- a legacy `.winsh` script framework.
- Added bundle metadata with `api = "winuxsh:[email protected]"` and
- `min_winuxsh = "0.8.3"`.
- Added first-party source packs for Git, Docker, kubectl, npm, zoxide,
- direnv, dotenv, fzf, last-working-dir, and thefuck with bundle-local `.winux`
- startup and lifecycle hook code.
- Added first-party builtin/native packs for command-not-found, prompts, and
- keybindings where host-owned provider/editor/prompt behavior still applies.
- Added bundle-owned aliases, completions, prompt presets, keybinding metadata,
- official theme assets, authoring templates, and public authoring documentation.
- Added deterministic release packaging for `oh-my-winuxsh-1.0.0.zip` and the
- matching `.sha256` checksum file.
Compatibility
- Requires Winuxsh 0.8.3 or newer for local bundle install, rollback, doctor,
- review, process plugin, and Phase 8 WASM command execution support.
- Uses pack manifest API `winuxsh:[email protected]`, process plugin protocol
- `winuxsh:[email protected]`, and WASM plugin protocol
- `winuxsh:[email protected]`.
- Keeps source, process, and WASM execution visible through manifest
- permissions because they can execute outside pure static asset loading.
Release Checklist
- Attach `oh-my-winuxsh-1.0.0.zip` and
- `oh-my-winuxsh-1.0.0.zip.sha256` to the GitHub release.
- Include this changelog entry and `docs/compatibility.md` in the release notes.
- Run `python tools/validate_bundle.py` and
- `python tools/package_bundle.py --check` before publishing.
-
niu-git v2.56.0.3 日期未知
-
niu-git v2.56.0.2 日期未知
-
niu-git v2.56.0.1 日期未知
-
niubash Unreleased 未发布 日期未知
Added
- `plugins::loader`: the generated-loader module — document format (banner, superseded-marker record, per-source sections byte-identical to the old block bodies), structural validation, atomic publish, the startup decision (opt-out switch → double-execution scan → load), the legacy-block scanner behind `migrate-rc`/doctor, and the one-time hint marker. Gate cases 359.4–359.9 and the 359.12 structure ratchet are pinned in `tests/rc_readonly_loader.rs`; the retired writers stay in `assets.rs` as an unwired rollback zone (design §4.3) with the ratchet asserting they are reachable from no verb.
- Shell-face startup is a measured contract (`scripts/perf/shell-face-startup.py`):
- execution-level `-c exit` timing for every installed face — the `niu.exe`
- payload, the `winuxcmd\bin` / `winuxcmd\usr\bin` `bash.exe`/`sh.exe` links,
- and the `C:\Program Files\Git\bin\bash.exe` convention slot — with a
- verify-before-record rule (a face that cannot execute prints the failure
- note, never a fast number), structural annotations (size, hardlink count,
- same-file-as-payload), a `Measure-Command` cross-check mode, and a
- deterministic `--check-links` gate: every declared face must be the same
- file as the payload `niu.exe`. A measured-time-ratio gate was tried first
- and rejected with data — shimmed faces measured 1.04–1.46x the payload
- while healthy relinked faces measured 0.91–1.26x, overlapping intervals,
- so no ratio separates the states without false kills (niubash#377 CR).
- Measured on the 1.4.0
- install (faces still the 243,200 B rubash forwarders): payload
- `niu -c exit` 27.2 ms avg, faces 42.1–47.3 ms (+9.8 to +15.0 ms, one extra
- process), the .NET slot 80.6 ms (+48 ms, two extra processes); after
- `--relink-shells --force` on the same engine the faces measure equal to the
- payload within noise (23.8–29.7 ms, same inode) with `$0`, `BASH_VERSION`,
- POSIX mode and the `NIU_SHELL` contract verified through the links.
- The installer sweeps retired shim shapes out of the PATH entry directory
- (niubash#376 hygiene): `{app}\winuxcmd\bin` and `{app}\winuxcmd\usr\bin` are
- cleared of `*.bak-*` / `*.old-*` / `*.niu-old-*` on install and uninstall —
- the same dead-weight class as the existing `niu.exe.old-*` sweep, observed
- live as `bash.exe.bak-1.4.0` / `sh.exe.old-shposix` (4 × 226,816 B on real
- machines; `*.niu-old-*` covers a relinker crash between park and drop).
- Live entry names are never matched. The PATH entry directory contract
- (hardlinks only, `usr\bin` off `PATH`, declared entry set) is now documented
- in `docs/src/installer.md`.
- The installer's slot contract is pinned by tests, not by a comment
- (niubash#398): the ruling that the install tree never claims the
- `C:\Program Files\Git\bin\bash.exe` convention slot — the installer runs
- `PrivilegesRequired=lowest`, cannot elevate, and the slot directory is
- admin-walled — lived only in a GitHub comment until now.
- `tests/installer_surface.rs` guards the surface statically: no absolute
- foreign path or `Program Files` reference anywhere in `niubash.iss`, every
- `[Files]`/`[InstallDelete]`/`[UninstallDelete]`/`[Icons]`/`[Run]` surface
- confined to `{app}` and Inno-managed shell folders, `HKCU\Environment\Path`
- the only registry value written, and the delete sweeps matched against the
- sanctioned retired-shape globs only. `scripts/installer-slot-probe.py` is
- the runtime leg: a pure user-directory sandbox replays the executable
- installer steps (`--relink-shells`, app-tree teardown) across a full
- install/uninstall cycle and asserts the decoy foreign slot — and the real
- Git Bash slot, read-only — byte-identical at baseline, after install and
- after uninstall, with no face name left outside the removed tree. The same
- probe records the niubash#377 quantification: forwarder faces cost one
- extra process per `-c` call (chain evidence: 2 processes below the probe,
- min ~36 ms) and collapse to the payload itself as hardlinks (1 process,
- min ~19 ms, same file as `niu.exe`).
- The factory prompt's git segment runs the user's own git instead of the
- in-process libgit2 dependency: one bounded
- `git status --porcelain=v2 --branch` inside a repository, and no spawn at
- all outside one (a few `stat`s, where `__git_ps1` forks anyway). Fidelity
- is the reason to switch — sparse checkouts, linked worktrees, submodules and
- `safe.directory` refusals are answered by the git the user actually runs
- (libgit2 silently dropped the branch segment on old-owner trees once) — and
- the cost is unchanged in practice: measured p50 26 ms / max 37 ms per prompt
- inside a repository, i.e. the bare git call and nothing more, against Git
- Bash's `__git_ps1` 100-300 ms (three to five forks). Isolation rules, one
- per incident: never through a shell (a missing git is an OS error, not
- `command not found` noise), stdout captured and stderr discarded (git
- warnings never reach the screen), `--no-optional-locks` +
- `GIT_OPTIONAL_LOCKS=0` (never takes `index.lock`), `-c core.fsmonitor=false`
- (never starts an fsmonitor daemon from a prompt), a 2 s timeout with the
- child killed, and no `CREATE_NO_WINDOW` (measured +28 ms per call: it makes
- Windows allocate a hidden console for every prompt; a console child inherits
- ours and shows no window). This also drops the `git2`/libgit2 dependency:
- ~1.28 MB of the binary and 323 locked packages (libgit2-sys, url/idna/ICU,
- cc, pkg-config, vcpkg, ...). Both niubash#145 startup invariants still pass
- (`legacy_niu_plugins_rc_reaches_prompt`,
- `legacy_framework_rc_reaches_prompt`): nothing is waited on before the first
- paint, and the prompt-scoped child is reaped by the prompt itself. A
- brand-new repository (unborn HEAD) now shows its branch, where libgit2's
- `head()` errored and the segment vanished.
Changed
- The user rc is read-only to plugin management — the generated loader replaces the managed block (niubash#359 case A, 1.4.2). The control plane (`~/.niubash/plugins.toml` + `~/.niubash/sources/registry.toml`) now drives a derived activation plane: `niu plugin` verbs render and publish `~/.niubash/generated/plugins.niu` (deterministic, byte-stable when the manifest is unchanged, validate-then-atomic-publish so a failed generation never replaces the last good one and a concurrent reader never sees a missing file — the #304 invariant moves to the loader). The host sources that loader BEFORE the us
- Double-execution guard for the migration window: the loader generation records the managed-block marker pairs it supersedes; at startup the host scans the rc read-only and keeps the loader OFF while any superseded block still executes (rather than run the plugin set twice), with a one-time hint naming `niu plugin migrate-rc`. Removing the old block by hand — the only removal there has ever been — turns the loader on. `niu doctor` reports the transition state read-only.
- New verb `niu plugin migrate-rc [--diff]`: the read-only migration diagnostic. It scans the rc for legacy managed blocks (exact and hand-edited marker shapes, with line ranges and a begin-without-end malformed state reported, never fatal), publishes the candidate loader generation from the current manifest, records the superseded markers, and with `--diff` writes the suggested post-migration rc under `~/.niubash/candidates/`. It never modifies the rc — the removal is always the user's own edit.
- Rollback switch: `NIU_PLUGIN_LOADER=off` (`off`/`false`/`0`/`no`) stops the host from loading the generated loader — plugins return to manual-source mode per the documented guidance. The switch only disables loading; it never writes anything, and unsetting it rolls forward.
- Control-plane writers are atomic (design §4.4): `save_spec` (`plugins.toml`) and `write_source_registry` (`sources/registry.toml`) swap whole files through a same-dir temp + replace rename, so a concurrent reader never observes a truncate window.
- clippy debt: `needless_borrow` cleared in `niubash-runtime` — first batch of niubash#450. `history.rs` passed `&mut state` — a `&mut HistoryState` already returned by `lock_mut()` — to `refresh_if_stale`/`sync_state`/`file_signature_lossy`, so each call built a `&mut &mut HistoryState` the compiler immediately dereferenced (11 sites across `reload_from_file`/`clear_memory`/`save`/`update`/`clear`/`delete`); `plugins/assets.rs` passed `&OMB_BLOCK` — a `&str` const — to `seed_legacy_block` in three rc fixtures. With the redundant borrows gone, the six `let mut state` bindings no longer need `mut
- clippy debt: `niubash-runtime` cleared to zero — niubash#450 closes. The 105 unique warning sites left after the `needless_borrow` batch are resolved across ~40 categories: `question_mark` let-else rewrites in `shell.rs`, `is_some_and`/`is_none_or` for `map_or`, `contains`/`contains_key` for `iter().any`/`get().is_none()`, `strip_prefix` for manual prefix slicing, `clamp`/`is_multiple_of`/`is_ascii_uppercase` for hand-rolled checks, `matches!` for the keymap-target bool match, `#[derive(Default)]` for four hand-written impls, `sort_by_key`, `io::Error::other`, `c""` literals over `b"...\0"`, `
- Windows path contract: the bundled WinuxCmd coreutils own the shell tree —
- they receive the shell's POSIX spellings verbatim and resolve them in-child —
- while every other child, native or a foreign POSIX runtime such as MSYS2 or
- Cygwin, always receives native Windows paths, with no per-child probe and no
- `MSYS_NO_PATHCONV`-style switch (unixwin/niubash#346). This rides the
- WinuxCmd shell-tree layer, so the bundled WinuxCmd pin must be bumped in the
- same release.
- Windows releases bundle niu-git 2.55.0.5 (`scripts/release/preinstall.json`).
- niu-git moves to `layout: flat`: the payload lands under `opt\niugit` and
- `mingw64\bin\git.exe` is mapped straight onto `usr\bin\git.exe`, so the `git`
- on PATH *is* the git binary — no winuxcmd dispatch hop, no launcher, no MSYS
- runtime and no perl in the process tree. `git --version` drops from 72–83 ms
- to ~14 ms (Git Bash: 45–103 ms) and `git status` to ~23 ms. Needs WinuxCmd
- 1.1.9 or newer (the POSIX-unlink hardlink break, unixwin/WinuxCmd#1183);
- the release pin already carries 1.1.10.
Fixed
- A DSR-silent terminal no longer kills the shell, and TAB completion
- commits (unixwin/niubash#373, the #355 follow-up). Interactive startup
- used to anchor the prompt with a `ESC[6n` cursor-position query and ABORT
- the line editor when it timed out: on a terminal that never answers
- (dumb terminals, `script(1)` recordings, some serial/tmux links) every
- startup paid a ~2.6 s stall, printed
- "niubash: line editor error: The cursor position could not be read within
- a normal duration", and exited before painting any prompt. The editor
- (reedline 0.50 -> 0.52) now treats the query as advisory — the prompt
- paints without a reply and later cycles stay interactive; Windows/ConPTY
- is unaffected either way (conhost withholds the client at session attach
- until the terminal answers, a terminal-side contract below niu, pinned by
- the new `tests/issue373.rs` harness). File completion now commits
- like command completion: `cat uniqfi<TAB>` splices the completed word
- into the line (the unique match commits outright, the ambiguous set
- commits its common prefix and still shows the grid) instead of leaving
- the suffix as a menu preview that Enter executed unexpanded — and Enter
- submits the line as typed (GNU accept-line), dismissing the grid, where
- reedline 0.52's menu would have consumed the first Enter as an
- acceptance. The dismissal rides only the completion TAB window: a
- Ctrl+R history search's accepting Enter stays the bare event reedline's
- search handler implements (a whole `Multiple` batch is dropped there —
- unconditionally wrapping it turned the search's Enter into a dead key). Measured TTP on the ConPTY harness is unchanged (niu 3.14 s
- vs GNU bash 3.26 s median, transport-floor dominated; internal startup
- ~70-140 ms — `scripts/perf/ttp-bench.py`).
- dirname/basename: slash-shaped operands stay verbatim — `dirname /a/b`
- reports `/a` instead of a drive spelling such as `A:`; the slash-drive
- argument mask now covers the filesystem-blind string tools
- (unixwin/niubash#346).
- `(A;B);)` is a syntax error on every non-interactive route, like GNU (unixwin/niubash#431). `niu -c '(printf a; printf b);)'` ran the subshell and exited 0 — and so did script files, `--encoded-command`, and piped/redirected stdin — where GNU bash 5.3.0 rejects the shape in every mode (`syntax error near unexpected token ')'`, rc 2, subshell unexecuted; the earlier "msys GNU tolerates the tail" record came from the `winuxcmd/usr/bin/bash.exe` launcher shim echoing niu back — rubash#852). The host fast path now parses with the engine's stray-close guard armed (`ParseLoopOptions::stray_close_is_
- Bundled gawk's CRLF output gets a byte-level release gate (unixwin/niubash#467). The `opt\gawk` payload is a text-mode mingw build — its CRT rewrote every `\n` as `\r\n` on write and folded `\r\n` into `\n` on read, while every other bundled applet does binary stdio, so `awk '{print}' > f` landed CRLF files and `ORS="\r\n"` doubled the CR. The fix ships in the bundled WinuxCmd forwarder (winuxcmd.exe / winuxcmd-shim.exe splice `-v BINMODE=3` ahead of the forwarded argv for `awk`/`gawk` — the build ignores the `BINMODE` environment variable, the `-v` assignment is its only lever, and a caller's
-
WinuxCmd Unreleased 未发布 unreleased (WP-R draft, 2026-11-14)
Added
- Library-form command core (rust2): commands are now plain functions
- (`run(args, &mut Io, &Ctx) -> CmdResult`) with explicitly injected IO,
- explicit cwd/env, no process-global mutable state, and a returned status
- instead of `exit()`. The staticlib is folded into `winuxcmd.exe` by the
- same MSVC link (one image, one CRT); there is no separate runtime and no
- C++ fallback body. 50 applets are wired at this snapshot, 32 more have a
- green differential gate and wait for a wiring wave (`DOCS/2.0-inventory.tsv`).
- `winux-regex`: a std-only BRE/ERE engine (GNU extensions,
- backreferences, POSIX leftmost-longest, glibc capture/empty-iteration
- rules) shared by the Rust side; `grep -P` keeps the existing pinned PCRE2
- face (`DOCS/2.0-regex-engine-decision.md`).
- Streaming stdin ABI v2: `winuxcmd_run_stream` adds a pull callback so
- a command can read stdin incrementally without a whole-buffer copy; host
- stop maps to GNU's 124, host read failure to the command's own status.
- `b2sum`, `sha224sum`, `sha384sum` and `tac` route through it; segmented
- feeding is byte-identical to the v1 buffer path.
- Rust I18N seam: `tr!` gives every runtime message a stable key, an
- English fallback, named placeholders and a never-panicking fallback on a
- broken/partial catalog; translations are injected per invocation through
- the host, and the zh-CN catalog is published from the separate
- `unixwin/winuxcmd-i18n` repository.
- Gate/QC tooling: three-way differential gate (Rust driver / GNU WSL
- oracle / 1.x exe), generated case tables, a note registry, and QC audits
- for note rows, win rows, help surfaces, POSIX gaps and duplicate cases.
Changed
- `sort` is a GNU `sort.c` port: accepts `+POS1`/`-POS2`, `-S100k` and
- `-y100`; 64 MiB plain sort measured 12.0x faster than the 1.x C++ sort on
- NTFS (2.1x with `-n`); `-R` is deterministic (FNV-1a order) by design.
- `seq` uses an exact fixed-point path: no f64 drift past 17 significant
- digits and no non-terminating sub-ulp steps; error output no longer
- appends a spurious `Try 'seq --help'`.
- `numfmt --field` preserves the original field width (aligned columns).
- `expand`/`unexpand` accept GNU's obsolescent digit/comma lists
- (`-4,8`); `sort` accepts the traditional key forms; `hostid`/`users`
- accept `-h`; `ln -s` creates real symlinks through
- `ALLOW_UNPRIVILEGED_CREATE` without absolutizing the target.
- Digest and `rev` operands are literal: the product no longer
- glob-expands operands (the shell does, as with GNU); `rev -h/-V` prints
- the util-linux text instead of a parse error.
- `readlink -f/-e/-m` print `/`-separated canonical names; `rmdir -p`
- no longer appends a trailing slash; `tee` uses GNU's unquoted
- open-failure name; `touch` accepts the space-separated `-d` form and
- rejects the 1.x `-t .99` stamp.
- `stat` returns 0 for `-c %C` and follows GNU's format-slot last-wins
- and escape rules; `ln -i` decline returns 1.
Fixed
- Corrected 1.x behaviors recorded as `r=c:no` in the gate ledger: GNU
- quoting in digest errors; digest/`rev` literal operands; `expand`/
- `unexpand` comma lists; `tee` diagnostics; `rmdir -p`; `touch -d/-t`;
- `ln -i`/`-s`; `stat -c %C`; `false --help` status; `seq` diagnostics and
- decimal stepping; `numfmt` field padding; `xargs`' 26 quoting/EOF/batch
- divergences (library side).
- The full list is in `DOCS/2.0-MIGRATION.md` §5 with per-row evidence.
Removed
- `echo -u`/`--upper` and `echo -r`/`--repeat`: GNU `echo.c` treats
- them as data; 2.0 prints them as data (rc 0) instead of applying an
- extension or rejecting the int value (#1621).
- `fmt -m/--preserve-headers`, `-P/--skip-prefix`, `-x/--exact-prefix`,
- `-X/--exact-skip-prefix`, `-T/--tab-width`: not GNU fmt options; 2.0
- follows GNU's invalid-option path.
- `fold -c`/`--characters`: not a POSIX/GNU fold option.
- `numfmt --unit-separator`, `-M`, `-l`, and the `Z/Y/R/Q` input
- suffixes as accepted by 1.x: GNU 9.4 rejects them.
- PCRE2 SDK tree from release payloads (1.2.0 change, still in effect):
- archives carry runtime `usr/bin` plus docs only.
更新
- > Draft for captain review. The wiring waves that land between this snapshot
- > and the tag change the per-command counts; refresh them from
- > `DOCS/2.0-inventory.tsv` and the release gate run before publishing.
- 中文摘要:2.0 把命令核心换成库形态 Rust(显式注入 IO、显式环境/cwd、
- 返回状态码、静态链接进同一个 exe),命令集/帮助面/edition/WPM 不变;
- 退役 `echo -u/-r`、`fmt -m/-P/-x/-X/-T`、`fold -c`、`numfmt
- --unit-separator/-M/-l` 等 1.x 私有拼写;修正 `ln -s`、`stat -c %C`、
- `rmdir -p`、`touch -d/-t`、digest 操作数、`expand/-4,8`、`seq` 精度等
- 记录在案的 1.x 偏差。逐命令差异见 `DOCS/2.0-MIGRATION.md`。
Platform
- Documented Windows subsets unchanged: NTFS mode bits (owner-write ↔
- read-only attribute), ownership via `SetNamedSecurityInfoW` where the OS
- grants `WRITE_OWNER`, `df` inode columns 0/`-`, SELinux capability
- probes, the `!<fifo>` named-pipe bridge, and symlink creation requiring
- Developer Mode or elevation where the OS refuses.
- Open `compat-gap` issues at this snapshot (#1639–#1657, #1670, #1672,
- #1675) are 1.x file-operation bugs tracked for the Rust rewrites, not
- 2.0 regressions.