Skip to content
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

Select-Object, alias -SkipFirst to -Skip parameter #21241

Open
Liturgist opened this issue Feb 17, 2024 · 1 comment
Open

Select-Object, alias -SkipFirst to -Skip parameter #21241

Liturgist opened this issue Feb 17, 2024 · 1 comment
Labels
Issue-Enhancement the issue is more of a feature request than a bug Needs-Triage The issue is new and needs to be triaged by a work group. WG-Cmdlets-Utility cmdlets in the Microsoft.PowerShell.Utility module

Comments

@Liturgist
Copy link

Summary of the new feature / enhancement

As a user, I want to use -SkipFirst with the Select-Object command so that it is more fully descriptive and understandable, especially when -SkipLast is also used.

Proposed technical implementation details (optional)

No response

@Liturgist Liturgist added Issue-Enhancement the issue is more of a feature request than a bug Needs-Triage The issue is new and needs to be triaged by a work group. labels Feb 17, 2024
@rhubarb-geek-nz
Copy link

-SkipFirst should not be a simple alias to -Skip because as the documentation says

By default, the Skip parameter counts from the beginning of the collection of objects. If the command uses the Last parameter, it counts from the end of the collection.

Which means if it was just an alias then "-SkipFirst .. -Last .." would become -SkipLast.

So it should be a new parameter which always works from the start of the collection.

@kilasuit kilasuit added the WG-Cmdlets-Utility cmdlets in the Microsoft.PowerShell.Utility module label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement the issue is more of a feature request than a bug Needs-Triage The issue is new and needs to be triaged by a work group. WG-Cmdlets-Utility cmdlets in the Microsoft.PowerShell.Utility module
Projects
None yet
Development

No branches or pull requests

3 participants