Skip to content

extglob.tests:220 unclosed [ inside case pattern aborts our side (179-line pre-existing divergence band) #317

Closed

Description

@caomengxuan666

From wt13/fixpack (base-verified on 116b12a): extglob.tests line 220's unclosed-bracket-in-case-pattern shape aborts our parse where GNU continues; ~179 lines of the suite's diff band trace to it. Fix should collapse most of the remaining extglob suite diff. Reproducer: extract extglob.tests around :220 into a standalone probe and compare with WSL GNU Bash 5.3.0.

Activity

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

    @caomengxuan666
    MemberAuthor

    Fixed by wt16/fix16 (8064c2f, master): unclosed_array_subscript_line treated | inside extglob pattern groups as a token separator, so b[ was misjudged an array subscript and the scan searched to EOF for ], aborting the whole script. The pre-scan now mirrors the runtime extended_glob state (GNU incremental read-execute: the shopt line has already executed) and consumes PATTERN_CHAR + ( groups as word units (parse.y:5464-5490, syntax.h:90). extglob suite 178 -> 16 diff lines (all 16 environment-class a:b NTFS-invalid names); extglob2/extglob3 zero. The remaining extglob-OFF yacc ( diagnostic needs unclosed_input_close_char_posix extglob-awareness — filed separately as #332.

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