Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve-Path -Relative does not prefix dotfiles in current directory with .\ but does so for other files #21144

Open
5 tasks done
zanaptak opened this issue Jan 26, 2024 · 1 comment · May be fixed by #21154
Open
5 tasks done
Assignees
Labels
In-PR Indicates that a PR is out for the issue Issue-Bug Issue has been identified as a bug in the product

Comments

@zanaptak
Copy link

Prerequisites

Steps to reproduce

Resolve-Path -Relative on items in current directory generally prefixes them with .\, but not if they're dotfiles (i.e. begin with a period). Any reason they're treated differently in this situation?

Out-File testdot
Out-File .testdot
Resolve-Path -Relative *testdot

Expected behavior

.\.testdot
.\testdot

Actual behavior

.testdot
.\testdot

Error details

No response

Environment data

PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

@zanaptak zanaptak added the Needs-Triage The issue is new and needs to be triaged by a work group. label Jan 26, 2024
@SteveL-MSFT
Copy link
Member

This just seems like a bug. Probably something incorrectly checking if it starts with a .

@SteveL-MSFT SteveL-MSFT self-assigned this Jan 29, 2024
@SteveL-MSFT SteveL-MSFT added Issue-Bug Issue has been identified as a bug in the product and removed Needs-Triage The issue is new and needs to be triaged by a work group. labels Jan 29, 2024
@SteveL-MSFT SteveL-MSFT linked a pull request Jan 29, 2024 that will close this issue
22 tasks
@microsoft-github-policy-service microsoft-github-policy-service bot added the In-PR Indicates that a PR is out for the issue label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
In-PR Indicates that a PR is out for the issue Issue-Bug Issue has been identified as a bug in the product
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants