Thursday, October 24, 2013

PowerShell koan: When is an array not an array?

They did it to me again.  I was halfway through a perfectly good rant about the half-witted way PowerShell handles a ForEach loop when the array we're looping through isn't as expected, when I went and tested the behavior I was describing.  Only to find that the annoying behavior had disappeared between versions 2.0 and 3.0.

Thanks, PowerShell team, for once again screwing up a perfectly good blog rant by improving your product.  Thanks.  Thanks a lot.

No comments:

Post a Comment