10000 Copy-Item is assuming case insensitive on Linux · Issue #1930 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content
Copy-Item is assuming case insensitive on Linux #1930
Closed
@giggio

Description

@giggio

Steps to reproduce

cd /tmp
mkdir a
mkdir A
touch a/b
cd A
Copy-Item ../a/b

Expected behavior

File copied.

Actual behavior

File not copied, and error:

Copy-Item : Cannot overwrite the item /tmp/A/b with itself.
At line:1 char:1
+ Copy-Item ../a/b
+ ~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (/tmp/A/b:String) [Copy-Item], IOException
    + FullyQualifiedErrorId : CopyError,Microsoft.PowerShell.Commands.CopyItemCommand

Environment data

Name                           Value
----                           -----
PSVersion                      6.0.0-alpha
PSEdition                      Core
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   3.0.0.0
GitCommitId                    v6.0.0-alpha.9
CLRVersion
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Metadata

Metadata

Assignee 4E89 s

Labels

Committee-ReviewedPS-Committee has reviewed this and made a decisionResolution-FixedThe issue is fixed.WG-Cmdletsgeneral cmdlet issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0