Title: Select-Object: Allow combining -Skip and -SkipLast · Issue #11752 · PowerShell/PowerShell · GitHub
Open Graph Title: Select-Object: Allow combining -Skip and -SkipLast · Issue #11752 · PowerShell/PowerShell
X Title: Select-Object: Allow combining -Skip and -SkipLast · Issue #11752 · PowerShell/PowerShell
Description: See also: #13769 Summary of the new feature/enhancement Select-Object's -Skip and -SkipLast parameters are currently in separate parameter sets, which syntactically prevents using them together. However, there seems to be no good concept...
Open Graph Description: See also: #13769 Summary of the new feature/enhancement Select-Object's -Skip and -SkipLast parameters are currently in separate parameter sets, which syntactically prevents using them together. Ho...
X Description: See also: #13769 Summary of the new feature/enhancement Select-Object's -Skip and -SkipLast parameters are currently in separate parameter sets, which syntactically prevents using them together...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/11752
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Select-Object: Allow combining -Skip and -SkipLast","articleBody":"See also: #13769\r\n\r\n# Summary of the new feature/enhancement\r\n\r\n`Select-Object`'s `-Skip` and `-SkipLast` parameters are currently in separate parameter sets, which syntactically prevents using them together.\r\n\r\nHowever, there seems to be no good _conceptual_ reason to prevent that, as it is conceivable that you may want to skip elements at _both_ the beginning and end:\r\n\r\n```powershell\r\n# WISHFUL THINKING\r\n1..5 | Select-Object -Skip 1 -SkipLast 1\r\n2\r\n3\r\n4\r\n```\r\n\r\n* `-Skip` should be applied first.\r\n\r\n* `-SkipLast` must remain mutually exclusive with `-First` and `-Last`(which themselves can be combined with `-Skip`).\r\n\r\nIf the suggestion in #11750 is implemented, the same combination of parameters should also be allowed with `Get-Content`.","author":{"url":"https://github.com/mklement0","@type":"Person","name":"mklement0"},"datePublished":"2020-02-02T13:12:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/11752/PowerShell/issues/11752"}
| 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:bd112ea7-a589-88af-814f-9e89ab344b6e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ECD8:2CE7AA:20A839C:2BAE263:6A54646F |
| html-safe-nonce | 5f96150822c419918799cbe7c59560342835931b5c8a6b9fa9619a0af005630e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0Q4OjJDRTdBQToyMEE4MzlDOjJCQUUyNjM6NkE1NDY0NkYiLCJ2aXNpdG9yX2lkIjoiOTQ0MjE4NTU3MTY3OTg1Nzc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c3a3b200cc012c44436136b8505bca49bf3dba5e9ba709243117aeda1c4956af |
| hovercard-subject-tag | issue:558694816 |
| 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/11752/issue_layout |
| twitter:image | https://opengraph.githubassets.com/94e0daa8765c51221486fa99f053842fd1d13afaf6fe233dc35736bd8032f822/PowerShell/PowerShell/issues/11752 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/94e0daa8765c51221486fa99f053842fd1d13afaf6fe233dc35736bd8032f822/PowerShell/PowerShell/issues/11752 |
| og:image:alt | See also: #13769 Summary of the new feature/enhancement Select-Object's -Skip and -SkipLast parameters are currently in separate parameter sets, which syntactically prevents using them together. Ho... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mklement0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width