Open MVKozlov opened 6 years ago
@MVKozlov Is this one fixed with one of the previous PRs? I'm trying to play cleanup on old issues.
It seems this is not bug, but powershell-by-design
feature.
$global:variable
defined inside start-rsjob {} block (i.e. inside child runspace) do not correlate with $global:variable
in main runspace.
It can be fixed by using synchronized hash, but I'm not sure if we should do this
There is a bug based on #169
Code sample:
Currently
Receive-RSJob
returned correct result, butGet-RSJob
return only2
jobsI expect that
Get-RSJob
should return12
jobs