Skip to content

Conversation

Taojunshen
Copy link
Contributor

  • Update ForEach-Object -Parallel example 17

In PS v7.2, ForEach-Object -Parallel was updated to support variable access in nested script block scenarios.

Example 17 in the docs currently reflects the erroneous behavior exhibited in v7.1 and prior. This change updates the example to reflect the fixed behavior in v7.2.

See PS issue #11817 for more information.

  • Fix schema violation

PR Summary

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributors guide.
  • Style: This PR adheres to the style guide.

* Update ForEach-Object -Parallel example 17

In PS v7.2, ForEach-Object -Parallel was updated to support variable
access in nested script block scenarios.

Example 17 in the docs currently reflects the erroneous behavior
exhibited in v7.1 and prior. This change updates the example to
reflect the fixed behavior in v7.2.

See PS issue #11817 for more information.

* Fix schema violation

---------

Co-authored-by: Sean Wheeler <[email protected]>
Copy link
Contributor

Learn Build status updates of commit 2a19cbf:

✅ Validation status: passed

File Status Preview URL Details
reference/7.4/Microsoft.PowerShell.Core/ForEach-Object.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Core/ForEach-Object.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Core/ForEach-Object.md ✅Succeeded View (powershell-7.6)

For more details, please refer to the build report.

For any questions, please:

@Taojunshen Taojunshen merged commit e6d0446 into live Apr 14, 2025
147 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants