来源:huck 443 条 divergence issue 全量审计(issues-audit)we-diverge 增量,A 组高危 A7;huck 侧 issue #778 互证。 审计基准:GNU bash 5.3.0(WSL stdin 法 oracle)× rubash origin/master 764b9dde debug 构建。 ## 最小复现 ```sh declare x; echo "[${!x}]"; echo done ``` | | GNU bash 5.3.0 | rubash 764b9dde | |---|---|---| | stdout | `[]` + `done` | (无) | | stderr | (无) | `x: invalid indirect expansion` | | rc | **0** | **1**(中止,done 不跑) | ## 依据 - `declare x`(无赋值)创建 declared-but-unset 变量;`${!x}` 对其间接展开取空串——不是致命错误。 - rubash 把 declared-unset 当"不存在"处理,走进 invalid-indirect 致命路径,整脚本中止。 - 边界:`set -u` 下 `${!ref}` 未绑定的行为(`!ref: unbound variable` rc1)双侧一致(见 LEDGER huck#54 复验),分歧仅在 declared-unset 非严格模式这一格。 ## 跨实现互证(huck) - [huck#778 "`${!v}` on a declared-but-unset variable is a fatal indirect-expansion error..."](https://github.com/jdstanhope/huck/issues/778)(已修复)。 ## 优先级建议 **P1**(控制流错:合法惯用形 `${!x}` 整脚本中止;`[[ ${!x+set} ]]`/间接探测类代码直接死)。
Activity
fix: Wave1 P1 batch - trap exit unwind, pipeline redirect rejection, …
caomengxuan666 commentedon Oct 12, 2026
Fixed by #561 (Wave1). Vendored-bash anchors and RED-then-GREEN regression evidence in the PR.
Merge pull request #1503 from unixwin/fix/bulk-r3-slice3