Skip to content

Conversation

@PetSerAl
Copy link
Contributor

@PetSerAl PetSerAl commented Oct 15, 2017

Fix #5122
I decide to make ValueFromRemainingArguments to always unwrap single argument, even if it is not collection. Otherwise it would be impossible to distinguish two cases:

Write-Object -NoEnumerate 1
Write-Object -NoEnumerate ( [System.Collections.Generic.List[object]]::new((,1)) )

@iSazonov
Copy link
Collaborator

@PetSerAl What is the last commit? Need rebase?

@PetSerAl
Copy link
Contributor Author

@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 ValueFromRemainingArguments, while #5109 propose to unwrap only collections.

@iSazonov
Copy link
Collaborator

@PetSerAl @mklement0 Please see latest comments in #5109 about the PR.

@PetSerAl PetSerAl closed this Oct 19, 2017
@iSazonov
Copy link
Collaborator

iSazonov commented Oct 19, 2017

@PetSerAl Please add comment why the Issue was closed.

@PetSerAl
Copy link
Contributor Author

@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.

@PetSerAl PetSerAl deleted the fix-write-object-noenumerate-sigular-object branch August 22, 2018 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants