You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 792e615
Browse filesBrowse the repository at this point in the historyBrowse files
Fix Get-Culture -ListAvailable:$false and Get-Location -Stack:$false
When -ListAvailable:$false or -Stack:$false is passed, the parameter
binder selects the switch's ParameterSetName but the cmdlet code
branches on the set name without checking the actual switch value.
This causes Get-Culture to dump all ~800 cultures and Get-Location
to show the stack instead of the current directory.
Wrap the switch-path code in if (SwitchParam) with an else fallback
to default behavior. Same pattern as 9 previously merged sibling PRs.
Part of PowerShell#25242
Co-Authored-By: Claude Opus 4.6 <[email protected]>
0 commit comments