-
Notifications
You must be signed in to change notification settings - Fork 7.2k
-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
Get-ChildItem -Name and Get-ChildItem -Include / -Exclude unexpectedly follow symlinks with -Recurse #9126
Comments
on Windows all tests fails, |
@ChrSchultz: That is due to an unrelated bug, reported in #9127 - I've added this info to the OP. |
By changing #L4 Result:
|
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you. |
2 similar comments
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you. |
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you. |
This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes. |
PowerShell Core (unlike Windows PowerShell) by default is supposed to not follow symlinks (symbolic links) to directories during recursive traversal with
Get-ChildItem -Recurse
(you can opt in with-FollowSymlink
).While this generally works, using the
-Name
or-Include
/-Exclude
switches unexpectedly causes symlinks to be followed even without the-FollowSymlink
switch.Note: On Windows, the tests currently fail categorically, due to an unrelated bug: #9127
Steps to reproduce (on Unix)
Run the following Pester tests:
Expected behavior
All tests should pass.
Actual behavior
The last 3 tests fail.
Environment data
The text was updated successfully, but these errors were encountered: