Commit 2a19cbf
Update
* 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]>ForEach-Object example 17 to reflect current behavior (#11997)1 parent 3f3cbea commit 2a19cbf
File tree
3 files changed
+45
-72
lines changed- reference
- 7.4/Microsoft.PowerShell.Core
- 7.5/Microsoft.PowerShell.Core
- 7.6/Microsoft.PowerShell.Core
3 files changed
+45
-72
lines changedLines changed: 15 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
| 458 | + | |
459 | 459 | | |
460 | | - | |
461 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
462 | 464 | | |
463 | 465 | | |
464 | 466 | | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | 467 | | |
480 | 468 | | |
481 | 469 | | |
| |||
486 | 474 | | |
487 | 475 | | |
488 | 476 | | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
494 | 483 | | |
495 | 484 | | |
496 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
497 | 488 | | |
498 | 489 | | |
499 | 490 | | |
| |||
Lines changed: 15 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
| 458 | + | |
459 | 459 | | |
460 | | - | |
461 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
462 | 464 | | |
463 | 465 | | |
464 | 466 | | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | 467 | | |
480 | 468 | | |
481 | 469 | | |
| |||
486 | 474 | | |
487 | 475 | | |
488 | 476 | | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
494 | 483 | | |
495 | 484 | | |
496 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
497 | 488 | | |
498 | 489 | | |
499 | 490 | | |
| |||
Lines changed: 15 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
| 458 | + | |
459 | 459 | | |
460 | | - | |
461 | | - | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
462 | 464 | | |
463 | 465 | | |
464 | 466 | | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | 467 | | |
480 | 468 | | |
481 | 469 | | |
| |||
486 | 474 | | |
487 | 475 | | |
488 | 476 | | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
494 | 483 | | |
495 | 484 | | |
496 | | - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
497 | 488 | | |
498 | 489 | | |
499 | 490 | | |
| |||
0 commit comments