Intermediate
Open
Pro
Does a Bash Allow Rule Match a Similarly-Named Command
A .claude/settings.json contains:
{
"permissions": {
"allow": ["Bash(ls *)"]
}
}
An engineer wants to confirm this doesn't accidentally auto-approve
lsof -i :3000 — an unrelated command that happens to start with the
same three letters as ls.
Does Bash(ls *) match lsof -i :3000?
Share this question