-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Closed
Labels
Area-FileSystem-Providerspecific to the FileSystem providerspecific to the FileSystem providerIssue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module
Description
Steps to reproduce
Using PowerShell 7.0 on Linux or MacOS:
- Create an empty directory
- Create two sub directories called ":" and "?"
- Attempt to change location to '?'; the directory will actually change to the ':' directory.
- Attempt to Get-Item on the '?' directory; the directory information will be for the ':' directory.
Expected behavior
PS /tmp> New-Item -ItemType Directory '/tmp/dir/:' | Out-Null
PS /tmp> New-Item -ItemType Directory '/tmp/dir/?' | Out-Null
PS /tmp> Set-Location -LiteralPath '/tmp/dir/?'
PS /tmp/dir/?> Get-Item -LiteralPath '/tmp/dir/?'
Directory: /tmp/dir
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 04/10/2020 19:45 ?
Actual behavior
PS /tmp> New-Item -ItemType Directory '/tmp/dir/:' | Out-Null
PS /tmp> New-Item -ItemType Directory '/tmp/dir/?' | Out-Null
PS /tmp> Set-Location -LiteralPath '/tmp/dir/?'
PS /tmp/dir/:> Get-Item -LiteralPath '/tmp/dir/?'
Directory: /tmp/dir
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 04/10/2020 19:45 :
Environment data
Name Value
---- -----
PSVersion 7.0.0
PSEdition Core
GitCommitId 7.0.0
OS Linux 4.4.0-18362-Microsoft #476-Microsoft Fri Nov 01 16:53:00 PST 2019
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Metadata
Metadata
Assignees
Labels
Area-FileSystem-Providerspecific to the FileSystem providerspecific to the FileSystem providerIssue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-No ActivityIssue has had no activity for 6 months or moreIssue has had no activity for 6 months or moreWG-Cmdlets-Managementcmdlets in the Microsoft.PowerShell.Management modulecmdlets in the Microsoft.PowerShell.Management module