{"version":"2.1.319","anchor":"zsh-grep-include-quoting-note","canonical_anchor":"zsh-grep-include-quoting-note","heading":"Claude can be told to always quote grep --include patterns in zsh","tier":"internal","area":"System Prompt","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319\/e\/zsh-grep-include-quoting-note","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.319","markdown":"### Claude can be told to always quote grep `--include` patterns in zsh\n\nIn zsh sessions, Claude Code can tell the model to always quote grep's `--include` patterns, and later tell it the note no longer applies\n\n**Unclear.** Which setting turns the note on is not stated.\n\n**What**\n\nClaude Code can now give the model a note: \"Always quote grep's --include patterns, in every command.\" A matching message tells the model later that the note no longer applies.\n\nThe note is used only when:\n\n- the shell is zsh\n\n- the computer is not running Windows\n\n- `CLAUDE_CODE_SHELL_PREFIX` is not set\n\n**Why**\n\nIn zsh, an unquoted pattern such as `*.js` can be expanded by the shell before grep sees it. Quoting it helps grep searches work as intended.\n\n- Area: System Prompt\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}