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

  1. Add Bash(mkdir:*) to .claude/settings.local.json:
{
  "permissions": {
    "allow": [
      "Bash(mkdir:*)"
    ]
  }
}
  1. Verify permission is loaded by running /permissions - confirms Bash(mkdir:*) is present
  1. Ask Claude to run mkdir -p /some/path
  1. Expected: Command executes without prompting (permission should match)
  1. 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.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗