Steps to reproduce
Run the following with the latest preview version (7.1.0-rc.2) or the latest release version (7.1.0) of PowerShell 7:
(Get-ChildItem $PSHOME -File).Count
(Get-ChildItem $PSHOME -File | ForEach-Object { Get-Content $_.FullName -Tail 1 }).Count
Expected behavior
Output
Works as intended in the previous release version (7.0.3).
Actual behavior
Output
Environment data
Name Value
---- -----
PSVersion 7.1.0-rc.2
PSEdition Core
GitCommitId 7.1.0-rc.2
OS Microsoft Windows 10.0.19041
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Steps to reproduce
Run the following with the latest preview version (
7.1.0-rc.2) or the latest release version (7.1.0) of PowerShell 7:Expected behavior
Output
Works as intended in the previous release version (
7.0.3).Actual behavior
Output
Environment data