Re:The increased use of PowerShell in attacks [pdf]
by 13of40 on Saturday May 20, 2017 @01:53AM
(#14381228)
Off-topic, but if I say "1..10 | Get-Widget" and Get-Widget doesn't have an InputObject parameter, the input object should be bound to the first positional parameter. Likewise, "dir | $_.length" should be semantically equivalent to "dir | %{$_.length}". Right now the former is an error because the second pipeline element is an expression, but you could implicitly make it a foreach. You could do either of these without a breaking change.
[ Parent
| on HN ]
There are no comments on this comment yet.