FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Set current working directory of each ForEach-Object -Parallel running script to the same location as the calling script. by PaulHigin · Pull Request #10672 · PowerShell/PowerShell · GitHub

Set current working directory of each ForEach-Object -Parallel running script to the same location as the calling script. - #10672

Merged
Dongbo Wang (daxian-dbw) merged 6 commits into
PowerShell:masterfrom
PaulHigin:fix-foreach-parallel-startdir
Oct 4, 2019
Merged

Set current working directory of each ForEach-Object -Parallel running script to the same location as the calling script.#10672
Dongbo Wang (daxian-dbw) merged 6 commits into
PowerShell:masterfrom
PaulHigin:fix-foreach-parallel-startdir

Conversation

Copy link
Copy Markdown
Contributor

PR Summary

This changes fixes issue, #10537. It sets each parallel running script block context to have the same working directory location as the calling script.

PR Context

Previously, parallel running script blocks would use the default PowerShell working directory, similar to remoting and job execution. But ForEach-Object -Parallel should run all script in the same working directory as the calling script, to make it consistent with ForEach-Object while running in normal (non-parallel) mode.

PR Checklist

Steve Lee (SteveL-MSFT) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Ilya (iSazonov) added CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log and removed WG-Cmdlets general cmdlet issues Issue-Bug Issue has been identified as a bug in the product labels Oct 2, 2019
Ilya (iSazonov) added this to the 7.0.0-preview.5 milestone Oct 2, 2019

Ilya (iSazonov) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM with one minor comment.

Copy link
Copy Markdown

🎉v7.0.0-preview.5 has been released which incorporates this pull request.:tada:

Handy links:

Ryan Yates (kilasuit) pushed a commit to kilasuit/PowerShell that referenced this pull request Nov 9, 2019
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL