{"version":"2.1.333","anchor":"shell-snapshot-writes-env-lines-via-a-here-string-in-some-sh","canonical_anchor":"shell-snapshot-writes-env-lines-via-a-here-string-in-some-sh","heading":"Shell snapshot copes when printf has been redefined","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/shell-snapshot-writes-env-lines-via-a-here-string-in-some-sh","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Shell snapshot copes when printf has been redefined\n\nIn some shells, Claude Code now saves its shell snapshot lines another way and uses the built-in printf when yours is redefined\n\n**What**\n\nClaude Code saves a snapshot of your shell's setup so the commands it runs see the same environment you do. In some shells it now writes the snapshot lines with `cat <<<` instead of the method it used before. If `printf` has been redefined as a shell function, it calls `\\printf`, which skips your redefinition. Other shells keep the old method.\n\n**Why**\n\nIf you have replaced `printf` with your own shell function, the snapshot is less likely to break because of it.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}