Closed ajansveld closed 5 years ago
BTW - I am happy to close this issue as it appears to be non-trivial to fix and the impact is minimal.
Yeah, I would say this behavior is By Design--Start-ThreadJob
gives PS runspace isolation, but it can't possibly attempt to provide process-like isolation for process-global things. And in fact, IMO it's part of the point (proc-global things can be shared without serialization).
Agreed, closing issue.
Running this gives unexpected output:
I would argue that console output should be discarded, just like Start-Job does.