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
[parity] case arm with for-loop-var pattern loses glob meaning #675
An unquoted $p holding glob characters must stay glob-active in the pattern position. GNU expands each pattern per arm (execute_cmd.c:3712 expand_word_leave_quoted) and matches via strmatch (execute_cmd.c:3736); quoting (not assignment shape) decides literalness.
Suspect owner: src/executor/compound_exec.rs:2489 expand_case_pattern (+ :2941 quote_aware_case_pattern) — the loop-var value likely arrives pre-quoted/marked from the for-list path (src/executor/command_words.rs:471). Note #662's static classifier correctly rejects $... to the slow path, so the bug is in the slow path's quoting/marking, not the fast path.
Fix up as PR #683 (branch fix/issue675-casearm-loopvar): for-list bind sites now run the storage-side dequote (subst.c:4807). Root cause was upstream of case (glob-dead loop vars generally). casearm 30/30, ifcase 55/55. Gate running.
Landed as #683 (squash-merged ebb2bb5). Root cause was upstream of case (for-list bindings skipped dequote; loop-var glob was dead generally). casearm 29/30->30/30, ifcase 55/55; gates identical (niu 49=49).
Activity
caomengxuan666 commentedon Oct 16, 2026
Fix up as PR #683 (branch
fix/issue675-casearm-loopvar): for-list bind sites now run the storage-side dequote (subst.c:4807). Root cause was upstream of case (glob-dead loop vars generally). casearm 30/30, ifcase 55/55. Gate running.fix(executor): dequote for-list bindings so loop vars glob (#675) (#683)
caomengxuan666 commentedon Oct 16, 2026
Landed as #683 (squash-merged ebb2bb5). Root cause was upstream of case (for-list bindings skipped dequote; loop-var glob was dead generally). casearm 29/30->30/30, ifcase 55/55; gates identical (niu 49=49).
docs: changelog entry for #675 for-list dequote (#683)