mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
Paren interpolation (#3452)
* Switch interp to use parens * improve interp parsing
This commit is contained in:
@ -52,7 +52,7 @@ impl WholeStreamCommand for Each {
|
||||
Example {
|
||||
description: "Number each item and echo a message",
|
||||
example:
|
||||
"echo ['bob' 'fred'] | each --numbered { echo $\"{$it.index} is {$it.item}\" }",
|
||||
"echo ['bob' 'fred'] | each --numbered { echo $\"($it.index) is ($it.item)\" }",
|
||||
result: Some(vec![Value::from("0 is bob"), Value::from("1 is fred")]),
|
||||
},
|
||||
Example {
|
||||
|
Reference in New Issue
Block a user