Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-NoEnumerate switch added because was missing
Browse files Browse the repository at this point in the history
jhribal committed Dec 12, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7bdebdd commit 3164f27
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion reference/5.1/Microsoft.PowerShell.Utility/Write-Output.md
Original file line number Diff line number Diff line change
@@ -105,7 +105,8 @@ Accept wildcard characters: False
By default, the `Write-Output` cmdlet always enumerates its output. The **NoEnumerate** parameter
suppresses the default behavior, and prevents `Write-Output` from enumerating output. The
**NoEnumerate** parameter has no effect if the command is wrapped in parentheses, because the
parentheses force enumeration. For example, `(Write-Output 1,2,3)` still enumerates the array.
parentheses force enumeration. For example, `(Write-Output 1,2,3 -NoEnumerate)` still enumerates
the array.

The **NoEnumerate** parameter is only useful within a pipeline. Trying to see the effects of
**NoEnumerate** in the console is problematic because PowerShell adds `Out-Default` to the end of
3 changes: 2 additions & 1 deletion reference/7.4/Microsoft.PowerShell.Utility/Write-Output.md
Original file line number Diff line number Diff line change
@@ -105,7 +105,8 @@ Accept wildcard characters: False
By default, the `Write-Output` cmdlet always enumerates its output. The **NoEnumerate** parameter
suppresses the default behavior, and prevents `Write-Output` from enumerating output. The
**NoEnumerate** parameter has no effect if the command is wrapped in parentheses, because the
parentheses force enumeration. For example, `(Write-Output 1,2,3)` still enumerates the array.
parentheses force enumeration. For example, `(Write-Output 1,2,3 -NoEnumerate)` still enumerates
the array.

The **NoEnumerate** parameter is only useful within a pipeline. Trying to see the effects of
**NoEnumerate** in the console is problematic because PowerShell adds `Out-Default` to the end of
3 changes: 2 additions & 1 deletion reference/7.5/Microsoft.PowerShell.Utility/Write-Output.md
Original file line number Diff line number Diff line change
@@ -105,7 +105,8 @@ Accept wildcard characters: False
By default, the `Write-Output` cmdlet always enumerates its output. The **NoEnumerate** parameter
suppresses the default behavior, and prevents `Write-Output` from enumerating output. The
**NoEnumerate** parameter has no effect if the command is wrapped in parentheses, because the
parentheses force enumeration. For example, `(Write-Output 1,2,3)` still enumerates the array.
parentheses force enumeration. For example, `(Write-Output 1,2,3 -NoEnumerate)` still enumerates
the array.

The **NoEnumerate** parameter is only useful within a pipeline. Trying to see the effects of
**NoEnumerate** in the console is problematic because PowerShell adds `Out-Default` to the end of

0 comments on commit 3164f27

Please sign in to comment.