mirror of
https://github.com/nushell/nushell
synced 2024-11-14 17:07:07 +00:00
4b11b283ac
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 |
||
---|---|---|
.. | ||
nu-ansi-term | ||
nu-cli | ||
nu-command | ||
nu-data | ||
nu-engine | ||
nu-errors | ||
nu-json | ||
nu-parser | ||
nu-plugin | ||
nu-pretty-hex | ||
nu-protocol | ||
nu-source | ||
nu-stream | ||
nu-table | ||
nu-test-support | ||
nu-value-ext | ||
nu_plugin_binaryview | ||
nu_plugin_chart | ||
nu_plugin_fetch | ||
nu_plugin_from_bson | ||
nu_plugin_from_sqlite | ||
nu_plugin_inc | ||
nu_plugin_match | ||
nu_plugin_post | ||
nu_plugin_ps | ||
nu_plugin_query_json | ||
nu_plugin_s3 | ||
nu_plugin_selector | ||
nu_plugin_start | ||
nu_plugin_sys | ||
nu_plugin_textview | ||
nu_plugin_to_bson | ||
nu_plugin_to_sqlite | ||
nu_plugin_tree | ||
nu_plugin_xpath |