Skip to content

Commit f76ae30

Browse files
PaulHiginkilasuit
authored andcommitted
Set current working directory of each ForEach-Object -Parallel running script to the same location as the calling script. (PowerShell#10672)
1 parent 80393c0 commit f76ae30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/System.Management.Automation/engine/InternalCommands.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ private void InitParallelParameterSet()
399399
{
400400
_currentLocationPath = SessionState.Internal.CurrentLocation.Path;
401401
}
402-
catch (PSInvalidOperationException)
402+
catch (PSInvalidOperationException)
403403
{
404404
}
405405

@@ -499,7 +499,7 @@ private void InitParallelParameterSet()
499499
_taskCollection.Complete();
500500
_taskCollectionException = ex;
501501
_taskDataStreamWriter.Close();
502-
502+
503503
break;
504504
}
505505

0 commit comments

Comments
 (0)