You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…rs (#3878)
* Make Move-Item work with its -Include, -Exclude, and -Filter parameters (#2385)
Invoke the correct overload of SessionState.Path.GetResolvedPSPathFromPSPath, passing the cmdlet context object.
* Update tests per code review.
* Changes per code review.
* Remove stray comment
Move-Item's -Include, -Exclude, and -Filter parameters produce errors when they should not.
Steps to reproduce
Include:
Exclude:
Filter:
Expected behavior
Include:
No error.
bar.txt should not exist anymore and there should be a new file named move.txt with the contents of bar.txt.
Exclude:
No error.
foo.txt should not exist anymore and there should be a new file named move.txt with the contents of foo.txt.
Filter:
No error.
bar.txt should not exist anymore and there should be a new file named move.txt with the contents of bar.txt.
Actual behavior
Include:
Successfully moves bar.txt to move.txt, but produces the following errors.
Exclude:
Successfully moves foo.txt to move.txt, but produces the following errors.
Filter:
Successfully moves bar.txt to move.txt, but produces the following errors.
Environment data
The text was updated successfully, but these errors were encountered: