Powershell pitfalls

后端 未结 21 1403
梦谈多话
梦谈多话 2020-12-23 01:44

What Powershell pitfalls you have fall into? :-)

Mine are:

# -----------------------------------
function foo()
{
    @(\"text\")
}

# Expected 1, a         


        
21条回答
  •  臣服心动
    2020-12-23 02:38

    This one has tripped me up before, using $o.SomeProperty where it should be $($o.SomeProperty).

提交回复
热议问题