Skip to content

bash_completion:189 quoting chain (escaped-quote runs + $'...' fragments) is a fatal EOF error — blocks the whole bash-completion framework #138

Closed

Description

@caomengxuan666

Found by the open-source corpus scan (scop/bash-completion — the framework's master script fails to PARSE under rubash, so every completion depending on it is broken; highest real-world impact of the scan).

Line 189 area: runs of escaped quotes ('' chains) combined with $'...' fragments inside word text.
GNU bash 5.3: whole file parses, rc 0. Rubash: unexpected EOF while looking for matching )``, rc 2.

GNU owner: parse.y:5305 read_token_word() — the backslash-quoted-quote branch keeps escaped quotes as word text; quote state spans the whole word.
Rubash owner: src/lexer/quotes.rs / scanner.rs word finishing (same family as the getopts_long idiom fixed in f8b6328, but for backslash-dollar-quote fragments).

Artifacts: target/gc/corpus-web/raw/repro/ (verified reproducer), divergences.txt entry 1.

Activity

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

    @caomengxuan666
    MemberAuthor

    与 #144 为同一缺陷族(bash_completion:188/189 引号链)。#144 携带完整证据(最小复现 probes/mini/c02-c05、skip 188/189 后整文件 source 成功且 130 条注册与 GNU 一致、452 文件隔离矩阵),本轮按 #144 修复推进,本单关闭为重复。

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