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
[bug] $'...' unit between two comsubs in one word is folded to a space (echo A$((1+1))B$'\n'C$((2+2))D prints one line; GNU prints two) #379
#376 was the whole-word $(( admission mis-slicing bodies (fixed by the real span scanner). This shape has alnum-adjacent material (so the whole-word fast path correctly declines), and the corruption happens in whatever reassembles the word after the embedded walker processes the two arithmetic spans — the ANSI-C $'...' unit between them loses its decoded newline and becomes a space, i.e. it looks like a field-split/join step is being applied to mid-word material that GNU keeps as literal word content (parse.y:5493-5523 read_token_word keeps $'...' as one word unit; subst.c:11229 expand_word_internal decodes it in place, no splitting for quoted/word-internal content).
Probe hint
The lane's stash-A/B probe lives with the #376 artifacts; minimal matrix to carry into the fix lane's regression file: $'\n' / $'\t' / $' ' between two comsubs, between comsub and literal, and standalone echo $'a\nb' (control — believed already correct), quoted and unquoted word positions.
Landed as c52a721 (wt29/rubugs lane ffcfe33e). Root cause: once a word's comsub spans put it on the field-split path, the DECODED ANSI-C whitespace was split as expansion-result data; GNU quotes every decoded byte (parse.y:5560-5575) so it is word data. Fix: ANSI_C_IFS_GUARD (U+E401) emitted at the lexer decode bottleneck (inside the existing markers.rs PUA registry; codepoint empirically clear of the comsub payload ranges E001-E100 and the E400 literal-escape registry), converted to IFS_GLUE at split sites and dropped at every value boundary. echo A$((1+1))B$'\n'C$((2+2))D prints two lines like GNU; 11 new tests; 33-suite ledger identical. NOTE for the record: this adds one registry member in the String word domain (not the Vec carrier domain) — flagged for owner review per the TYPED-markers rule. CI green.
Activity
docs: record wt24 recovery (#376/#369/#370 closed, #377-#379 opened, …
fix(#379): ANSI-C decoded blanks are word data, never field separators
caomengxuan666 commentedon Oct 1, 2026
Landed as c52a721 (wt29/rubugs lane ffcfe33e). Root cause: once a word's comsub spans put it on the field-split path, the DECODED ANSI-C whitespace was split as expansion-result data; GNU quotes every decoded byte (parse.y:5560-5575) so it is word data. Fix: ANSI_C_IFS_GUARD (U+E401) emitted at the lexer decode bottleneck (inside the existing markers.rs PUA registry; codepoint empirically clear of the comsub payload ranges E001-E100 and the E400 literal-escape registry), converted to IFS_GLUE at split sites and dropped at every value boundary.
echo A$((1+1))B$'\n'C$((2+2))Dprints two lines like GNU; 11 new tests; 33-suite ledger identical. NOTE for the record: this adds one registry member in the String word domain (not the Vec carrier domain) — flagged for owner review per the TYPED-markers rule. CI green.fix: #743 update exp.snap for Windows CI (pre-existing $'...' IFS gua…