diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_Redirection.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_Redirection.md index 5c597ad80512..fc3fe185da72 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/About/about_Redirection.md +++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_Redirection.md @@ -32,7 +32,7 @@ You can use the following methods to redirect output: For more information about streams, see [about_Output_Streams][04]. -### Redirectable output streams +## Redirectable output streams PowerShell supports redirection of the following output streams. @@ -54,7 +54,7 @@ redirection. > streams of other shells. However, stdin isn't connected to the PowerShell > pipeline for input. -### PowerShell redirection operators +## PowerShell redirection operators The PowerShell redirection operators are as follows, where `n` represents the stream number. The **Success** stream ( `1` ) is the default if no stream diff --git a/reference/7.2/Microsoft.PowerShell.Core/About/about_Redirection.md b/reference/7.2/Microsoft.PowerShell.Core/About/about_Redirection.md index 137b922273f7..d3f21e6d3431 100644 --- a/reference/7.2/Microsoft.PowerShell.Core/About/about_Redirection.md +++ b/reference/7.2/Microsoft.PowerShell.Core/About/about_Redirection.md @@ -32,7 +32,7 @@ You can use the following methods to redirect output: For more information about streams, see [about_Output_Streams][04]. -### Redirectable output streams +## Redirectable output streams PowerShell supports redirection of the following output streams. @@ -54,7 +54,7 @@ redirection. > streams of other shells. However, stdin isn't connected to the PowerShell > pipeline for input. -### PowerShell redirection operators +## PowerShell redirection operators The PowerShell redirection operators are as follows, where `n` represents the stream number. The **Success** stream ( `1` ) is the default if no stream diff --git a/reference/7.3/Microsoft.PowerShell.Core/About/about_Redirection.md b/reference/7.3/Microsoft.PowerShell.Core/About/about_Redirection.md index 8775da98b9c4..6e92299cfd45 100644 --- a/reference/7.3/Microsoft.PowerShell.Core/About/about_Redirection.md +++ b/reference/7.3/Microsoft.PowerShell.Core/About/about_Redirection.md @@ -32,7 +32,7 @@ You can use the following methods to redirect output: For more information about streams, see [about_Output_Streams][04]. -### Redirectable output streams +## Redirectable output streams PowerShell supports redirection of the following output streams. @@ -54,7 +54,7 @@ redirection. > streams of other shells. However, stdin isn't connected to the PowerShell > pipeline for input. -### PowerShell redirection operators +## PowerShell redirection operators The PowerShell redirection operators are as follows, where `n` represents the stream number. The **Success** stream ( `1` ) is the default if no stream diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_Redirection.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_Redirection.md index e5dfa82f1425..aa8bfbfc8729 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_Redirection.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_Redirection.md @@ -29,15 +29,12 @@ You can use the following methods to redirect output: - Use the PowerShell redirection operators. Redirecting the output of a PowerShell command (cmdlet, function, script) using the redirection operator (`>`) is functionally equivalent to piping to `Out-File` with no extra - parameters. - - PowerShell 7.4 changed the behavior of the redirection operators when used to - redirect the **stdout** stream of a native command. For more information, see - [Example #7](#example-7-redirecting-binary-data-from-a-native-command). + parameters. PowerShell 7.4 changed the behavior of the redirection operator + when used to redirect the **stdout** stream of a native command. For more information about streams, see [about_Output_Streams][04]. -### Redirectable output streams +## Redirectable output streams PowerShell supports redirection of the following output streams. @@ -59,7 +56,7 @@ redirection. > streams of other shells. However, stdin isn't connected to the PowerShell > pipeline for input. -### PowerShell redirection operators +## PowerShell redirection operators The PowerShell redirection operators are as follows, where `n` represents the stream number. The **Success** stream ( `1` ) is the default if no stream @@ -75,6 +72,15 @@ is specified. > Unlike some Unix shells, you can only redirect other streams to the > **Success** stream. +## Redirecting output from native commands + +PowerShell 7.4 changed the behavior of the redirection operators when used to +redirect the **stdout** stream of a native command. PowerShell 7.4 changed the +behavior. The redirection operators now preserve the byte-stream data when +redirecting output from a native command. PowerShell doesn't interpret the +redirected data or add any additional formatting. For more information, see +[Example #7](#example-7-redirecting-binary-data-from-a-native-command). + ## Examples ### Example 1: Redirect errors and output to a file