mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 11:54:02 +01:00
Fix flattening of in-variable (#624)
This commit is contained in:
parent
7faa4fbff4
commit
80649f2341
8
TODO.md
8
TODO.md
@ -41,15 +41,15 @@
|
|||||||
- [ ] external command signatures
|
- [ ] external command signatures
|
||||||
- [ ] shells
|
- [ ] shells
|
||||||
- [ ] autoenv
|
- [ ] autoenv
|
||||||
- [ ] dataframes
|
- [x] dataframes
|
||||||
- [ ] overlays (replacement for `autoenv`), adding modules to shells
|
- [ ] overlays (replacement for `autoenv`), adding modules to shells
|
||||||
- [ ] port over `which` logic
|
- [x] port over `which` logic
|
||||||
- [ ] port test support crate so we can test against sample files, including multiple inputs into the CLI
|
- [ ] port test support crate so we can test against sample files, including multiple inputs into the CLI
|
||||||
- [ ] benchmarking
|
- [x] benchmarking
|
||||||
- [ ] finish adding config properties
|
- [ ] finish adding config properties
|
||||||
- [ ] system-agnostic test cases
|
- [ ] system-agnostic test cases
|
||||||
- [ ] exit codes
|
- [ ] exit codes
|
||||||
- [ ] auto-cd
|
- [x] auto-cd
|
||||||
- [ ] length of time the command runs put in the env (CMD_DURATION_MS)
|
- [ ] length of time the command runs put in the env (CMD_DURATION_MS)
|
||||||
|
|
||||||
## Post-nushell merge:
|
## Post-nushell merge:
|
||||||
|
@ -3609,7 +3609,7 @@ fn wrap_expr_with_collect(working_set: &mut StateWorkingSet, expr: &Expression)
|
|||||||
let mut signature = Signature::new("");
|
let mut signature = Signature::new("");
|
||||||
signature.required_positional.push(PositionalArg {
|
signature.required_positional.push(PositionalArg {
|
||||||
var_id: Some(var_id),
|
var_id: Some(var_id),
|
||||||
name: "$it".into(),
|
name: "$in".into(),
|
||||||
desc: String::new(),
|
desc: String::new(),
|
||||||
shape: SyntaxShape::Any,
|
shape: SyntaxShape::Any,
|
||||||
});
|
});
|
||||||
@ -3639,9 +3639,12 @@ fn wrap_expr_with_collect(working_set: &mut StateWorkingSet, expr: &Expression)
|
|||||||
custom_completion: None,
|
custom_completion: None,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// The containing, synthetic call to `collect`.
|
||||||
|
// We don't want to have a real span as it will confuse flattening
|
||||||
|
// The args are where we'll get the real info
|
||||||
Expression {
|
Expression {
|
||||||
expr: Expr::Call(Box::new(Call {
|
expr: Expr::Call(Box::new(Call {
|
||||||
head: span,
|
head: Span::new(0, 0),
|
||||||
named: vec![],
|
named: vec![],
|
||||||
positional: output,
|
positional: output,
|
||||||
decl_id,
|
decl_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user