forked from extern/nushell
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 |
||
---|---|---|
.. | ||
env | ||
evaluate | ||
filesystem | ||
plugin | ||
shell | ||
call_info.rs | ||
command_args.rs | ||
config_holder.rs | ||
deserializer.rs | ||
documentation.rs | ||
evaluation_context.rs | ||
example.rs | ||
from_value.rs | ||
lib.rs | ||
maybe_text_codec.rs | ||
print.rs | ||
script.rs | ||
whole_stream_command.rs |