Skip to content

单引号 / ANSI-C 引号段在数组汇合后缀位丢尾随空格(#2759 残余) #3192

Closed

Description

@caomengxuan666

#2759 的同机制族残余(#3123 接手复核 REPORT §7 复核成立;基底既存,非 #3123 回归)。

复现(LC_ALL=C.UTF-8):

  • ${arr[@]}' ':头 ,GNU
  • x${arr[@]}' y ':头 ,GNU
  • ${arr[@]}$' '、${arr[@]}$'x ' 同样丢尾随空格

不受影响:全部双引号形(" "、$" "、$"x " 与 GNU SAME)、单引号前缀位、标量路径、$'\t'。

根因:段扫描器只给了双引号段 quoted 段待遇,单引号 / $'…' 段从未获得同等待遇;基底二进制呈完全相同的三处分歧。修法方向:段扫描器扩到单引号与 ANSI-C 引号段。

不打回 #3123(接手简报口径不扩面)。归宿:1.5.1 待派。

Activity

  1. added this to the 1.5.1 milestone on Nov 9, 2026
  2. added
    bug
    gnu-baseline
    on Nov 9, 2026
  3. caomengxuan666 commented on Nov 11, 2026

    @caomengxuan666
    MemberAuthor

    按用户 2026-11-11 令,队长未完工的 rubash 队列整体移交 Uarz,本单 assignee 改为 Uarz。

    规矩见置顶单 #3341:assignee 即认领;先对照 GNU bash 5.3 源码定语义(引 file:line)再修、按机制修不打地鼠;每个修复带仓内回归钉并给出 fail-first 证据;第一笔提交即开 draft PR;不自合、不自关;正文 Fixes/Refs 口径与同句误关单纪律照 #3341。开工前先查本单是否已有 open PR 覆盖,有则先审 PR、不另起实现。

  4. caomengxuan666 commented on Nov 11, 2026

    @caomengxuan666
    MemberAuthor

    本单在队长侧有半成品工件(未提交的修法/回归钉/考古卷宗在本机工作区),用户 2026-11-11 令:半成品仍由队长自己做完。assignee 改回队长,本单不在 Uarz 认领区内,请勿开工。队长侧续跑完成后照常开 PR 走复核合入。

  5. added a commit that references this issue on Nov 11, 2026
  6. caomengxuan666 commented on Nov 11, 2026

    @caomengxuan666
    MemberAuthor

    Fixed by PR #3368 (squash-merged as f5d0aec70c10766fb46df5b952676e4564af6c78, 2026-11-11), captain-verified.

    • The fix (a VerbatimQuoted segment variant in command_substitution_values.rs, so '…'/$'…' spans survive junction cooking verbatim until the final dequote stage) was verified byte-faithful against the original on-disk patch during captain review.
    • Regression pin tests/issue3192_array_junction_single_quote_suffix.rs: top-up on the base fails exactly the four defect cells (5 passed / 4 failed); on the merged head 9/9. Reviewer re-ran both sides on the verification box; lib bilateral failure name-sets empty; final-head CI zero red.

    Closing as fixed on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buggnu-baseline

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions