mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 03:34:58 +02:00
Auto-hide aliases to prevent recursion (#4487)
This commit is contained in:
@ -33,6 +33,11 @@ fn alias_2_multi_word() -> TestResult {
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn alias_recursion() -> TestResult {
|
||||
run_test_contains(r#"alias ls = (ls | sort-by type name -i); ls"#, " ")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn block_param1() -> TestResult {
|
||||
run_test("[3] | each { $it + 10 } | get 0", "13")
|
||||
|
Reference in New Issue
Block a user