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
Found by wt10/contperf while validating the <<< operator fix (rubash#292): after skip_parenthesized_unit correctly treats <<< as one here-string operator, the comsub BODY parse layer still mis-handles the construct — echo $(echo hi <<< y)#tail reports an unexpected-EOF diagnostic on both the pre- and post-fix builds, while WSL GNU Bash 5.3.0 prints hi#tail (the ) followed immediately by # is word text, not a comment — matches the atomic-skip path's reading). Suspect the here-string operand scan inside the comsub body parser. GNU anchor: parse.y read_token redirection-word assembly for r_deblank_string here-strings.
Fixed by wt11/lexmix (a5ae33b4, master): the command-substitution collector took the heredoc branch at the FIRST '<' of <<< correctly, but the loop re-entered at the SECOND '<' with a misaligned lookahead, reading <<< y) as a heredoc << with delimiter 'y' and an unterminated body that swallowed )#tail. Both the collector and its copy_command_substitution_heredoc twin now consume <<< as one operator (token_boundary=true, so <<< #x keeps the comment, matching GNU). Anchors: parse.y:3692-3704 read_token '<' case — after << one more char returns LESS_LESS_LESS (:664); ')' followed by '#' is word text (:3630-3643). Verification: 30-case matrix (word-initial/prefix/assignment RHS/quoted/nested/pipes/case/if/multiple substitutions/##/#-) with stdout+stderr byte-identical to WSL GNU 5.3.0; eval/backtick/<<-/<<) edge probes; 12 new regressions; full cli_tests A/B vs base shows zero new failures.
Activity
fix(#302,#304): function NAME() headers in incremental readers; <<< o…
caomengxuan666 commentedon Sep 28, 2026
Fixed by wt11/lexmix (a5ae33b4, master): the command-substitution collector took the heredoc branch at the FIRST '<' of
<<<correctly, but the loop re-entered at the SECOND '<' with a misaligned lookahead, reading<<< y)as a heredoc<<with delimiter 'y' and an unterminated body that swallowed)#tail. Both the collector and its copy_command_substitution_heredoc twin now consume<<<as one operator (token_boundary=true, so<<< #xkeeps the comment, matching GNU). Anchors: parse.y:3692-3704 read_token '<' case — after<<one more char returns LESS_LESS_LESS (:664); ')' followed by '#' is word text (:3630-3643). Verification: 30-case matrix (word-initial/prefix/assignment RHS/quoted/nested/pipes/case/if/multiple substitutions/##/#-) with stdout+stderr byte-identical to WSL GNU 5.3.0; eval/backtick/<<-/<<) edge probes; 12 new regressions; full cli_tests A/B vs base shows zero new failures.fix(#305): heredoc-word `#` tail - dangling redirect after `<<WORD` i…