Skip to content

[bug] FUNSUB body: escaped quote inside ${ echo \"}\"; } mis-lexes #211

Closed

Description

@caomengxuan666

COMSUB lane known gap from the #195 implementation: an escaped double quote inside a ${ cmd; } body mis-lexes. All 16 other FUNSUB probes are byte-exact vs GNU 5.3.0. Anchor context: parser.h:85 FUNSUB_CHAR, parse.y:4475-4516 SX_FUNSUB.

Activity

  1. caomengxuan666 commented on Sep 27, 2026

    @caomengxuan666
    MemberAuthor

    已修复并合入 master(commit 341bf41):funsub 体终结符现在只在命令位置生效(parse.y:5400 read_token_word 的 \ 特例 + :3465 special_case_tokens),四个体扫描器全部移植,issue 复现形与 26 例矩阵字节一致。残留边缘(体中途 { 组合,由船长专属 continuation.rs 的行门控处理)另行跟进。感谢报告!

  2. added
    bug
    area:parser
    on Oct 17, 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

    area:parserbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions