fixed the bug ~ | path type return empty string (#9853)

- this PR should close #9849 
- fixes #9849
This commit is contained in:
mengsuenyan
2023-07-31 20:47:18 +08:00
committed by GitHub
parent e16ce1df36
commit 28ed21864d
2 changed files with 16 additions and 1 deletions

View File

@ -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");
})
}