Write-Object -NoEnumerate should not wrap sigular object - #5123
Conversation
|
PetSerAl What is the last commit? Need rebase? |
|
Ilya (@iSazonov) I am cherry pick first commit from #5109, to make sure that tests pass too, since my change is more strong then proposed here. I think it would be more consistent to unwrap any single parameter passed as |
|
PetSerAl Michael Klement (@mklement0) Please see latest comments in #5109 about the PR. |
|
PetSerAl Please add comment why the Issue was closed. |
|
Ilya (@iSazonov) Given this comment and that #5109 is now merged, I do not see how my changes in binder can be accepted. And I do not see other way to fix #5122, thus I see no value in keeping this PR open. I do not closing #5122 though. If someone know how to fix it, then them can submit their own PR instead of this one. |
Fix #5122
I decide to make
ValueFromRemainingArgumentsto always unwrap single argument, even if it is not collection. Otherwise it would be impossible to distinguish two cases: