From 36c5f6bc954aacb03cd9dee28593e9ba8f934eb5 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Wed, 26 Aug 2026 07:45:39 -0500 Subject: [PATCH 1/2] Sync typo fixes --- .../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..c042f5fb0bf3 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..ac52f79a8d95 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..d6f6d11da36d 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..4f645287abc7 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** From 9c2fb83a5038e2f669c9d5b15d04c49b4c52234a Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Wed, 26 Aug 2026 07:52:22 -0500 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- reference/5.1/Microsoft.PowerShell.Core/Clear-History.md | 2 +- reference/7.4/Microsoft.PowerShell.Core/Clear-History.md | 2 +- reference/7.5/Microsoft.PowerShell.Core/Clear-History.md | 2 +- reference/7.6/Microsoft.PowerShell.Core/Clear-History.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/5.1/Microsoft.PowerShell.Core/Clear-History.md b/reference/5.1/Microsoft.PowerShell.Core/Clear-History.md index c042f5fb0bf3..5388c8514eab 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/Clear-History.md +++ b/reference/5.1/Microsoft.PowerShell.Core/Clear-History.md @@ -403,7 +403,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.4/Microsoft.PowerShell.Core/Clear-History.md b/reference/7.4/Microsoft.PowerShell.Core/Clear-History.md index ac52f79a8d95..e7c9a6477be7 100644 --- a/reference/7.4/Microsoft.PowerShell.Core/Clear-History.md +++ b/reference/7.4/Microsoft.PowerShell.Core/Clear-History.md @@ -404,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.5/Microsoft.PowerShell.Core/Clear-History.md b/reference/7.5/Microsoft.PowerShell.Core/Clear-History.md index d6f6d11da36d..e2fdbd0374b4 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/Clear-History.md +++ b/reference/7.5/Microsoft.PowerShell.Core/Clear-History.md @@ -404,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 4f645287abc7..1aef2af231dd 100644 --- a/reference/7.6/Microsoft.PowerShell.Core/Clear-History.md +++ b/reference/7.6/Microsoft.PowerShell.Core/Clear-History.md @@ -404,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