You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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 ofStart-ThreadJob
it's not too late to fix that - see #46)The text was updated successfully, but these errors were encountered: