Skip to content

Automatic variable Input is not described clearly enough #3571

@nyanhp

Description

@nyanhp

The variable $Input once accessed in the process block will be empty since it is an enumerator. Thus the text for all PowerShell editions and versions should be rephrased to clearly reflect that behavior.
The current text simply states that $Input enumerates the current object in the pipeline. It is not immediately clear that unlike $_ or $PSItem it will be empty once read.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Labels

area-coreArea - Microsoft.PowerShell.Core module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions