nushell/crates/nu-command/tests/commands
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
..
hash_ Add basic support for md5 hashing strings and binary data (#3197) 2021-03-21 07:48:53 +13:00
keep nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
math Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
move_ nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
path Path Enhancement Project #2: parse, join and split (#3256) 2021-04-20 18:45:28 +12:00
random Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
skip nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
str_ remove str from (#3500) 2021-05-27 12:18:02 -05:00
all.rs commands: any? all? (#3252) 2021-04-03 13:40:54 -05:00
any.rs commands: any? all? (#3252) 2021-04-03 13:40:54 -05:00
append.rs Playground infraestructure (tests, etc) additions. (#3179) 2021-03-15 02:26:30 -05:00
cal.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
cd.rs Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
compact.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
config.rs Refactor/config commands (#3265) 2021-04-09 18:03:12 +12:00
cp.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
def.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
default.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
drop.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
each.rs Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
echo.rs RangeIterator can also go down (#2913) 2021-01-13 08:27:54 +13:00
empty.rs Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
enter.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
every.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
first.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
flatten.rs Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
format.rs standardize on how to get file size (#2992) 2021-02-03 07:19:38 -06:00
get.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
group_by.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
headers.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
help.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
histogram.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
insert.rs Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
into_int.rs Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
last.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
length.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
lines.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
ls.rs Output error when ls into a file without permission (#3218) 2021-03-31 19:52:39 +13:00
merge.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
mkdir.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
mod.rs Refactor/config commands (#3265) 2021-04-09 18:03:12 +12:00
nth.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
open.rs imp: bump rustyline to 8.0.0 (#3167) 2021-03-14 15:13:31 +13:00
parse.rs Commands to engine (#3448) 2021-05-22 10:52:04 -05:00
prepend.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
range.rs Negative indexing for range (#3427) 2021-05-17 15:08:47 +12:00
reduce.rs remove str from (#3500) 2021-05-27 12:18:02 -05:00
rename.rs Fix warnings for Rust 1.51 (#3214) 2021-03-26 21:26:57 +13:00
reverse.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
rm.rs Resolve issues with rm * globbing (#3516) 2021-05-30 15:36:36 +12:00
roll.rs Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
rotate.rs 90 degree table rotations (clockwise and counter-clockwise) (#3086) 2021-02-22 06:56:34 -05:00
save.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
select.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
semicolon.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
sort_by.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
split_by.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
split_column.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
split_row.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
touch.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
uniq.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
update.rs Simplify expressions (#3389) 2021-05-12 13:01:48 +12:00
where_.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
which.rs Rename count to length (#3166) 2021-03-14 10:46:40 +13:00
with_env.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00
wrap.rs nu-cli refactor moving commands into their own crate nu-command (#2910) 2021-01-12 17:59:53 +13:00