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] Compound assignment: glued quoted array expansions (pre"${arr[@]}"post) collapse to one element #2417
Found en route to #2387 (PR #2415): in compound assignment, glued forms (pre"${arr[@]}"post) and (pre"${!foo_@}"post) collapse to ONE element in rubash; GNU bash 5.3.20 produces one element per expansion member with the literal text glued to the first/last (3 elements for a 3-element array). Plain (unglued) quoted forms are correct after #2387; the glued token route bypasses the fan-out arms in the compound-assignment dispatcher (src/executor/assignment_expansion.rs).
Fix destination: compound-assignment expansion — the fan-out must apply per-member even when the quoted expansion is glued to literal text on either side, matching subst.c's word-expansion result list handling.
Regression seed: a=(${arr[@]} baseline shapes with arr=(x y z): (pre"${arr[@]}"post) should be (prex y zpost).
PR #2451 (merged, master d44dce1). Glued quoted spans (pre"${arr[@]}"post) now fan out per member at the single-string funnel, per arrayfunc.c:557 per-word expansion. My verification: issue2417 pins 5/5 green (scrubbed-fd harness). Documented leftovers (subscript-prefixed glued elements, glued slice/operator spans) are recorded in the PR report for a follow-up wave.
Activity
Merge pull request #2451 from unixwin/fix/expansion-2441-2428-2417
caomengxuan666 commentedon Nov 1, 2026
PR #2451 (merged, master d44dce1). Glued quoted spans (pre"${arr[@]}"post) now fan out per member at the single-string funnel, per arrayfunc.c:557 per-word expansion. My verification: issue2417 pins 5/5 green (scrubbed-fd harness). Documented leftovers (subscript-prefixed glued elements, glued slice/operator spans) are recorded in the PR report for a follow-up wave.