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
comsub body with reserved-word case patterns swallows the rest of the line #405
A command-substitution body whose case patterns are reserved words (else|done|time|esac) makes the comsub swallow the rest of the line: the follow-up printf > file never runs (file absent) while rc stays 0. GNU runs the line and writes v=<> status:0.
Reproducer (probe wt37-374 K003)
v=$(case k in else|done|time|esac)forfin 1 2 3;doprintf x;done esac);printf'v=<%s> status:%s\n'"$v""$?"> OUT
GNU: OUT contains v=<> status:0, rc 0. rubash CLI: OUT absent, rc 0.
Note: the wt33 first-pass conversion of this test was based on a corrupted probe that claimed IDENT; the mechanically re-extracted probe shows the divergence.
GNU owner
parse.y parse_comsub / subst.c command_substitute body end detection.
Activity
tests(#374): wt37 round-2 gap families ignored with tickets + residua…
fix(#405): comsub case-depth machine clears the pattern region at the…
caomengxuan666 commentedon Oct 3, 2026
Landed on master through the wt38 pool recovery waves (CI green); see the issueNNN regression suite and lane matrices on the ticket.