nushell/crates
Lily Mara 4b11b283ac
Resolve issues with rm * globbing (#3516)
Using the `*` wildcard should not attempt to delete files with a leading dot
unless the more explicit `.*` is used. `rm *` should also not attempt to delete
the current directory or its parent directory (`.` and `..`). I have resolved
this bug as well in a less satisfactory way. I think it may be the case that we
can only disambiguate the `.` and `..` path segments by using `Path::display`.
Here is a short list of alternatives that I tried:

- `Path::ends_with()` can detect `/..` but not `/.`.
- `Path::iter()` and `Path::components()` leave out `/.`.
- `Path::file_name()` normalizes `/.` to the parent component's file name.

Fixes #3508
2021-05-30 15:36:36 +12:00
..
nu-ansi-term Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu-cli update keybindings to support new rustyline functionality (#3511) 2021-05-28 15:10:04 -05:00
nu-command Resolve issues with rm * globbing (#3516) 2021-05-30 15:36:36 +12:00
nu-data remove expect so that config doesn't fail (#3510) 2021-05-29 05:23:15 +12:00
nu-engine Resolve issues with rm * globbing (#3516) 2021-05-30 15:36:36 +12:00
nu-errors Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu-json Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu-parser Parse key=value named flag support. (#3515) 2021-05-29 20:42:03 -05:00
nu-plugin Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu-pretty-hex Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu-protocol Cleanup let varname and rhs (#3507) 2021-05-28 19:48:54 +12:00
nu-source Parse key=value named flag support. (#3515) 2021-05-29 20:42:03 -05:00
nu-stream Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu-table Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu-test-support Make the default int an i64 (#3428) 2021-05-14 20:35:09 +12:00
nu-value-ext Groupby operations on dataframes (#3473) 2021-05-23 19:37:04 +12:00
nu_plugin_binaryview re-enable ansi support when externals break it (#3429) 2021-05-15 16:11:21 +12:00
nu_plugin_chart Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu_plugin_fetch Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu_plugin_from_bson Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu_plugin_from_sqlite Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu_plugin_inc Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu_plugin_match Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu_plugin_post Groupby operations on dataframes (#3473) 2021-05-23 19:37:04 +12:00
nu_plugin_ps Make the default int an i64 (#3428) 2021-05-14 20:35:09 +12:00
nu_plugin_query_json Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu_plugin_s3 Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu_plugin_selector Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu_plugin_start Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu_plugin_sys Make the default int an i64 (#3428) 2021-05-14 20:35:09 +12:00
nu_plugin_textview Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu_plugin_to_bson Groupby operations on dataframes (#3473) 2021-05-23 19:37:04 +12:00
nu_plugin_to_sqlite Make the default int an i64 (#3428) 2021-05-14 20:35:09 +12:00
nu_plugin_tree Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00
nu_plugin_xpath Bump to 0.31.1 (#3411) 2021-05-12 15:06:50 +12:00