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
{{ message }}
Repository navigation
Bash:* wildcard permission not working in settings.local.json #3428
The "Bash:*" wildcard permission in .claude/settings.local.json does not allow all bash commands as expected. Even with this permission set, Claude still prompts for approval for individual bash commands.
Steps to Reproduce
Add "Bash:*" to the allow list in .claude/settings.local.json
Restart Claude
Try to run any bash command (e.g., ls, cp, etc.)
Claude still shows permission prompt
Expected Behavior
"Bash:*" should allow all bash commands without prompting for permission.
Actual Behavior
Permission prompts still appear for each bash command, requiring manual approval or selection of option 2 to allow commands for specific directories.
This appears to be a bug in how Claude interprets the wildcard permission syntax. The mcp__* wildcard works correctly for MCP tools, but Bash:* does not work for bash commands.
The "Bash:*" wildcard permission in .claude/settings.local.json does not allow all bash commands as expected. Even with this permission set, Claude still prompts for approval for individual bash commands.
Steps to Reproduce
Add "Bash:*" to the allow list in .claude/settings.local.json
Restart Claude
Try to run any bash command (e.g., ls, cp, etc.)
Claude still shows permission prompt
Expected Behavior
"Bash:*" should allow all bash commands without prompting for permission.
Actual Behavior
Permission prompts still appear for each bash command, requiring manual approval or selection of option 2 to allow commands for specific directories.
This appears to be a bug in how Claude interprets the wildcard permission syntax. The mcp__* wildcard works correctly for MCP tools, but Bash:* does not work for bash commands.
That's not valid syntax. Claude Code doesn't actually support wildcards, the Bash(cmd:*) syntax is just for prefix matching. If you want to allow all Bash commands, simply add the full tool Bash as an allow rule.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
Activity
xshapira commentedon Jul 13, 2025
Instead of:
Bash:*You should try this:
Bash(*)orBash(*:*)rboyce-ant commentedon Jul 13, 2025
That's not valid syntax. Claude Code doesn't actually support wildcards, the
Bash(cmd:*)syntax is just for prefix matching. If you want to allow all Bash commands, simply add the full toolBashas an allow rule.dreamerhyde commentedon Jul 22, 2025
Has this issue been resolved? Recently, using the * symbol still has no effect.
github-actions commentedon Jul 29, 2025
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.