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
..
2021-05-12 13:01:48 +12:00
2021-03-14 10:46:40 +13:00
2021-05-27 12:18:02 -05:00
2021-04-03 13:40:54 -05:00
2021-04-03 13:40:54 -05:00
2021-03-14 10:46:40 +13:00
2021-05-12 13:01:48 +12:00
2021-03-14 10:46:40 +13:00
2021-04-09 18:03:12 +12:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-05-12 13:01:48 +12:00
2021-01-13 08:27:54 +13:00
2021-05-12 13:01:48 +12:00
2021-03-14 10:46:40 +13:00
2021-05-12 13:01:48 +12:00
2021-03-26 21:26:57 +13:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-05-12 13:01:48 +12:00
2021-05-12 13:01:48 +12:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-04-09 18:03:12 +12:00
2021-03-14 10:46:40 +13:00
2021-03-14 15:13:31 +13:00
2021-05-22 10:52:04 -05:00
2021-05-17 15:08:47 +12:00
2021-05-27 12:18:02 -05:00
2021-03-26 21:26:57 +13:00
2021-05-12 13:01:48 +12:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00
2021-05-12 13:01:48 +12:00
2021-03-14 10:46:40 +13:00
2021-03-14 10:46:40 +13:00