Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Implement a -WorkingDirectory parameter, for symmetry with Start-Job #44

Open
mklement0 opened this issue Sep 26, 2019 · 0 comments

Comments

@mklement0
Copy link

mklement0 commented Sep 26, 2019

Start-Job (now) has a -WorkingDirectory parameter that allows you to control what the script block executed in the background process sees as $PWD, the current location.

For symmetry and convenience, Start-ThreadJob should support -WorkingDirectory too.

(As an aside: For Start-Job, -WorkingDirectory $PWD can be used to make the job use the same location as the caller, for instance; that said, use of the caller's location should have been the default all along, and in the case of Start-ThreadJob it's not too late to fix that - see #46)

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

No branches or pull requests

1 participant