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
Nested-eval parse divergence: modernish sys/cmd/harden.mm:404 — rubash -n rejects what GNU accepts #308
Fixed by wt13/fixpack (2a99e99, master d99124c): update_compound_boundary_stack (shared by 10 scanners) treated reserved words inside case patterns as compound openers (a function body containing (while|break) opened a phantom loop that swallowed the closing brace) and let the newline after IN consume the may-open slot so a real clause paren was misread as extglob nesting. GNU anchors: parse.y:3177-3186 CHECK_FOR_RESERVED_WORD (inside PST_CASEPAT nothing but post-pipe esac is recognized), :3379/3396 IN sets the state, :3788 close-paren clears it, :1225/1231 newline_list. Full harden.mm -n now rc=0 == GNU; 22 keyword matrix clean; case/parser/extglob2-3/comsub zero diff.
Activity
fix(#308): reserved words in case patterns are pattern text (PST_CASE…
caomengxuan666 commentedon Sep 29, 2026
Fixed by wt13/fixpack (2a99e99, master d99124c): update_compound_boundary_stack (shared by 10 scanners) treated reserved words inside case patterns as compound openers (a function body containing (while|break) opened a phantom loop that swallowed the closing brace) and let the newline after IN consume the may-open slot so a real clause paren was misread as extglob nesting. GNU anchors: parse.y:3177-3186 CHECK_FOR_RESERVED_WORD (inside PST_CASEPAT nothing but post-pipe esac is recognized), :3379/3396 IN sets the state, :3788 close-paren clears it, :1225/1231 newline_list. Full harden.mm -n now rc=0 == GNU; 22 keyword matrix clean; case/parser/extglob2-3/comsub zero diff.