Exclude ./... from expansion (#5839)

* exclude ./... from expansion

* use all instead of any

* no path expansion for external arguments

* clippy error

* expand only tilde
This commit is contained in:
Fernando Herrera 2022-06-22 22:00:30 -05:00 committed by GitHub
parent f43a65d7a7
commit 3c0bccb900
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -414,7 +414,8 @@ impl ExternalCommand {
item: trim_enclosing_quotes(&arg.item),
span: arg.span,
};
arg.item = nu_path::expand_to_real_path(arg.item)
arg.item = nu_path::expand_tilde(arg.item)
.to_string_lossy()
.to_string();