-
Notifications
You must be signed in to change notification settings - Fork 86
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
Parameters don't work with PowerShell v2 #66
Comments
This problem seems to be with Start-RSJob and how PowerShell v2 deals with references to the count property on $null parameters: $null.count returns 0 in v3 and later but in v2 it returns nothing. So, in Start-RSJob.ps1 if you change the two references to $ArgumentList.count to ($ArgumentList) -and $ArgumentList.count, the example I gave in the OP works in v2 and later:
to:
|
Great! I appreciate the reports that you have been providing. It definitely helps to make this module better for everyone! |
This one appears to break the following attempt with a single item: 1|Start-RSJob -ScriptBlock {$_} In which there appears to be no data being received. |
Made some adjustments and it appears to be working now with the new version that I am working on. |
This one should be fixed in the latest release |
This looks good for my tests as well. Closing it. |
Try the following script:
With v3 & later, produces the following:
With v2 (run with PowerShell -version 2), the output is blank.
The text was updated successfully, but these errors were encountered: