nushell/crates/nu-path
nicole mazzuca 6e85b04923
[ls, path relative-to] Fix use of ls ~ | path relative-to ~ (#5212)
* [ls] implement 1b.

> `ls ~` does not return paths relative to the current directory.

We now return `/Users/blah` instead of `../../blah`

* expand lhs and rhs on `path relative-to`

/Users/nimazzuc/projects/nushell〉'~' | path relative-to '~'
/Users/nimazzuc/projects/nushell〉'~/foo' | path relative-to '~'
foo
/Users/nimazzuc/projects/nushell〉'/Users/nimazzuc/foo' | path relative-to '~'
foo
/Users/nimazzuc/projects/nushell〉'~/foo' | path relative-to '/Users/nimazzuc'
foo

* format
2022-04-16 15:05:42 -05:00
..
src [ls, path relative-to] Fix use of ls ~ | path relative-to ~ (#5212) 2022-04-16 15:05:42 -05:00
tests Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
Cargo.toml Move to dev version 0.61.1 (#5206) 2022-04-16 09:29:30 +12:00
LICENSE Include license text in all crates (#5094) 2022-04-08 10:47:13 +02:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00

nu-path

This crate takes care of path handling in Nushell, such as canonicalization and component expansion, as well as other path-related utilities.