nushell/crates
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
..
nu_plugin_average Bump to 0.11.0 (#1474) 2020-03-11 06:34:19 +13:00
nu_plugin_binaryview Add a --full mode to ps (#1507) 2020-03-20 20:53:49 +13:00
nu_plugin_fetch Bump to 0.11.0 (#1474) 2020-03-11 06:34:19 +13:00
nu_plugin_inc Bump to 0.11.0 (#1474) 2020-03-11 06:34:19 +13:00
nu_plugin_match Bump to 0.11.0 (#1474) 2020-03-11 06:34:19 +13:00
nu_plugin_post Bump to 0.11.0 (#1474) 2020-03-11 06:34:19 +13:00
nu_plugin_ps Fixes the crash for ps --full in Windows (#1514) 2020-03-23 08:28:02 +13:00
nu_plugin_str Bump to 0.11.0 (#1474) 2020-03-11 06:34:19 +13:00
nu_plugin_sys Add a --full mode to ps (#1507) 2020-03-20 20:53:49 +13:00
nu_plugin_textview Add a --full mode to ps (#1507) 2020-03-20 20:53:49 +13:00
nu_plugin_tree Bump to 0.11.0 (#1474) 2020-03-11 06:34:19 +13:00
nu-build Bump to 0.11.0 (#1474) 2020-03-11 06:34:19 +13:00
nu-cli Fix '/' and '..' not being valid mv targets (#1519) 2020-03-24 14:00:48 +13:00
nu-errors Bump to 0.11.0 (#1474) 2020-03-11 06:34:19 +13:00
nu-macros Bump to 0.11.0 (#1474) 2020-03-11 06:34:19 +13:00
nu-parser Infer types from regular delimited plain text unstructured files. (#1494) 2020-03-16 15:50:45 -05:00
nu-plugin Bump to 0.11.0 (#1474) 2020-03-11 06:34:19 +13:00
nu-protocol Make sum plugin as internal command. (#1501) 2020-03-18 18:46:00 -05:00
nu-source Infer types from regular delimited plain text unstructured files. (#1494) 2020-03-16 15:50:45 -05:00
nu-test-support Bump to 0.11.0 (#1474) 2020-03-11 06:34:19 +13:00
nu-value-ext Bump to 0.11.0 (#1474) 2020-03-11 06:34:19 +13:00