From a0c5c689b72d890fbd7766a2dbb7d429c4a483c1 Mon Sep 17 00:00:00 2001 From: michael-hollingsworth Date: Wed, 26 Aug 2026 08:35:22 -0400 Subject: [PATCH 1/2] Add missing space and fix incorrect backtick (#13250) --- reference/7.6/Microsoft.PowerShell.Core/About/about_PSItem.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/7.6/Microsoft.PowerShell.Core/About/about_PSItem.md b/reference/7.6/Microsoft.PowerShell.Core/About/about_PSItem.md index 05081d210098..f8f235f631f7 100644 --- a/reference/7.6/Microsoft.PowerShell.Core/About/about_PSItem.md +++ b/reference/7.6/Microsoft.PowerShell.Core/About/about_PSItem.md @@ -14,7 +14,7 @@ The automatic variable that contains the current object in the pipeline object. ## Long description -PowerShell includes two [automatic variables][03], `$_` and '$PSItem` that +PowerShell includes two [automatic variables][03], `$_` and `$PSItem` that refer to the current object in the pipeline. `$PSItem` was added to PowerShell in an attempt to provide a clearer meaning to @@ -27,7 +27,7 @@ with `$_` in every example. `$_` is the preferred usage. There are a few common use cases for `$PSItem`: - In the scriptblock for the **Process** parameter of the - `ForEach-Object`cmdlet + `ForEach-Object` cmdlet - In the scriptblock for the **FilterScript** parameter of the `Where-Object` cmdlet - In the intrinsic methods **ForEach** and **Where** From 70f4ef8178469038294d29306853c4c3c2df222f Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Wed, 26 Aug 2026 07:58:19 -0500 Subject: [PATCH 2/2] Fixes #13246 - Sync typo fixes (#13252) * Sync typo fixes * Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .../5.1/Microsoft.PowerShell.Core/About/about_PSItem.md | 4 ++-- reference/5.1/Microsoft.PowerShell.Core/Clear-History.md | 9 ++++++--- .../7.4/Microsoft.PowerShell.Core/About/about_PSItem.md | 4 ++-- reference/7.4/Microsoft.PowerShell.Core/Clear-History.md | 9 ++++++--- .../7.5/Microsoft.PowerShell.Core/About/about_PSItem.md | 4 ++-- reference/7.5/Microsoft.PowerShell.Core/Clear-History.md | 5 +++-- reference/7.6/Microsoft.PowerShell.Core/Clear-History.md | 9 ++++++--- .../7.7/Microsoft.PowerShell.Core/About/about_PSItem.md | 4 ++-- 8 files changed, 29 insertions(+), 19 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Core/About/about_PSItem.md b/reference/5.1/Microsoft.PowerShell.Core/About/about_PSItem.md index 0c1e68f728eb..f341e8d1b707 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/About/about_PSItem.md +++ b/reference/5.1/Microsoft.PowerShell.Core/About/about_PSItem.md @@ -14,7 +14,7 @@ The automatic variable that contains the current object in the pipeline object. ## Long description -PowerShell includes two [automatic variables][03], `$_` and '$PSItem` that +PowerShell includes two [automatic variables][03], `$_` and `$PSItem` that refer to the current object in the pipeline. `$PSItem` was added to PowerShell in an attempt to provide a clearer meaning to @@ -27,7 +27,7 @@ with `$_` in every example. `$_` is the preferred usage. There are a few common use cases for `$PSItem`: - In the scriptblock for the **Process** parameter of the - `ForEach-Object`cmdlet + `ForEach-Object` cmdlet - In the scriptblock for the **FilterScript** parameter of the `Where-Object` cmdlet - In the intrinsic methods **ForEach** and **Where** diff --git a/reference/5.1/Microsoft.PowerShell.Core/Clear-History.md b/reference/5.1/Microsoft.PowerShell.Core/Clear-History.md index a24d35870182..5388c8514eab 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/Clear-History.md +++ b/reference/5.1/Microsoft.PowerShell.Core/Clear-History.md @@ -20,7 +20,8 @@ Deletes entries from the PowerShell session command history. ### IDParameter (Default) ``` -Clear-History [[-Id] ] [[-Count] ] [-Newest] [-WhatIf] [-Confirm] [] +Clear-History [[-Id] ] [[-Count] ] [-Newest] [-WhatIf] [-Confirm] + [] ``` ### CommandLineParameter @@ -258,7 +259,8 @@ wildcards to match commands in the PowerShell session history displayed by `Get- enter more than one string, `Clear-History` deletes commands that match any of the strings. The **CommandLine** parameter can be used with **Count**. -For strings with a space, use single quotations. For more information, see [about_Quoting_Rules](About/about_Quoting_Rules.md). +For strings with a space, use single quotations. For more information, see +[about_Quoting_Rules](About/about_Quoting_Rules.md). ```yaml Type: System.String[] @@ -401,7 +403,8 @@ information, see [about_History](About/about_History.md). The session history is managed separately from the history maintained by the **PSReadLine** module. Both histories are available in sessions where **PSReadLine** is loaded. This cmdlet only works with -the session history. For more information see, [about_PSReadLine](../PSReadLine/About/about_PSReadLine.md). +the session history. For more information, see +[about_PSReadLine](../PSReadLine/About/about_PSReadLine.md). ## RELATED LINKS diff --git a/reference/7.4/Microsoft.PowerShell.Core/About/about_PSItem.md b/reference/7.4/Microsoft.PowerShell.Core/About/about_PSItem.md index 89c323f46dd9..f424a92b6416 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/About/about_PSItem.md +++ b/reference/7.4/Microsoft.PowerShell.Core/About/about_PSItem.md @@ -14,7 +14,7 @@ The automatic variable that contains the current object in the pipeline object. ## Long description -PowerShell includes two [automatic variables][03], `$_` and '$PSItem` that +PowerShell includes two [automatic variables][03], `$_` and `$PSItem` that refer to the current object in the pipeline. `$PSItem` was added to PowerShell in an attempt to provide a clearer meaning to @@ -27,7 +27,7 @@ with `$_` in every example. `$_` is the preferred usage. There are a few common use cases for `$PSItem`: - In the scriptblock for the **Process** parameter of the - `ForEach-Object`cmdlet + `ForEach-Object` cmdlet - In the scriptblock for the **FilterScript** parameter of the `Where-Object` cmdlet - In the intrinsic methods **ForEach** and **Where** diff --git a/reference/7.4/Microsoft.PowerShell.Core/Clear-History.md b/reference/7.4/Microsoft.PowerShell.Core/Clear-History.md index 91e819d8550c..e7c9a6477be7 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/Clear-History.md +++ b/reference/7.4/Microsoft.PowerShell.Core/Clear-History.md @@ -20,7 +20,8 @@ Deletes entries from the PowerShell session command history. ### IDParameter (Default) ``` -Clear-History [[-Id] ] [[-Count] ] [-Newest] [-WhatIf] [-Confirm] [] +Clear-History [[-Id] ] [[-Count] ] [-Newest] [-WhatIf] [-Confirm] + [] ``` ### CommandLineParameter @@ -258,7 +259,8 @@ wildcards to match commands in the PowerShell session history displayed by `Get- enter more than one string, `Clear-History` deletes commands that match any of the strings. The **CommandLine** parameter can be used with **Count**. -For strings with a space, use single quotations. For more information, see [about_Quoting_Rules](About/about_Quoting_Rules.md). +For strings with a space, use single quotations. For more information, see +[about_Quoting_Rules](About/about_Quoting_Rules.md). ```yaml Type: System.String[] @@ -402,7 +404,8 @@ information, see [about_History](About/about_History.md). The session history is managed separately from the history maintained by the **PSReadLine** module. Both histories are available in sessions where **PSReadLine** is loaded. This cmdlet only works with -the session history. For more information see, [about_PSReadLine](../PSReadLine/About/about_PSReadLine.md). +the session history. For more information, see +[about_PSReadLine](../PSReadLine/About/about_PSReadLine.md). ## RELATED LINKS diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_PSItem.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_PSItem.md index cdcace168133..783396430d19 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_PSItem.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_PSItem.md @@ -14,7 +14,7 @@ The automatic variable that contains the current object in the pipeline object. ## Long description -PowerShell includes two [automatic variables][03], `$_` and '$PSItem` that +PowerShell includes two [automatic variables][03], `$_` and `$PSItem` that refer to the current object in the pipeline. `$PSItem` was added to PowerShell in an attempt to provide a clearer meaning to @@ -27,7 +27,7 @@ with `$_` in every example. `$_` is the preferred usage. There are a few common use cases for `$PSItem`: - In the scriptblock for the **Process** parameter of the - `ForEach-Object`cmdlet + `ForEach-Object` cmdlet - In the scriptblock for the **FilterScript** parameter of the `Where-Object` cmdlet - In the intrinsic methods **ForEach** and **Where** diff --git a/reference/7.5/Microsoft.PowerShell.Core/Clear-History.md b/reference/7.5/Microsoft.PowerShell.Core/Clear-History.md index 24d690c0aaa4..e2fdbd0374b4 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/Clear-History.md +++ b/reference/7.5/Microsoft.PowerShell.Core/Clear-History.md @@ -20,7 +20,8 @@ Deletes entries from the PowerShell session command history. ### IDParameter (Default) ``` -Clear-History [[-Id] ] [[-Count] ] [-Newest] [-WhatIf] [-Confirm] [] +Clear-History [[-Id] ] [[-Count] ] [-Newest] [-WhatIf] [-Confirm] + [] ``` ### CommandLineParameter @@ -403,7 +404,7 @@ information, see [about_History](About/about_History.md). The session history is managed separately from the history maintained by the **PSReadLine** module. Both histories are available in sessions where **PSReadLine** is loaded. This cmdlet only works with -the session history. For more information see, +the session history. For more information, see [about_PSReadLine](../PSReadLine/About/about_PSReadLine.md). ## RELATED LINKS diff --git a/reference/7.6/Microsoft.PowerShell.Core/Clear-History.md b/reference/7.6/Microsoft.PowerShell.Core/Clear-History.md index 1cc0ad43f8c5..1aef2af231dd 100644 --- a/reference/7.6/Microsoft.PowerShell.Core/Clear-History.md +++ b/reference/7.6/Microsoft.PowerShell.Core/Clear-History.md @@ -20,7 +20,8 @@ Deletes entries from the PowerShell session command history. ### IDParameter (Default) ``` -Clear-History [[-Id] ] [[-Count] ] [-Newest] [-WhatIf] [-Confirm] [] +Clear-History [[-Id] ] [[-Count] ] [-Newest] [-WhatIf] [-Confirm] + [] ``` ### CommandLineParameter @@ -258,7 +259,8 @@ wildcards to match commands in the PowerShell session history displayed by `Get- enter more than one string, `Clear-History` deletes commands that match any of the strings. The **CommandLine** parameter can be used with **Count**. -For strings with a space, use single quotations. For more information, see [about_Quoting_Rules](About/about_Quoting_Rules.md). +For strings with a space, use single quotations. For more information, see +[about_Quoting_Rules](About/about_Quoting_Rules.md). ```yaml Type: System.String[] @@ -402,7 +404,8 @@ information, see [about_History](About/about_History.md). The session history is managed separately from the history maintained by the **PSReadLine** module. Both histories are available in sessions where **PSReadLine** is loaded. This cmdlet only works with -the session history. For more information see, [about_PSReadLine](../PSReadLine/About/about_PSReadLine.md). +the session history. For more information, see +[about_PSReadLine](../PSReadLine/About/about_PSReadLine.md). ## RELATED LINKS diff --git a/reference/7.7/Microsoft.PowerShell.Core/About/about_PSItem.md b/reference/7.7/Microsoft.PowerShell.Core/About/about_PSItem.md index cc60bc30d080..ed1bfa1b1001 100644 --- a/reference/7.7/Microsoft.PowerShell.Core/About/about_PSItem.md +++ b/reference/7.7/Microsoft.PowerShell.Core/About/about_PSItem.md @@ -14,7 +14,7 @@ The automatic variable that contains the current object in the pipeline object. ## Long description -PowerShell includes two [automatic variables][03], `$_` and '$PSItem` that +PowerShell includes two [automatic variables][03], `$_` and `$PSItem` that refer to the current object in the pipeline. `$PSItem` was added to PowerShell in an attempt to provide a clearer meaning to @@ -27,7 +27,7 @@ with `$_` in every example. `$_` is the preferred usage. There are a few common use cases for `$PSItem`: - In the scriptblock for the **Process** parameter of the - `ForEach-Object`cmdlet + `ForEach-Object` cmdlet - In the scriptblock for the **FilterScript** parameter of the `Where-Object` cmdlet - In the intrinsic methods **ForEach** and **Where**