PowerShell function return foolishness
While working on an update to Set-PowerShellSig, I noticed something weird. Well, not just weird, but bad. Say you explicitly create an arraylist or generic list in a function, we’ll call it myDumbReturn and you add things to it. Now, you want to return this arraylist or generic list so you say: return $myArrayList You’d expect that if you had a statement like $myReturn = myDumbReturn, that…











