Repository navigation
Correct operator precedence and unary operator grouping - #13367
Dimitriy Leontev (dleontev) wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the versioned operator-precedence documentation updates.
No open issues 🎉
What changed in this PR
Updates the versioned about_Operator_Precedence documentation to address #13331 for Windows PowerShell 5.1 and PowerShell 7.4–7.7.
Changes:
- Groups prefix unary operators at equal precedence and distinguishes prefix/postfix increment and decrement and unary/binary comma.
- Places null-coalescing (
??) above comparisons in the PowerShell 7.x articles, preserving 5.1 syntax. - Adds examples explaining operator grouping and refreshes article dates.
| File | Description |
|---|---|
| reference/7.7/Microsoft.PowerShell.Core/About/about_Operator_Precedence.md | Corrects unary grouping and null-coalescing precedence; adds examples. |
| reference/7.6/Microsoft.PowerShell.Core/About/about_Operator_Precedence.md | Applies the precedence corrections and examples to 7.6. |
| reference/7.5/Microsoft.PowerShell.Core/About/about_Operator_Precedence.md | Applies the precedence corrections and examples to 7.5. |
| reference/7.4/Microsoft.PowerShell.Core/About/about_Operator_Precedence.md | Applies the precedence corrections and examples to 7.4. |
| reference/5.1/Microsoft.PowerShell.Core/About/about_Operator_Precedence.md | Corrects unary grouping and adds examples without introducing 7.x syntax. |
Review effort: Balanced
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 394c14d: ✅ Validation status: passed
For more details, please refer to the build report. |
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit c55f39e: ✅ Validation status: passed
For more details, please refer to the build report. |
c55f39e to
d27b4fb
Compare
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit d27b4fb: ✅ Validation status: passed
For more details, please refer to the build report. |
PR Summary
Correct
about_Operator_Precedencefor Windows PowerShell 5.1 and PowerShell 7.4–7.7:-bnot, and distinguish prefix from postfix increment/decrement.??above comparisons in the PowerShell 7.x articles, preserving the 5.1 syntax.Fixes #13331.
Validation:
git diff --checkpassed. The full documentation build/publishing validation has not been run locally and remains for repository CI after submission.AI assistance: Codex prepared the documentation edits and performed the local validation described above.
PR Checklist