Skip to content

Commit

Permalink
Fix error identified by UUF (#11169)
Browse files Browse the repository at this point in the history
* Fix error identified by UUF

* Apply suggestions from review

---------

Co-authored-by: Mikey Lombardi (He/Him) <michael.t.lombardi@gmail.com>
  • Loading branch information
sdwheeler and michaeltlombardi committed Jun 7, 2024
1 parent 08966a8 commit 359e40f
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 32 deletions.
12 changes: 7 additions & 5 deletions reference/5.1/Microsoft.PowerShell.Core/About/about_Scopes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Explains the concept of scope in PowerShell and shows how to set and change the scope of elements.
Locale: en-US
ms.date: 01/26/2024
ms.date: 06/07/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_scopes?view=powershell-5.1&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about Scopes
Expand Down Expand Up @@ -38,10 +38,12 @@ The following are the basic rules of scope:
which it was created, unless you explicitly specify a different scope.
- When code running in a runspace references an item, PowerShell searches the
scope hierarchy, starting with the current scope and proceeding through each
parent scope. If the item isn't found, a new item is created in the current
scope. If it finds a match, the value of the item is retrieved from the scope
where is was found. If you change value, the item copied to the current scope
so that the change only affects the current scope.
parent scope.
- If the item isn't found, a new item is created in the current scope.
- If it finds a match, the value of the item is retrieved from the scope
where is was found.
- If you change the value, the item is copied to the current scope so that
the change only affects the current scope.
- If you explicitly create an item that shares its name with an item in a
different scope, the original item might be hidden by the new item, but it
isn't overridden or changed.
Expand Down
7 changes: 4 additions & 3 deletions reference/5.1/Microsoft.PowerShell.Utility/Select-String.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 03/10/2023
ms.date: 06/07/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/select-string?view=powershell-5.1&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Select-String
Expand Down Expand Up @@ -615,8 +615,9 @@ Accept wildcard characters: False

### -Quiet

Indicates that the cmdlet returns a Boolean value (True or False), instead of a **MatchInfo**
object. The value is True if the pattern is found; otherwise the value is False.
Indicates that the cmdlet returns a simple response instead of a **MatchInfo**
object. The returned value is `$true` if the pattern is found or `$null` if the
pattern is not found.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down
12 changes: 7 additions & 5 deletions reference/7.2/Microsoft.PowerShell.Core/About/about_Scopes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Explains the concept of scope in PowerShell and shows how to set and change the scope of elements.
Locale: en-US
ms.date: 01/26/2024
ms.date: 06/07/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_scopes?view=powershell-7.2&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about Scopes
Expand Down Expand Up @@ -38,10 +38,12 @@ The following are the basic rules of scope:
which it was created, unless you explicitly specify a different scope.
- When code running in a runspace references an item, PowerShell searches the
scope hierarchy, starting with the current scope and proceeding through each
parent scope. If the item isn't found, a new item is created in the current
scope. If it finds a match, the value of the item is retrieved from the scope
where is was found. If you change value, the item copied to the current scope
so that the change only affects the current scope.
parent scope.
- If the item isn't found, a new item is created in the current scope.
- If it finds a match, the value of the item is retrieved from the scope
where is was found.
- If you change the value, the item is copied to the current scope so that
the change only affects the current scope.
- If you explicitly create an item that shares its name with an item in a
different scope, the original item might be hidden by the new item, but it
isn't overridden or changed.
Expand Down
7 changes: 4 additions & 3 deletions reference/7.2/Microsoft.PowerShell.Utility/Select-String.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 12/12/2022
ms.date: 06/07/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/select-string?view=powershell-7.2&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Select-String
Expand Down Expand Up @@ -716,8 +716,9 @@ Accept wildcard characters: False

### -Quiet

Indicates that the cmdlet returns a Boolean value (True or False), instead of a **MatchInfo**
object. The value is True if the pattern is found; otherwise the value is False.
Indicates that the cmdlet returns a simple response instead of a **MatchInfo**
object. The returned value is `$true` if the pattern is found or `$null` if the
pattern is not found.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down
12 changes: 7 additions & 5 deletions reference/7.4/Microsoft.PowerShell.Core/About/about_Scopes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Explains the concept of scope in PowerShell and shows how to set and change the scope of elements.
Locale: en-US
ms.date: 01/26/2024
ms.date: 06/07/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_scopes?view=powershell-7.4&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about Scopes
Expand Down Expand Up @@ -38,10 +38,12 @@ The following are the basic rules of scope:
which it was created, unless you explicitly specify a different scope.
- When code running in a runspace references an item, PowerShell searches the
scope hierarchy, starting with the current scope and proceeding through each
parent scope. If the item isn't found, a new item is created in the current
scope. If it finds a match, the value of the item is retrieved from the scope
where is was found. If you change value, the item copied to the current scope
so that the change only affects the current scope.
parent scope.
- If the item isn't found, a new item is created in the current scope.
- If it finds a match, the value of the item is retrieved from the scope
where is was found.
- If you change the value, the item is copied to the current scope so that
the change only affects the current scope.
- If you explicitly create an item that shares its name with an item in a
different scope, the original item might be hidden by the new item, but it
isn't overridden or changed.
Expand Down
7 changes: 4 additions & 3 deletions reference/7.4/Microsoft.PowerShell.Utility/Select-String.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 03/15/2023
ms.date: 06/07/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/select-string?view=powershell-7.4&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Select-String
Expand Down Expand Up @@ -721,8 +721,9 @@ Accept wildcard characters: False

### -Quiet

Indicates that the cmdlet returns a Boolean value (True or False), instead of a **MatchInfo**
object. The value is True if the pattern is found; otherwise the value is False.
Indicates that the cmdlet returns a simple response instead of a **MatchInfo**
object. The returned value is `$true` if the pattern is found or `$null` if the
pattern is not found.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down
12 changes: 7 additions & 5 deletions reference/7.5/Microsoft.PowerShell.Core/About/about_Scopes.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: Explains the concept of scope in PowerShell and shows how to set and change the scope of elements.
Locale: en-US
ms.date: 01/26/2024
ms.date: 06/07/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_scopes?view=powershell-7.5&WT.mc_id=ps-gethelp
schema: 2.0.0
title: about Scopes
Expand Down Expand Up @@ -38,10 +38,12 @@ The following are the basic rules of scope:
which it was created, unless you explicitly specify a different scope.
- When code running in a runspace references an item, PowerShell searches the
scope hierarchy, starting with the current scope and proceeding through each
parent scope. If the item isn't found, a new item is created in the current
scope. If it finds a match, the value of the item is retrieved from the scope
where is was found. If you change value, the item copied to the current scope
so that the change only affects the current scope.
parent scope.
- If the item isn't found, a new item is created in the current scope.
- If it finds a match, the value of the item is retrieved from the scope
where is was found.
- If you change the value, the item is copied to the current scope so that
the change only affects the current scope.
- If you explicitly create an item that shares its name with an item in a
different scope, the original item might be hidden by the new item, but it
isn't overridden or changed.
Expand Down
7 changes: 4 additions & 3 deletions reference/7.5/Microsoft.PowerShell.Utility/Select-String.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 03/15/2023
ms.date: 06/07/2024
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/select-string?view=powershell-7.5&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Select-String
Expand Down Expand Up @@ -721,8 +721,9 @@ Accept wildcard characters: False

### -Quiet

Indicates that the cmdlet returns a Boolean value (True or False), instead of a **MatchInfo**
object. The value is True if the pattern is found; otherwise the value is False.
Indicates that the cmdlet returns a simple response instead of a **MatchInfo**
object. The returned value is `$true` if the pattern is found or `$null` if the
pattern is not found.

```yaml
Type: System.Management.Automation.SwitchParameter
Expand Down

0 comments on commit 359e40f

Please sign in to comment.