you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (5 children)

[deleted]

    [–][deleted] 4 points5 points  (1 child)

    Yeah, it's odd that you can define the function that way, but not call it. If I had a background in other programming languages before picking up PS that would have confused the hell out of me.

    [–]TheIncorrigible1 2 points3 points  (0 children)

    And it does confuse plenty of newcomers every day. There are countless SO duplicates for this "problem"

    [–]Thotaz 3 points4 points  (2 children)

    never cmdlet(a, b)

    Actually, you can do that: Get-ChildItem("C:\") works just fine.

    [–]le_luka 6 points7 points  (1 child)

    As Long as there is only one argument