Skip to content

Expand ~ to $home on Windows with tab completion - #21529

Merged
Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:masterfrom
SteveL-MSFT:tilde-windows-expansion
Apr 24, 2024
Merged

Expand ~ to $home on Windows with tab completion#21529
Dongbo Wang (daxian-dbw) merged 1 commit into
PowerShell:masterfrom
SteveL-MSFT:tilde-windows-expansion

Conversation

@SteveL-MSFT

@SteveL-MSFT Steve Lee (SteveL-MSFT) commented Apr 24, 2024

Copy link
Copy Markdown
Member

PR Summary

#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 #20750

PR Checklist

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks fine

@daxian-dbw Dongbo Wang (daxian-dbw) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label Apr 24, 2024
@adityapatwardhan

Copy link
Copy Markdown
Member

Wait on a preview release before considering for 7.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport-7.4.x-Done CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7.4.0 Breaking Change: Tab expansion no longer converts tildes to full paths, breaking path passing to executables on Windows

4 participants