nushell/crates/nu-parser
Jakub Žádník cc5c4d38bb
Small fixes and refactors to paths & source command (#3998)
* Expand path when converting value -> PathBuf

Also includes Tagged<PathBuf>.

Fixes #3605

* Expand path for PATH env. variable

Fixes #1834

* Remove leftover Cows after nu-path refactor

There were some unnecessary Cow conversions leftover from the old
nu-path implementation.

* Use canonicalize in source command; Improve errors

Previously, `source` used `expand_path()` which does not follow
symlinks.

As a follow up, I improved the source error messages so they now tell
why the source file could not be canonicalized or read into string.
2021-09-12 02:36:14 +03:00
..
src Small fixes and refactors to paths & source command (#3998) 2021-09-12 02:36:14 +03:00
tests Only discard command comment if prev token was comment (#3628) 2021-06-17 14:11:05 +12:00
Cargo.toml nu-path crate refactor (#3730) 2021-08-28 15:59:09 +03:00