Title: Get-Content -Tail parameter is broken in v7.1.0-rc.2 and v7.1.0 · Issue #14028 · PowerShell/PowerShell · GitHub
Open Graph Title: Get-Content -Tail parameter is broken in v7.1.0-rc.2 and v7.1.0 · Issue #14028 · PowerShell/PowerShell
X Title: Get-Content -Tail parameter is broken in v7.1.0-rc.2 and v7.1.0 · Issue #14028 · PowerShell/PowerShell
Description: 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 $_.F...
Open Graph Description: 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 -...
X Description: 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 -...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/14028
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-Content -Tail parameter is broken in v7.1.0-rc.2 and v7.1.0","articleBody":"## Steps to reproduce\r\nRun the following with the latest preview version ([`7.1.0-rc.2`](https://github.com/PowerShell/PowerShell/releases/tag/v7.1.0-rc.2)) or the latest release version ([`7.1.0`](https://github.com/PowerShell/PowerShell/releases/tag/v7.1.0)) of PowerShell 7:\r\n```powershell\r\n(Get-ChildItem $PSHOME -File).Count\r\n(Get-ChildItem $PSHOME -File | ForEach-Object { Get-Content $_.FullName -Tail 1 }).Count\r\n```\r\n\r\n## Expected behavior\r\nOutput\r\n```none\r\n449\r\n449\r\n```\r\nWorks as intended in the previous release version ([`7.0.3`](https://github.com/PowerShell/PowerShell/releases/tag/v7.0.3)).\r\n\r\n## Actual behavior\r\nOutput\r\n```none\r\n449\r\n26\r\n```\r\n\r\n## Environment data\r\n\r\n```none\r\nName Value\r\n---- -----\r\nPSVersion 7.1.0-rc.2\r\nPSEdition Core\r\nGitCommitId 7.1.0-rc.2\r\nOS Microsoft Windows 10.0.19041\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n```","author":{"url":"https://github.com/FatalBulletHit","@type":"Person","name":"FatalBulletHit"},"datePublished":"2020-11-10T23:36:40Z","url":"https://github.com/PowerShell/PowerShell/issues/14028"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:32831900-fe7c-3dfd-f673-13796519ab5c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F4A:2F6606:2699DD1:35F0920:6AFD4E65 |
| html-safe-nonce | 602c310bda78ed3d203f3dc653b40c53c772737e08dbbf8efdfa27fedeeabdd5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjRBOjJGNjYwNjoyNjk5REQxOjM1RjA5MjA6NkFGRDRFNjUiLCJ2aXNpdG9yX2lkIjoiNDMxMzk1OTE0NDk2MTY5MTIzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 65f067c5d202aa50201eb1bea341a98dff0e237acb7b90bfc40322593a97a394 |
| hovercard-subject-tag | issue:740320572 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/14028/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1a6c57ea4d7b5e4e3d860014beaabde94150ae0a9ea4c01bb3db05fb4005054f/PowerShell/PowerShell/issues/14028 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1a6c57ea4d7b5e4e3d860014beaabde94150ae0a9ea4c01bb3db05fb4005054f/PowerShell/PowerShell/issues/14028 |
| og:image:alt | 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 -... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FatalBulletHit |
| hostname | github.com |
| expected-hostname | github.com |
| None | 66653c2e55a6fff2930be1bdf07ee4f8aa137e3956d056c822563be6f878755e |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b6f01f7cb9f35f8c09949773241a3d49dd04b340 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width