{"version":"2.1.327","anchor":"bash-permission-check-safe-devnull-style-redirections-com","canonical_anchor":"bash-permission-check-safe-devnull-style-redirections-com","heading":"Shell commands that send output to \/dev\/null are recognised as safe","tier":"notice","area":"Permissions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327\/e\/bash-permission-check-safe-devnull-style-redirections-com","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.327","markdown":"### Shell commands that send output to \/dev\/null are recognised as safe\n\nThe permission check for shell commands now treats redirecting standard input, output or error to \/dev\/null or a few allowed devices as safe\n\n**Unclear.** It is not clear whether this check already reduces permission prompts or is only computed so far.\n\n**What**\n\nBefore Claude Code runs a shell command, it checks whether the command needs your permission. A redirection is the part of a command that sends output somewhere else, such as `2>\/dev\/null` to discard error messages. That check now treats a redirection as safe when both of these are true:\n\n- It targets `\/dev\/null` or one of a small set of allowed devices.\n\n- It applies to standard input, standard output or standard error.\n\n**Why**\n\nCommands that only discard their output this way could prompt you for permission less often.\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}