nushell/crates/nu-engine/src
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
..
env Clippy fixes for new Rust version (#3392) 2021-05-07 07:58:21 +12:00
evaluate Fix bad operator (#3479) 2021-05-24 17:27:10 +12:00
filesystem Resolve issues with rm * globbing (#3516) 2021-05-30 15:36:36 +12:00
plugin Split OutputStream into ActionStream/OutputStream (#3304) 2021-04-12 14:35:01 +12:00
shell Allow aliases to expand and ignore painting outside of lines (#3492) 2021-05-26 17:58:32 +12:00
call_info.rs Switch to "engine-p" (#3270) 2021-04-06 11:19:43 -05:00
command_args.rs Remove rest_args() from evaluated CommandArgs (#3449) 2021-05-20 10:26:23 +12:00
config_holder.rs make Table, Autoview read in memory config. (#3287) 2021-04-08 17:31:19 -05:00
deserializer.rs Make the default int an i64 (#3428) 2021-05-14 20:35:09 +12:00
documentation.rs Allow composing help message from two parts (#3124) 2021-03-08 12:57:58 +13:00
evaluation_context.rs Don't insert PATH variable on Windows (#3422) 2021-05-13 15:03:49 +12:00
example.rs Split nu-cli into nu-cli/nu-engine (#2898) 2021-01-10 15:50:49 +13:00
from_value.rs Allow aliases to expand and ignore painting outside of lines (#3492) 2021-05-26 17:58:32 +12:00
lib.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00
maybe_text_codec.rs Clippy fixes for new Rust version (#3392) 2021-05-07 07:58:21 +12:00
print.rs Refactor nu-cli/env* (#3041) 2021-03-31 18:52:34 +13:00
script.rs Fix #3231: Pick up nu-env if cd with shortcuts (#3344) 2021-04-28 17:31:22 +12:00
whole_stream_command.rs Simplify down to one type of context (#3379) 2021-05-03 11:45:55 +12:00