Skip to content

Commit

Permalink
Fix #4168 - clarify $input (#4182)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwheeler authored and DCtheGeek committed Apr 19, 2019
1 parent 47cea7f commit 0e4a383
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,12 @@ Begin: The input is
End: The input is 1 2 4
```

When the `Begin` statement runs, the function does not have the input from
the pipeline. The `End` statement runs after the function has the values.
When the `Begin` statement runs, the function does not have the input from the
pipeline. The `End` statement runs after the function has the values.

If the function has a `Process` keyword, the function reads the data in
`$input`. The following example has a `Process` statement list:
If the function has a `Process` keyword, each object in `$input` is removed
from `$input` and assigned to `$_`. The following example has a `Process`
statement list:

```powershell
function Get-PipelineInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,12 @@ Begin: The input is
End: The input is 1 2 4
```

When the `Begin` statement runs, the function does not have the input from
the pipeline. The `End` statement runs after the function has the values.
When the `Begin` statement runs, the function does not have the input from the
pipeline. The `End` statement runs after the function has the values.

If the function has a `Process` keyword, the function reads the data in
`$input`. The following example has a `Process` statement list:
If the function has a `Process` keyword, each object in `$input` is removed
from `$input` and assigned to `$_`. The following example has a `Process`
statement list:

```powershell
function Get-PipelineInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,12 @@ Begin: The input is
End: The input is 1 2 4
```

When the `Begin` statement runs, the function does not have the input from
the pipeline. The `End` statement runs after the function has the values.
When the `Begin` statement runs, the function does not have the input from the
pipeline. The `End` statement runs after the function has the values.

If the function has a `Process` keyword, the function reads the data in
`$input`. The following example has a `Process` statement list:
If the function has a `Process` keyword, each object in `$input` is removed
from `$input` and assigned to `$_`. The following example has a `Process`
statement list:

```powershell
function Get-PipelineInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,12 @@ Begin: The input is
End: The input is 1 2 4
```

When the `Begin` statement runs, the function does not have the input from
the pipeline. The `End` statement runs after the function has the values.
When the `Begin` statement runs, the function does not have the input from the
pipeline. The `End` statement runs after the function has the values.

If the function has a `Process` keyword, the function reads the data in
`$input`. The following example has a `Process` statement list:
If the function has a `Process` keyword, each object in `$input` is removed
from `$input` and assigned to `$_`. The following example has a `Process`
statement list:

```powershell
function Get-PipelineInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -431,11 +431,12 @@ Begin: The input is
End: The input is 1 2 4
```

When the `Begin` statement runs, the function does not have the input from
the pipeline. The `End` statement runs after the function has the values.
When the `Begin` statement runs, the function does not have the input from the
pipeline. The `End` statement runs after the function has the values.

If the function has a `Process` keyword, the function reads the data in
`$input`. The following example has a `Process` statement list:
If the function has a `Process` keyword, each object in `$input` is removed
from `$input` and assigned to `$_`. The following example has a `Process`
statement list:

```powershell
function Get-PipelineInput
Expand Down

0 comments on commit 0e4a383

Please sign in to comment.