mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 01:54:57 +02:00
Fix PipelineData::print when table
is overridden (#6129)
* Fix PipelineData::print when `table` is overridden Fixes #6113 Signed-off-by: nibon7 <nibon7@163.com> * don't use deprecated `is_custom_command` Signed-off-by: nibon7 <nibon7@163.com> * add test Signed-off-by: nibon7 <nibon7@163.com>
This commit is contained in:
@ -130,3 +130,8 @@ fn help_not_present_in_extern() -> TestResult {
|
||||
"Usage:\n > git fetch",
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn override_table() -> TestResult {
|
||||
run_test(r#"def table [] { "hi" }; table"#, "hi")
|
||||
}
|
||||
|
Reference in New Issue
Block a user