You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
extglob.tests:220 unclosed [ inside case pattern aborts our side (179-line pre-existing divergence band) #317
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.
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.
Activity
caomengxuan666 commentedon Sep 29, 2026
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.
fix(parse): port GNU's function-head `(' shift + yyerror abort for ex…