I noticed a difference between those two declarations where only the position of the comma changes:
$a = @( @('a','b'),
@('c','d'))
$b = @( @('a','b')
, @('c','d'))
In this case, $a.length
evaluates to 2 and $b.length
evaluates to 3. The first sub-array of $b
has been flattened.
Is this a feature and where can I find its documentation?
By the way, $PSVersionTable
:
Name Value
---- -----
PSVersion 4.0
WSManStackVersion 3.0
SerializationVersion 1.1.0.1
CLRVersion 4.0.30319.42000
BuildVersion 6.3.9600.16406
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion 2.2