mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 14:40:06 +02:00
fixed the bug ~ | path type
return empty string (#9853)
- this PR should close #9849 - fixes #9849
This commit is contained in:
@ -50,5 +50,14 @@ fn returns_type_of_existing_directory() {
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, "file");
|
||||
|
||||
let actual = nu!(pipeline(
|
||||
r#"
|
||||
echo "~"
|
||||
| path type
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, "dir");
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user