Skip to content

[bug] case/compound diagnostic residuals batch 2 (4 shapes from #390/#391 matrix expansion: arith-subscript EOF wording x2, compound-subscript folding swallows unclosed paren, declare -c marking layer split) #413

Closed

Description

@caomengxuan666

Matrix-expansion residuals found by wt39/caseerr while fixing #390/#391 (all beyond the original 4-family scope; two-shell evidence in target/issue-suites/results/wt39-caseerr/). Next case-family lane takes these.

From #390's 109/113 matrix (diagnostic wording/line/rc)

  1. (( x=([))] )) — rubash reports ]' near-token vs GNU's eof-from-( at line 3 (both rc 2).
  2. ((X=([a]))] — wording/line divergence (same rc).
  3. (X=([)]) with a trailing line — rubash silently accepts vs GNU rc 2: the lexer-layer compound subscript folding swallows an unclosed (.

From #391's 13/14 matrix

  1. declare -a d=([ empty ] =) and the -c evaluation path still split differently from the script-file arr= main path — the declare operand pipeline has an independent marking layer.

Pointers already established

Activity

  1. added a commit that references this issue on Oct 3, 2026
  2. caomengxuan666 commented on Oct 3, 2026

    @caomengxuan666
    MemberAuthor

    Landed on master (wt48/resid413, CI tracked): all four shapes fixed through the compound-assignment element-leading-[span (parse.y:5635-5651 P_ARRAYSUB matched-pair) and the character-level dparen discriminant (parse.y:3726-3733 read_token → 4895-4948). 32/34 two-shell matrix byte-identical; two residuals byte-identical on base (pre-existing). The f4-c` framing was proven a wsl argument-corruption artifact (real axis = declare-vs-bare).

  3. added 2 commits that reference this issue on Oct 13, 2026
  4. 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