https://github.com/PowerShell/PowerShell/pull/19489 added some improvements to tab-completion, but one side effect is that on Windows, a ~ is retained instead of being expanded. Since ~ is not understood by native commands, this breaks many use cases.
This change only retains ~ on non-Windows systems.
If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.
PR Summary
https://github.com/PowerShell/PowerShell/pull/19489 added some improvements to tab-completion, but one side effect is that on Windows, a
~
is retained instead of being expanded. Since~
is not understood by native commands, this breaks many use cases.This change only retains
~
on non-Windows systems.PR Context
Fix https://github.com/PowerShell/PowerShell/issues/20750
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.