idea: Normalize-Script function

Topics: Developer Forum
Developer
Apr 10, 2007 at 10:38 PM
how about creating a function that will resolve a given script to its component cmdlets, e.g. resolve all the aliases. Every now and again I try someone's script only to find that they have aliases that I don't. Of course this function wouldn't solve that problem, but if you wanted to publish your own script and couldn't remember what aliases are yours and what are default, you could push it through this function to spit out a 100% compatible script.

Thoughts?
Coordinator
Apr 11, 2007 at 5:42 AM
Wouldn't this require parsing the script?
Developer
Apr 11, 2007 at 1:07 PM
yeah. I never said it would be easy. :D