path expand
for path> path expand {flags}
--strict, -s
: Throw an error if the path could not be expanded--no-symlink, -n
: Do not resolve symbolic linksinput | output |
---|---|
list<string> | list<string> |
string | string |
Expand an absolute path
>'/home/joe/foo/../bar'|path expand
/home/joe/bar
Expand a relative path
>'foo/../bar'|path expand
Expand a list of paths
> [ /foo/../bar, /foo/../baz ] |path expand
╭───┬──────╮
│0│/bar│
│1│/baz│
╰───┴──────╯
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/path_expand.html