You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
PowerShellArea: what it touches
ImprovementsKind: in v2.1.326,
ImprovementsSection of the release
What
In PowerShell, an alias is a short name for a command. Some aliases point to commands that can delete or overwrite files, such as Remove-Item or Set-Content. Claude Code now refuses to run a PowerShell command that defines a function with the same name as one of those aliases. It replies that the command was not run and tells Claude to rename the function.
This check is part of the permission check Claude Code runs on PowerShell commands before running them.
Why
A function with the same name as an alias can hide what a command will really do. This could let a destructive command get past the permission checks under a harmless-looking name.