Skip to content

[bug] 引号家族词位置残余 5 例(case 模式 / herestring / 管道词 \x17 泄漏)——修复面=WORD_DESC quote-flags 移植;另 tar.bash ERE {n,m}(452 矩阵唯一 FAIL) #153

Closed

Description

@caomengxuan666

来源

#144 修复(5aed4af9)的 36 例矩阵残余(基线同矩阵 11/36 → 修后 32/36,剩 5 例全部预存、根因一致)+ bash-completion 452 文件隔离矩阵的唯一 FAIL。

残余清单

探针与双侧产物随 #144 修复过程存档(wt 分支 target/q144/cases/、results/;452 矩阵 iso.gnu.txt/iso.rub.txt)。

  • n11/n23:case 'a'\''b'' ...` 的 case 模式位泄漏
  • n25:<<<'a'\''b''` herestring 位泄漏
  • n26:管道词位 \x17 载波泄漏
  • n17/c06:不成对反引号 fatal 措辞(` vs ' 定界符命名)——定位在 continuation.rs 未闭合构造栈(captain 专属文件)
  • tar.bash:ERE {n,m} 量词(独立预存桶,非引号族)

根因与修复面

词值携带裸反引号/标记而词消费者(case 模式、herestring、管道)的解码边界不统一——正解是 GNU WORD_DESC quote-flags 的移植(w->flags 携带引号语义位,消费者按 flag 处理而非重新扫描)。单点补丁已被实验证明会破坏 echo 'ab'`(载波不得离开赋值管线)。

关联

#144(赋值管线本体已修)、#133(complete -D,130 与 131 之间的那 1 条)。

Activity

  1. added
    bug
    on Sep 26, 2026
  2. caomengxuan666 commented on Sep 26, 2026

    @caomengxuan666
    MemberAuthor

    词位置残余部分已在 29714d5 落地(bb13d239):三个词消费者(case 模式位=quote_aware_case_word 走 raw 分段、herestring 位=raw 通道+统一物化解码、管道 argv 位=物化点 decode_word_position_carriers)按 GNU 锚点(execute_cmd.c:3695-3699、redir.c:373、subst.c:4865 dequote_word 一族)各走正确路径,赋值载波管线零改动。36 例矩阵(重建,产物 target/issue-suites/results/q153-worddesc/)内容 100% 一致;echo 'ab'` 等既有形态零回归;true-baseline spot 无新差。n17/c06(fatal 措辞)经 6 形态重建不可复现——#144 的 ' 追踪修复疑似已覆盖,continuation.rs 无需动。**完整 WORD_DESC 终态迁移(消除哨兵本身)为已识别的第二步(>2 天量),另议。本单剩余:tar ERE {n,m}(在 L-F 性能车道随修,落地后一并关闭)。

  3. caomengxuan666 commented on Sep 26, 2026

    @caomengxuan666
    MemberAuthor

    tar ERE 部分已在 6421c96 落地(d8bc78ec):[[ =~ ]] 的 POSIX 字符类桥接修正——字面量 [ 成员转义(pathexp.c:257 移除引号后 ] 不是 ere_char :139,glibc 接受 rust regex 不接受的形态)。cond-regexp1/2/3 + cond-error1 套件 0 diff;tar.bash 隔离加载双侧通过——452 矩阵的最后一个 FAIL 归零。词位置残余已由 L-I 车道修复(见 #153 评论区历史)。本单全量关闭。

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions