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

Parameter starting with colon (:) is expanded with working directory. #15435

Closed
no1xsyzy opened this issue May 22, 2021 · 4 comments
Closed

Parameter starting with colon (:) is expanded with working directory. #15435

no1xsyzy opened this issue May 22, 2021 · 4 comments
Labels
Needs-Triage The issue is new and needs to be triaged by a work group. Resolution-Duplicate The issue is a duplicate.

Comments

@no1xsyzy
Copy link

no1xsyzy commented May 22, 2021

Only happens when spawning other processes, any parameter starting with colon (:) is expanded with working dir if not wrapped by single quote (').

I tried existing pre-release in this repo and found that the problem is between v7.1.3..v7.2.0-preview.1, though I do not have compiling environment at hand for bisecting deeper. aur/powershell-preview-bin 7.2.0.preview.5-1 also bugs. Results from ProcMon maybe help?

More information can be found here (SuperUser question).

Steps to reproduce

PS D:\path > cmd /c "echo" ":foo"
PS D:\path > cmd /c "echo" ':foo'

Expected behavior

:foo
:foo

Actual behavior

D:\path\:foo
:foo

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.0-preview.4
PSEdition                      Core
GitCommitId                    7.2.0-preview.4
OS                             Microsoft Windows 10.0.19042
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
@no1xsyzy no1xsyzy added the Needs-Triage The issue is new and needs to be triaged by a work group. label May 22, 2021
@iSazonov
Copy link
Collaborator

@mklement0 Could you please clarify? Dup?

@mklement0
Copy link
Contributor

@iSazonov: It's a bug in the experimental PSNativePSPathResolution feature; the duplicate is #13640

@iSazonov iSazonov added the Resolution-Duplicate The issue is a duplicate. label May 23, 2021
@no1xsyzy
Copy link
Author

no1xsyzy commented May 24, 2021

Yes, confirmed to be a duplicate. I think better to keep it for future search?
If so, should add (Dup of #13640, keep for search) to the title?

@iSazonov
Copy link
Collaborator

@no1xsyzy No need, cross-links already present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage The issue is new and needs to be triaged by a work group. Resolution-Duplicate The issue is a duplicate.
Projects
None yet
Development

No branches or pull requests

3 participants