Jan Scheer
17c6f4c13a
id: add more tests to be consistent with GNU testsuite tests (tests/id/zero.sh)
2021-06-13 11:11:04 +02:00
Jan Scheer
9af9343745
uucore: entries: add documentation
2021-06-13 10:12:00 +02:00
Jan Scheer
60124b8fbd
CICD/GNU: only run/compile tests for id
2021-06-13 10:09:24 +02:00
Jan Scheer
d99385e585
id: add more tests for multiple and/or invalid usernames
2021-06-11 12:00:26 +02:00
Jan Scheer
44d1790d1f
id: add more tests for '--zero'
2021-06-10 10:33:22 +02:00
Jan Scheer
00c05b8687
id: add error handling (stderr/exit_code) for '-ugG'
2021-06-10 00:19:23 +02:00
Jan Scheer
026570ff9c
id: add more tests for '--zero'
...
* fix clippy warnings
2021-06-09 22:45:39 +02:00
Jan Scheer
babf6ecae4
Merge branch 'master' into id_zero_2351
2021-06-08 23:22:29 +02:00
Terts Diepraam
05f65b05ad
Merge pull request #2371 from jhscheer/fix_get_groups
...
uucore: fix order of group IDs return from entries::get_groups()
2021-06-08 21:25:12 +02:00
Jan Scheer
26ad05cbb4
uucore: fix order of group IDs returned from entries::get_groups()
...
As discussed here: https://github.com/uutils/coreutils/pull/2361
the group IDs returned for GNU's 'group' and GNU's 'id --groups'
starts with the effective group ID.
This implements a wrapper for `entris::get_groups()` which mimics
GNU's behaviour.
* add tests for `id`
* add tests for `groups`
* fix `id --groups --real` to no longer ignore `--real`
2021-06-08 18:39:05 +02:00
Jan Scheer
98225105af
id: implement '--zero' flag
...
* add tests for '--zero' flag
* add a bunch of requires/conflicts rules for flags (incl. tests)
2021-06-07 14:35:13 +02:00
Sylvestre Ledru
a3b520abde
Merge pull request #2363 from sylvestre/doc-hashsum
...
hashsum: document how to benchmark blake2
2021-06-06 21:28:23 +02:00
Sylvestre Ledru
f3bc9d234c
Merge pull request #2364 from miDeb/sort/compress
...
sort: implement --batch-size and --compress-program
2021-06-06 21:25:45 +02:00
Michael Debertol
d6da143c4e
sort: ignore errors when waiting for child
2021-06-06 19:53:28 +02:00
Michael Debertol
6ee6082cf8
update Cargo.lock
2021-06-06 18:04:55 +02:00
Michael Debertol
7c9da82b39
sort: implement --batch-size
2021-06-06 18:01:08 +02:00
Michael Debertol
8d213219c7
sort: implement --compress-program
2021-06-06 18:01:08 +02:00
Michael Debertol
5a5c7c5a34
sort: properly check for empty reads
2021-06-06 18:01:08 +02:00
Michael Debertol
66359a0f56
sort: insert line separators after non-empty files
...
If files don't end witht a line separator we have to insert one,
otherwise the last line will be combined with the first line of the next
file.
2021-06-06 18:01:08 +02:00
Michael Debertol
2dd6824e76
sort: never use a bigger buffer than requested
...
A min buffer size of 8KB makes sense in practice, but decreases testability.
2021-06-06 18:01:08 +02:00
Sylvestre Ledru
7e41b58845
ride along: refresh cargo.lock
2021-06-06 13:38:48 +02:00
Sylvestre Ledru
7f07bd82d4
hashsum: document how to benchmark blake2
2021-06-06 13:26:45 +02:00
Sylvestre Ledru
27456fc8fb
Merge pull request #2296 from oconnor663/blake2b_simd
...
switch from blake2-rfc to blake2b_simd
2021-06-06 13:14:39 +02:00
Terts Diepraam
6324df890f
Merge pull request #2357 from deantvv/more-show-next-file
...
more: Show next file at bottom line
2021-06-06 10:52:03 +02:00
Dean Li
b9fe76ab92
more: Show next file at bottom line
...
Implement feature requested in #2318 .
2021-06-06 09:26:47 +08:00
Jan Scheer
74a7da7b52
id: clean-up of clap options and usage/help text
...
* add conflicts_with for '-G'
* add required flags for '-r' and '-n'
* add usage/help texts from BSD's `id`
2021-06-05 20:43:12 +02:00
Sylvestre Ledru
9ae3c7634c
Merge pull request #2354 from tertsdiepraam/more/fix-not-showing-last-line
...
`more`: Do not accidentically hide last line
2021-06-05 16:05:43 +02:00
Sylvestre Ledru
153f4cddf3
Merge pull request #2350 from sylvestre/du-app
...
du: add --app as alias of --apparent-size to match GNU
2021-06-05 16:05:15 +02:00
Terts Diepraam
2760efb01d
more: fix test
2021-06-05 14:42:43 +02:00
Terts Diepraam
420e9322ea
more: do not accidentically hide last line
2021-06-05 14:07:09 +02:00
Sylvestre Ledru
285b27c9b3
du: add --app as alias of --apparent-size to match GNU
2021-06-05 11:04:42 +02:00
Sylvestre Ledru
4143e3f54f
Merge pull request #2332 from mitchellmebane/dircolors-clap
...
dircolors: replace getopts with clap
2021-06-05 10:12:57 +02:00
Sylvestre Ledru
566af4b409
Merge pull request #2347 from sylvestre/more-gnu-2
...
gnu/rm: make another test pass
2021-06-05 10:09:31 +02:00
Sylvestre Ledru
14303c524f
gnu/rm: make another test pass
2021-06-04 23:55:24 +02:00
Sylvestre Ledru
9712ecb4d5
Merge pull request #2340 from deantvv/more-unicode
...
more: fix unicode bug
2021-06-04 19:51:32 +02:00
Sylvestre Ledru
34ecff82f9
Merge pull request #2343 from flip1995/cleanup-readme
...
README: Cleanup utility list
2021-06-04 19:50:48 +02:00
Sylvestre Ledru
96f16f6a57
Merge pull request #2341 from sylvestre/more-gnu
...
Improve GNU testsuite + improve rm output
2021-06-04 18:22:34 +02:00
flip1995
b7061d1817
README: Cleanup utility list
...
In PR #2300 an old commit got merged putting back utilities that were
already implemented into "To Do". This commit reverts this. In addition
it moves `numfmt` to Semi-Done and sorts the Semi-Done column
alphabetically.
This should now be the up-to-date list of utilities. There are 96
utilities in Done or Semi-Done and `ls -1 src/uu | wc -l` also outputs
96.
2021-06-04 16:29:32 +02:00
Dean Li
acd290d11f
more: fix unicode bug for breakline
...
- Use `unicode_segmentation` and `unicode_width` to determine proper `break_line` position.
- Keep track of total_width as suggested by @tertsdiepraam.
- Add unittest for ZWJ unicode case
Related to #2319 .
2021-06-04 22:06:27 +08:00
Sylvestre Ledru
f421e51ad3
gnu/rm: fix tests/rm/rm{1,2}.sh
2021-06-04 09:12:42 +02:00
Sylvestre Ledru
aabef14404
gnu/rm: fix tests/rm/cycle.sh
2021-06-04 09:12:42 +02:00
Sylvestre Ledru
9cf3ab894f
gnu/ci: build in parallel
2021-06-04 09:12:42 +02:00
Sylvestre Ledru
a85ee4386a
gnu/rm: make the code reentrant
2021-06-04 09:12:39 +02:00
Mitchell Mebane
754082886c
dircolors: Address code review comments
2021-06-03 20:49:25 -05:00
Sylvestre Ledru
6a8d15f92e
gnu/rm: match gnu's output
2021-06-03 22:19:14 +02:00
Sylvestre Ledru
84330ca938
gnu/test: rm: update one of the test to match what we do
2021-06-03 22:15:57 +02:00
Sylvestre Ledru
841b689477
Merge pull request #2334 from sylvestre/crate_version
...
use crate_version!() instead of reading the env + rustfmt
2021-06-03 10:56:57 +02:00
Sylvestre Ledru
24032498ad
Merge pull request #2339 from sylvestre/gnu-compat
...
Improve the gnu compat and use it for "touch"
2021-06-03 10:53:47 +02:00
Sylvestre Ledru
963a0da0b4
Merge pull request #2288 from syukronrm/du-time
...
du: fix `--time` behavior
2021-06-03 07:56:41 +02:00
Sylvestre Ledru
5de623cfab
Merge pull request #2330 from miDeb/cp/close-fd
...
cp: close file descriptors after cow on linux
2021-06-03 07:54:34 +02:00