nushell/crates/nu-cli/tests
Jon Grythe Stødle 81a48d6d0e
Fix '/' and '..' not being valid mv targets (#1519)
* Fix '/' and '..' not being valid mv targets

If `/` or `../` is specified as the destination for `mv`, it will fail with an error message saying it's not a valid destination. This fixes it to account for the fact that `Path::file_name` return `None` when the file name evaluates to `/` or `..`. It will only take the slow(er) path if `Path::file_name` returns `None` in its initial check.

Fixes #1291

* Add test
2020-03-24 14:00:48 +13:00
..
commands Fix '/' and '..' not being valid mv targets (#1519) 2020-03-24 14:00:48 +13:00
format_conversions WIP: Add vcard/ical support (#1504) 2020-03-21 08:35:09 +13:00
main.rs Move most of the root package into a subcrate. (#1445) 2020-03-04 13:58:20 -05:00