Bash permission 'mkdir:*' not matching 'mkdir -p' command
Resolved 💬 3 comments Opened Feb 4, 2026 by adamcataldo Closed Feb 8, 2026
Description
The Bash permission pattern Bash(mkdir:*) is not matching mkdir -p <path> commands, causing unexpected permission prompts.
Steps to Reproduce
- Add
Bash(mkdir:*)to.claude/settings.local.json:
{
"permissions": {
"allow": [
"Bash(mkdir:*)"
]
}
}
- Verify permission is loaded by running
/permissions- confirmsBash(mkdir:*)is present
- Ask Claude to run
mkdir -p /some/path
- Expected: Command executes without prompting (permission should match)
- Actual: User is prompted for permission
Environment
- macOS (Darwin 25.2.0)
- Claude Code CLI
Additional Context
Other similar permissions like Bash(ls:*), Bash(rm:*), Bash(cp:*) are in the same settings file. Unclear if they exhibit the same behavior or if this is specific to mkdir.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗