-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Resolution-FixedThe issue is fixed.The issue is fixed.
Milestone
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
mkdir test
cd test
mkdir abc
mv * abc
Don't forget to hit ctrl-c fast.
dir -Recurse t shows the created structure. I used 7zip File Manager to shift-del the nested dir structure.
Expected behavior
PS should not create the nested directory structure, it should ignore the target when expanding the wildcard into the source list, move everything else into the target directory.
In this example it should basically do a no-op, since there's nothing else to move into "abc".
Actual behavior
A directory that contains a directory, that contains a directory ... t\abc\abc\abc\abc ...
Environment data
PSVersion 7.2.0-preview.9
PSEdition Core
GitCommitId 7.2.0-preview.9
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.0Metadata
Metadata
Assignees
Labels
Resolution-FixedThe issue is fixed.The issue is fixed.