Fix powershell to not crash on converting recursive array to bool#3208
Fix powershell to not crash on converting recursive array to bool#3208daxian-dbw merged 2 commits intoPowerShell:masterfrom PetSerAl:recursive-array-fix
Conversation
|
@PetSerAl, It will cover your contributions to all Microsoft-managed open source projects. |
|
Code changes look good - we do need the cla to be signed before it can be merged. |
|
@PetSerAl Thanks for your contribution! |
|
Hi, I am closing and re-opening this PR to bump the CLA bot. Sorry for the inconvenience! |
|
@PetSerAl, |
|
One possible breaking change came to my mind: $a = ,,$false
$b = ,[PSObject](,$false)
!!$a # $true
!!$b # was $false, now is $trueSo, this PR make PowerShell behavior more consistent in regard to wrapping array into |
|
I think the behavior with the fix reflects the original intention of the code. Here is the comment in
And as you said, now the conversion is more consistent: After Fix Using a nested array in |
|
It's definitely obscure, I'm not worried about the change. |
Fixing #3207