Skip to content

fix: set listing of scalars with bare C0 bytes lacks $'...' quoting #3017

Closed

Description

@caomengxuan666

现象

set 列举含裸 C0 字节的标量时不加 $'…' 引号;GNU 加引号。

v=$'a\x11b\x1fc'; set | grep '^v='
$ rubash
v=a\x11b\x1fc          # 裸解码字节
$ bash
v=$'a\021b\037c'

说明

期望

与 GNU bash 5.3 一致:set 对含控制字节的标量值用 $'…' 引用。修复按机制(修时核对 declare 列举是否同源、同修),带回归钉(钉名带本单号)。

归宿

#2879 PUA 协议执法门残余(#2885 车道探针发现,队长复现立案)。

Activity

  1. added
    bug
    on Nov 7, 2026
  2. added
    gnu-baseline
    area:builtins
    on Nov 7, 2026
  3. caomengxuan666 commented on Nov 8, 2026

    @caomengxuan666
    MemberAuthor

    Closed via merged PR #3044 (squash merge a63cb7c0, head 4db71894 +
    update-branch head 9bf144f6, base 578999f0).

    Captain verification: pins on head 8/0; transplant onto base 4 passed / 4
    failed (fail-first); full lib head 1197/0/4 and base 1197/0/4, identical
    three-counts; RUSTFLAGS="-D warnings" check rc=0; hygiene under bash
    rc=0; fmt clean; CR zero; neighbour stems on head all green (issue2972
    16/0, marker_leak_golden 10/0, issue1157 1/0, issue1366 2/0). CI on the
    merged head: 10 pass + 1 skipping.

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

Metadata

Metadata

Labels

area:builtinsbuggnu-baseline

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions