Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think @("value") is enough.

I use

    [array]$Ary = "value"


I haven't used PS in many years, but I do remember `@("value")` would still end up unwrapping the single-element array back into its element in some situations, and the only sure-fire way to get an array was `, "value"` or `@(, "value")`




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: