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
compound-assignment spaced elements are not glob-expanded (arr=([ empty ] =) keeps bracket words literal; GNU expands) #391
(i.e. [ empty ] is treated as a bracket-glob word and expands to the matching file e)
rubash:
<[><a]=b><]><=><value><[><empty><]><=>
(words stay literal, split on the spaces inside the parens)
Notes
The first four lines of C04 (indexed/subscript/quoted/single-quoted elements) are byte-identical between the shells except the ~/x element, where only the $HOME prefix differs (platform noise).
Raw artifacts: target/issue-suites/results/wt33-373/run/C04_compound_elements_behavior.{gnu,rub}.*.
The old test asserted a spaced-subscript structured parse that GNU never had; tests/parser_tests.rs now asserts the raw marker form and references this issue for the residual glob divergence.
Root cause located (wt37/gapfix1): parse.y:5634-5645 — under PST_COMPASSIGN an element-leading [ takes the P_ARRAYSUB matched-pair branch, swallowing quoted ] and the whole whitespace-containing word; without a trailing = the element becomes the paren-glob word. Fix belongs in the same element splitters #389 touched (workload ≈ one more #389). Next wave.
Landed (CI green d47cef6): the element-leading [ now follows parse.y:5635-5651's P_ARRAYSUB branch through all five splitter layers — quote-aware subscript detection (the old find(")=")/split_once('=') misjudged and silently dropped elements), whitespace inside the matched pair is data (5645-5647 strcpy), storage gate keeps the field intact; glob per subst.c:13205-13276 without field splitting. Reproducer byte-identical plus the a+=b/[1]+=2/quoted-operator families; 13/14 matrix (residual filed); issue391 suite 5/5; baselines unchanged.
Activity
tests(#373): update parser white-box suite to current GNU-verified AS…
caomengxuan666 commentedon Oct 2, 2026
Root cause located (wt37/gapfix1): parse.y:5634-5645 — under PST_COMPASSIGN an element-leading
[takes the P_ARRAYSUB matched-pair branch, swallowing quoted]and the whole whitespace-containing word; without a trailing=the element becomes the paren-glob word. Fix belongs in the same element splitters #389 touched (workload ≈ one more #389). Next wave.fix(#390): parse-error wording/rc parity for the arith-EOF, subscript…
fix(#391): compound-assignment element-leading [ spans are one glob w…
caomengxuan666 commentedon Oct 2, 2026
Landed (CI green d47cef6): the element-leading
[now follows parse.y:5635-5651's P_ARRAYSUB branch through all five splitter layers — quote-aware subscript detection (the old find(")=")/split_once('=') misjudged and silently dropped elements), whitespace inside the matched pair is data (5645-5647 strcpy), storage gate keeps the field intact; glob per subst.c:13205-13276 without field splitting. Reproducer byte-identical plus the a+=b/[1]+=2/quoted-operator families; 13/14 matrix (residual filed); issue391 suite 5/5; baselines unchanged.fix(#413): compound-assignment element [ spans and the char-level dpa…