{"version":"2.1.281","anchor":"sandboxed-bash-on-macoslinux-now-exports-tmpdir-to-the-sand","canonical_anchor":"sandboxed-bash-on-macoslinux-now-exports-tmpdir-to-the-sand","heading":"Sandboxed bash on macOS\/Linux now exports TMPDIR to the sandbox temp dir","tier":null,"area":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/sandboxed-bash-on-macoslinux-now-exports-tmpdir-to-the-sand","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### Sandboxed bash on macOS\/Linux now exports TMPDIR to the sandbox temp dir\n\nSandboxed commands on macOS and Linux now get `TMPDIR` pointed at the sandbox's own temporary folder\n\n**What**\n\nA sandbox is a restricted space that limits what a command Claude runs can touch. When a command runs in the sandbox and the sandbox has its own temporary folder (`sandboxTmpDir`), Claude Code now sets `TMPDIR` to that folder on macOS and Linux before the command starts. `TMPDIR` is the setting programs read to decide where to put temporary files.\n\nBefore this, temporary-folder variables were set this way only on Windows.\n\n**Why**\n\nPrograms run in the sandbox on macOS and Linux now write their temporary files into the sandbox's own temporary folder, as they already did on Windows."}