nushell/crates/nu-parser/src
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
..
lex Remove duplicate dependencies (#3961) 2021-08-28 15:34:11 +12:00
parse Small fixes and refactors to paths & source command (#3998) 2021-09-12 02:36:14 +03:00
errors.rs Getting ready for multiline scripts (#2737) 2020-11-10 05:27:07 +13:00
flag.rs Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00
lib.rs Remove duplicate dependencies (#3961) 2021-08-28 15:34:11 +12:00
parse.rs Improve error message when bash-style alias syntax is mistakenly used (#3995) 2021-09-10 10:44:55 +12:00
scope.rs Add the ability to remove and list aliases (#3879) 2021-08-17 08:56:35 -05:00
shapes.rs Add general refactorings (#3996) 2021-09-10 10:44:22 +12:00