Skip to content

[bug] comsub 失败状态在词内 $? 的传播时序与 GNU 不一致(rubash 0 / GNU 1) #485

Closed

Description

@caomengxuan666

发现于 #375 性能攻坚(DEBUG trap 形状基准)。\n\n复现:echo "$(cd nope && pwd)" $? —— 子命令替换内 cd 失败后,GNU bash 5.2.37 (msys) 的 $? 报 1;rubash 报 0。\n\n影响:set -e / 错误处理脚本依赖 comsub 失败可见性的场景会静默吞错。\n\n环境:Windows 10 22H2,rubash master(2026-10-10)。

Activity

  1. caomengxuan666 commented on Oct 12, 2026

    @caomengxuan666
    MemberAuthor

    复测已补跑(2026-10-12,origin/master 764b9dde 全量构建 + GNU 83 套 true-baseline 全量重跑,宿主 WINUXSH_ROOT 钉扎已剥离):

    证据与逐套件数字:docs/nameref-suite-residual-gnu-race-20261012.md(PR #506)。

  2. added
    bug
    family:S8
    on Oct 17, 2026
  3. added a commit that references this issue on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfamily:S8

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions