PowerShell internal functions

Working with PowerShell for years already, never knew that this would work! Internal functions in PowerShell (they probably have a better name):

function x
{
    function y
    {
        "function y"
    }
    y
}

PS> x

function y

PS> y

ERROR!

Published Saturday, July 17, 2010 1:26 PM by svdoever
Filed under:

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required)