Straw man: ```powershell ps | where name =~ chrome | kill $it.pid ``` TL;DR, when a statement refers to `$it`, it effectively desugars into a closure taking one parameter whose value is the current pipeline input.
Activity
sophiajt commentedon Aug 3, 2019
Likely blocked on #180
wycats commentedon Aug 26, 2019
This is done
Move to use edit actions and an engine (nushell#14)
raboof commentedon Oct 1, 2021
How do you use this? I get
unknown variable: $itwith the straw man example, but I guess the actual syntax is different ;)raboof commentedon Oct 1, 2021
Ah,
ps | where name =~ chrome | each { kill $it.pid }Merge pull request nushell#14 from elferherrera/similar-name
hasnolen commentedon Jul 10, 2022
Seems like I had use
$in, not$it. SeeMerge pull request nushell#14 from Aloso/adjust-for-mobile
Add `into cell-path` for dynamic cell-path creation (#11322)
Add `into cell-path` for dynamic cell-path creation (nushell#11322)
add non-interactive install to the install script (nushell#14)
Add run-time type checking for command pipeline input (#14741)