nushell/crates/nu-path/src
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
..
dots.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
expansions.rs [ls, path relative-to] Fix use of ls ~ | path relative-to ~ (#5212) 2022-04-16 15:05:42 -05:00
helpers.rs Add config file loading 2021-10-13 16:57:05 +13:00
lib.rs [ls, path relative-to] Fix use of ls ~ | path relative-to ~ (#5212) 2022-04-16 15:05:42 -05:00
tilde.rs Don't include trailing separator when expanding tilde (#4974) 2022-03-27 06:28:31 +13:00
util.rs Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00