Commit graph

9916 commits

Author SHA1 Message Date
Terts Diepraam
20fcce1c21 README: remove list of utilities
This was barely being updated and categorized subjectively instead of by a useful measure, so it did more harm than good.
2023-03-14 18:12:13 +01:00
Terts Diepraam
04c7d2f60d README: rewrite description
- Remove "attempt", I think we're good enough to call it more than an attempt
- Make it more specifically about the GNU coreutils.
2023-03-14 18:12:13 +01:00
Terts Diepraam
c83f6eeadd Move testing instructions from README to CONTRIBUTING 2023-03-14 18:12:13 +01:00
Terts Diepraam
08d2492cac README: add logo and center title and logo 2023-03-14 18:12:07 +01:00
Parag Jain
50e019a711 Fixing failing test locally because of missing case sensitivity handling 2023-03-14 12:28:49 -04:00
Sylvestre Ledru
24fb3897c3
Merge pull request #4504 from cakebaker/bump_fts_sys_and_selinux_sys
Bump fts-sys to 0.2.4 & selinux-sys to 0.6.2
2023-03-14 13:39:16 +01:00
Daniel Hofstetter
f41b0213ac
Merge pull request #4505 from uutils/sylvestre-patch-3
Adjust the fuzzers tests in the CI as some have been fixed
2023-03-14 13:34:59 +01:00
Daniel Hofstetter
5967d66a20
Merge pull request #4508 from tertsdiepraam/pwd-minirefactor
`pwd`: small refactor of some match expressions
2023-03-14 07:09:36 +01:00
Terts Diepraam
d241ec7e08 pwd: small refactor of some match expressions 2023-03-13 22:19:29 +01:00
Terts Diepraam
ae53b700d4 shred: make dependency on libc explicit 2023-03-13 18:18:42 +01:00
Terts Diepraam
9e0d3ea698 shred: add "prefill" to spelling list 2023-03-13 18:18:42 +01:00
Terts Diepraam
2ac4ee820e shred: rename FilenameGenerator to FilenameIter and refactor it a bit 2023-03-13 18:18:41 +01:00
Terts Diepraam
cec92046ca shred: use show_error instead of println for verbose logs 2023-03-13 18:18:41 +01:00
Terts Diepraam
015de72931 shred: move help strings to markdown files 2023-03-13 18:18:28 +01:00
Terts Diepraam
e2363cb5b9
Merge pull request #4463 from uutils/sylvestre-patch-2
References the other implementations
2023-03-13 17:43:23 +01:00
Sylvestre Ledru
a07b833dc6
Merge pull request #4506 from papparapa/mkfifo-move-help-strings-to-md-file
mkfifo: move help strings to markdown file
2023-03-13 17:24:32 +01:00
Koki Ueha
a480ab0694 mkfifo: move help strings to markdown file 2023-03-13 15:04:46 +00:00
Sylvestre Ledru
5ec2e36f58
Adjust the fuzzers tests in the CI as some have been fixed 2023-03-13 11:26:53 +01:00
Sylvestre Ledru
2bcd774358
Merge pull request #4503 from miles170/issue-4341-fix-docs
docs: fix tr.pl and stat-printf.pl don't show up in gnu-full-result
2023-03-13 10:45:14 +01:00
Daniel Hofstetter
f53edbe89a Bump fts-sys to 0.2.4 & selinux-sys to 0.6.2 2023-03-13 10:40:13 +01:00
Miles Liu
787ad780c0
docs: fix tr.pl and stat-printf.pl don't show up in gnu-full-result 2023-03-13 15:40:01 +08:00
Daniel Hofstetter
d28c4783c6
Merge pull request #4502 from samueltardieu/readme-install-locked
readme: advise using --locked with cargo install
2023-03-13 07:10:43 +01:00
Terts Diepraam
6708284603
Merge pull request #4448 from Joining7943/sleep-replace-uucore-from-str-with-fundu
`sleep`: Replace uucore::parse_time::from_str with fundu
2023-03-12 23:42:23 +01:00
Terts Diepraam
758e4b0958
Merge pull request #4486 from sylvestre/sccache-actions
Use sccache to cache build results
2023-03-12 23:39:46 +01:00
Samuel Tardieu
ffcf2b5d55 readme: advise using --locked with cargo install 2023-03-12 22:01:00 +01:00
Sylvestre Ledru
fa1dbf5583
Merge pull request #4501 from cakebaker/bump_terminal_size_to_0.2.5
Bump terminal_size from 0.2.2 to 0.2.5
2023-03-12 21:57:56 +01:00
Daniel Hofstetter
a585d7f3a7 Bump terminal_size from 0.2.2 to 0.2.5 2023-03-12 16:26:56 +01:00
Sylvestre Ledru
9d287aeacf
Merge pull request #4500 from cakebaker/bump_procfs_to_0.15.1
Bump procfs from 0.14.1 to 0.15.1
2023-03-12 16:14:08 +01:00
Joining7943
5fb091a4fb sleep: Use fundu error types to improve error messages 2023-03-12 15:37:44 +01:00
Joining7943
3a28b616d9 sleep: Use fundu instead of uucore::parse_time::from_str 2023-03-12 15:37:44 +01:00
Joining7943
946aab37ed Cargo: Bump fundu version v0.3.0 -> v0.4.2. Adjust test in test_tail. 2023-03-12 15:37:44 +01:00
Daniel Hofstetter
43ce6c1a7e
Merge pull request #4491 from aiye123/main
relpath: move help strings to markdown file
2023-03-12 14:20:36 +01:00
Terts Diepraam
9a231be9c5
Merge branch 'main' into dd-seconds-precision-3 2023-03-12 14:14:53 +01:00
Daniel Hofstetter
3198fe5417 Bump procfs from 0.14.1 to 0.15.1 2023-03-12 14:08:19 +01:00
Terts Diepraam
7a6092b333
Merge branch 'main' into dd-stdin-from-file-descriptor 2023-03-12 13:56:28 +01:00
Terts Diepraam
0ff83388b9 shred: refactor the pattern writing 2023-03-12 13:42:32 +01:00
Terts Diepraam
4e3d50064e shred: improve performance by switching to StdRng
Also contains some cleanup
2023-03-12 13:42:32 +01:00
Terts Diepraam
73d5c4474b shred: expand buffer size from 512 to 65536 to reduce write calls
This buffer size matches GNU
2023-03-12 13:42:32 +01:00
Terts Diepraam
320929d83d
Merge branch 'main' into issue-4176-fix-timeout 2023-03-12 13:35:27 +01:00
Terts Diepraam
3982fc58fd
Merge pull request #4478 from cakebaker/bump_clap_to_4.1
Bump clap from 4.0.26 to 4.1.8 & fix broken tests
2023-03-12 13:30:33 +01:00
Sylvestre Ledru
0d03c48f6b Move the declaration at the right place 2023-03-12 11:12:09 +01:00
Sylvestre Ledru
27150a970b Merge the use declarations 2023-03-12 11:12:09 +01:00
shaoyuteng
fcdb7e48ed relpath: move help strings to markdown file 2023-03-12 11:12:09 +01:00
papparapa
e5b6f63305
parser: fix index out of bounds error (#4484)
+ revert 1bc9980 to use files in workspace
2023-03-12 11:07:59 +01:00
Sylvestre Ledru
50a27e0aac
Merge pull request #4497 from cakebaker/bump_rayon_to_1.7
Bump rayon from 1.6.0 to 1.7.0
2023-03-12 11:02:12 +01:00
Sylvestre Ledru
aecc8aa40f keep Swatinem/rust-cache@v2 2023-03-12 11:00:45 +01:00
Sylvestre Ledru
6608a7ea88 Use sccache to cache build results
instead of Swatinem/rust-cache@v2
2023-03-12 11:00:45 +01:00
Sylvestre Ledru
a406b70e57
Merge pull request #4488 from miles170/fix-shred-clippy
shred: fix `permissions_set_readonly_false` clippy error
2023-03-12 11:00:32 +01:00
Jeffrey Finkelstein
2f56536637 dd: fix precision for display of total time spent
Improve the display of the total time spent transferring bytes so that
the number of seconds is displayed using the `%g` format specifier as
in `printf`. This matches the behavior of GNU `dd`.

Before this commit, the precision was always set to one digit after
the decimal point. For example,

    $ dd count=100000 if=/dev/zero of=/dev/null
    100000+0 records in
    100000+0 records out
    51200000 bytes (51 MB, 49 MiB) copied, 0.2 s, 268.1 MB/s

After this commit, the precision increases dynamically as the duration
decreases. For example,

    $ dd count=100000 if=/dev/zero of=/dev/null
    100000+0 records in
    100000+0 records out
    51200000 bytes (51 MB, 49 MiB) copied, 0.1019 s, 507 MB/s
    $ dd count=1000 if=/dev/zero of=/dev/null
    1000+0 records in
    1000+0 records out
    512000 bytes (512 kB, 500 KiB) copied, 0.002663 s, 256 MB/s
    $ dd count=10 if=/dev/zero of=/dev/null
    10+0 records in
    10+0 records out
    5120 bytes (5.1 kB, 5.0 KiB) copied, 0.000182 s, 5.1 MB/s
2023-03-11 22:37:43 -05:00
Jeffrey Finkelstein
9cb6b4a3c0 dd: open stdin from file descriptor when possible
Open stdin using its file descriptor so that a `dd skip=N` command in
a subshell does not consume all bytes from stdin.

For example, before this commit, multiple instances of `dd` reading
from stdin and appearing in a single command line would incorrectly
result in an empty stdin for each instance of `dd` after the first:

    $ printf "abcdef\n" | (dd bs=1 skip=3 count=0 && dd)  2> /dev/null
    # incorrectly results in no output

After this commit, the `dd skip=3` process reads three bytes from the
file descriptor referring to stdin without draining the remaining
three bytes when it terminates:

    $ printf "abcdef\n" | (dd bs=1 skip=3 count=0 && dd)  2> /dev/null
    def
2023-03-11 20:56:37 +00:00