mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 09:25:38 +02:00
Fix open ended ranges (#4677)
* Make open ended ranges more open ended * Add test
This commit is contained in:
@ -138,6 +138,11 @@ impl Command for Table {
|
||||
let base_pipeline = val.to_base_value(span)?.into_pipeline_data();
|
||||
self.run(engine_state, stack, call, base_pipeline)
|
||||
}
|
||||
PipelineData::Value(x @ Value::Range { .. }, ..) => Ok(Value::String {
|
||||
val: x.into_string("", &config),
|
||||
span: call.head,
|
||||
}
|
||||
.into_pipeline_data()),
|
||||
x => Ok(x),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user