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
Both halves fixed and merged via PR #2491 (merge d269fb0).
Heredoc nounset scan: the scan for unguarded expansions now runs on the escape-prepared body text (the same text the expansion pass consumes), so \${x} — an escaped dollar, literal in GNU — no longer counts as a reference and no longer errors under set -u; the other three [bug] $[...] 提取不感知引号状态:外层双引号内含未转义引号的形状定界分歧(#2217 残差,既存) #2227 escape shapes keep working.
Respawn attribute transport: the four respawn env-build sites now iterate env_vars_snapshot(), so attribute markers (+A etc.) materialize on the wire form; a respawned subshell child keeps the parent's associative-array attributes instead of degrading them to strings.
Verification (harvest): branch rebased onto master; local scrubbed pins on the rebased tree — issue2486_assoc_assign_subshell_nounset 5/5, issue2486_heredoc_escaped_dollar 4/4; full CI + cross-repo ledger green on the pre-merge head, canary green on the final merge head.
Activity
fix(#2486): heredoc nounset scan must run on the escape-prepared body
fix(#2486): respawned children must inherit variable attributes
caomengxuan666 commentedon Nov 2, 2026
Both halves fixed and merged via PR #2491 (merge d269fb0).
\${x}— an escaped dollar, literal in GNU — no longer counts as a reference and no longer errors underset -u; the other three [bug] $[...] 提取不感知引号状态:外层双引号内含未转义引号的形状定界分歧(#2217 残差,既存) #2227 escape shapes keep working.env_vars_snapshot(), so attribute markers (+Aetc.) materialize on the wire form; a respawned subshell child keeps the parent's associative-array attributes instead of degrading them to strings.Verification (harvest): branch rebased onto master; local scrubbed pins on the rebased tree — issue2486_assoc_assign_subshell_nounset 5/5, issue2486_heredoc_escaped_dollar 4/4; full CI + cross-repo ledger green on the pre-merge head, canary green on the final merge head.
Merge pull request unixwin#2491 from unixwin/fix/2486-setu-heredoc-assoc