Skip to content

Commit 42684c8

Browse files
Remove PS 6+ operators from PS 5.1 doc
This removes operators added in newer PS versions from the PS 5.1 about_Operator_Precedence doc. The PS 5.1 about_Operators doc already doesn't include new operators like ??.
1 parent 5dadbfb commit 42684c8

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

reference/5.1/Microsoft.PowerShell.Core/About/about_Operator_Precedence.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Lists the PowerShell operators in precedence order.
33
Locale: en-US
4-
ms.date: 06/29/2021
4+
ms.date: 12/30/2025
55
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_operator_precedence?view=powershell-5.1&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about_Operator_Precedence
@@ -39,9 +39,9 @@ type `Get-Help <topic-name>`.
3939
| OPERATOR | REFERENCE |
4040
| --------------------------- | ------------------------------------ |
4141
| `$() @() () @{}` | [about_Operators][ops] |
42-
| `. ?.` (member access) | [about_Operators][ops] |
42+
| `.` (member access) | [about_Operators][ops] |
4343
| `::` (static) | [about_Operators][ops] |
44-
| `[0] ?[0]` (index operator) | [about_Operators][ops] |
44+
| `[0]` (index operator) | [about_Operators][ops] |
4545
| `[int]` (cast operators) | [about_Operators][ops] |
4646
| `-split` (unary) | [about_Split][split] |
4747
| `-join` (unary) | [about_Join][join] |
@@ -85,12 +85,9 @@ that happens.
8585
| ------------------------------------------------------- | ------------------------------------ |
8686
| `.` (dot-source) | [about_Operators][ops] |
8787
| `&` (call) | [about_Operators][ops] |
88-
| `? <if-true> : <if-false>` (Ternary operator) | [about_Operators][ops] |
89-
| `??` (null-coalese operator) | [about_Operators][ops] |
9088
| <code>&#124;</code> (pipeline operator) | [about_Operators][ops] |
9189
| `> >> 2> 2>> 2>&1` | [about_Redirection][redir] |
92-
| <code>&& &#124;&#124;</code> (pipeline chain operators) | [about_Operators][ops] |
93-
| `= += -= *= /= %= ??=` | [about_Assignment_Operators][assign] |
90+
| `= += -= *= /= %=` | [about_Assignment_Operators][assign] |
9491

9592
## Examples
9693

0 commit comments

Comments
 (0)