[Bug] Bash permission pattern matching fails with wildcard in middle of command
Resolved 💬 4 comments Opened Oct 27, 2025 by jnasbyupgrade Closed Oct 28, 2025
Bug Description
I've configured settings.json to allow running make docker-*, but I'm still getting prompts for permissions:\
\
Bash command
make docker-update-dep-task
Update task dependency with latest changes
Do you want to proceed?
❯ 1. Yes
2. Yes, and don't ask again for make commands in /Users/jnasby/code/extensions/archive
3. No, and tell Claude what to do differently (esc) \
\
\
.claude/settings.json:\
\
{
"permissions": {
"allow": [
"Read(../task/*)",
"Search(../task/*)",
"Grep(../task/*)",
"Bash(make docker-:*)"
],
"additionalDirectories": [
"../.claude/"
],
"deny": []
},
"hooks": {
}
}\
\
Relevant lines from settings.local.json:\
\
grep Bash .claude/settings.local.json
"Bash(touch:*)",
"Bash(make test:*)",
"Bash(git log:*)",
"Bash(cat:*)",
"Bash(psql:*)",
"Bash(readlink:*)",
"Bash(test:*)",
"Bash(git -C ../task log -1 -p)",
"Bash(make docker-build-dev:*)",
"Bash(make docker-dev:*)",
"Bash(make -p docker-dev)"
$
Environment Info
- Platform: darwin
- Terminal: cursor
- Version: 2.0.28
- Feedback ID:
Errors
[{"error":"Error: String not found in file. Failed to apply edit.\n at cCA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1293:726)\n at fgA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1293:104)\n at Object.CXQ [as renderToolUseRejectedMessage] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1412:3937)\n at DDQ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1557:4051)\n at Vw (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:73:19414)\n at Qo (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:42806)\n at T9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38347)\n at zc (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38275)\n at Lw (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38129)\n at AU (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:35208)","timestamp":"2025-10-27T23:10:23.619Z"},{"error":"Error: String not found in file. Failed to apply edit.\n at cCA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1293:726)\n at fgA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1293:104)\n at Object.CXQ [as renderToolUseRejectedMessage] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1412:3937)\n at DDQ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1557:4051)\n at Vw (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:73:19414)\n at Qo (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:42806)\n at T9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38347)\n at zc (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38275)\n at Lw (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38129)\n at AU (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:35208)","timestamp":"2025-10-27T23:10:23.910Z"},{"error":"Error: String not found in file. Failed to apply edit.\n at cCA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1293:726)\n at fgA (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1293:104)\n at Object.CXQ [as renderToolUseRejectedMessage] (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1412:3937)\n at DDQ (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1557:4051)\n at Vw (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:73:19414)\n at Qo (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:42806)\n at T9 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38347)\n at zc (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38275)\n at Lw (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38129)\n at AU (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:35208)","timestamp":"2025-10-27T23:13:03.356Z"},{"error":"RangeError: path should be a `path.relative()`d string, but got \"..\"\n at Xc8 (file:/
Note: Error logs were truncated.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗