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
Daniel Hofstetter
d80afe7beb
Bump rayon from 1.6.0 to 1.7.0
2023-03-11 15:57:10 +01:00
Miles Liu
b8d9552ef5
shred: fix permissions_set_readonly_false
clippy error
2023-03-11 14:45:42 +08:00
Sylvestre Ledru
7c0063ae3e
Merge pull request #4492 from cakebaker/od_fix_details
...
od: fix some minor details suggested by clippy::pedantic
2023-03-10 16:13:54 +01:00
Daniel Hofstetter
97b51df2bc
od: add missing backticks
2023-03-10 15:24:33 +01:00
Daniel Hofstetter
62826143b5
od: regroup constants
2023-03-10 15:07:40 +01:00
Daniel Hofstetter
fa7550cad9
od: expand some wildcard imports
2023-03-10 15:06:07 +01:00
Miles Liu
f406b56f4a
timeout: fix subprocess is never terminated
2023-03-10 18:08:54 +08:00
Sylvestre Ledru
cf68665669
Merge pull request #4389 from sylvestre/fuzzer
...
Run the date fuzzer in the CI for a few seconds
2023-03-10 00:21:52 +01:00
Sylvestre Ledru
51c3e76abf
we have now several fuzzers
2023-03-10 00:21:35 +01:00
Sylvestre Ledru
24e78cb027
add libfuzzer as a word
2023-03-10 00:03:26 +01:00
Sylvestre Ledru
1bc9980d14
use workspaces
2023-03-10 00:03:26 +01:00
Sylvestre Ledru
9dcd3192d2
run all the fuzzer in the CI for XX seconds
2023-03-10 00:03:26 +01:00
Sylvestre Ledru
ef0b177e18
add more fuzzers
...
Many thanks to Jemma Nelson
@fwip
2023-03-10 00:03:26 +01:00
Sylvestre Ledru
e553a4a21c
move the fuzz_date fuzzers
2023-03-10 00:03:26 +01:00
Sylvestre Ledru
234ef07abd
Try to fuzz for real
2023-03-10 00:03:26 +01:00
Sylvestre Ledru
69f420cb01
run the fuzzer in the CI for 60 seconds
2023-03-10 00:03:26 +01:00
Sylvestre Ledru
a56e05cf63
add fuzzing for the date function
...
Work done Rafał Mikrut
2023-03-10 00:03:26 +01:00
Daniel Hofstetter
510cafea8a
Merge pull request #4485 from papparapa/printenv-move-help-strings-to-md-file
...
printenv: move help strings to markdown file
2023-03-09 17:36:44 +01:00
Koki Ueha
e3d501fca1
printenv: move help strings to markdown file
2023-03-09 14:56:00 +00:00
Sylvestre Ledru
9f8cd4a7eb
Merge pull request #4483 from cakebaker/bump_tempfile_to_3.4.0
...
Bump tempfile from 3.3.0 to 3.4.0
2023-03-09 12:10:16 +01:00
wuseyu
7598404345
nl: move help strings to a markdown file ( #4477 )
2023-03-09 10:42:39 +01:00
Daniel Hofstetter
4d3097be36
Bump tempfile from 3.3.0 to 3.4.0
2023-03-09 10:30:35 +01:00
Daniel Hofstetter
3eeb5dda30
tests: adapt to clap's modified error messages
2023-03-09 10:06:20 +01:00
Daniel Hofstetter
817a832f33
Bump clap from 4.0.26 to 4.1.8
2023-03-09 10:02:48 +01:00
Sylvestre Ledru
db607eeffb
Merge pull request #4476 from IZUMI-Zu/main
...
uname: move help strings to a markdown file
2023-03-09 08:37:50 +01:00
IZUMI-Zu
308760d488
uname: doc format
2023-03-08 20:46:18 +08:00
IZUMI-Zu
0bb557bf25
uname: move help strings to a markdown file
2023-03-08 16:57:25 +08:00
Sylvestre Ledru
8f623464ce
Merge pull request #4472 from wuseyu/dev
...
env: move help strings to a markdown file
2023-03-08 09:10:26 +01:00
Sylvestre Ledru
f722e9b407
document OpenBSD
2023-03-07 22:49:05 +01:00
Sylvestre Ledru
eb47efaadc
fix typo
...
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2023-03-07 22:48:24 +01:00
Sylvestre Ledru
68b58453df
Merge pull request #4474 from papparapa/csplit-move-help-strings-to-md-file
...
csplit: move help strings to markdown file
2023-03-07 17:33:51 +01:00
Terts Diepraam
69406e7d52
Merge pull request #4439 from Joining7943/sleep-fix-panic-adding-durations
...
`sleep`: Fix parsing of multiple inputs panics on overflow, some whitespace issues ...
2023-03-07 16:32:43 +01:00
Terts Diepraam
093e15766f
Merge pull request #4473 from papparapa/hostname-move-help-strings-to-md-file
...
hostname: move help strings to markdown file
2023-03-07 15:44:55 +01:00
Terts Diepraam
0320440d58
Merge pull request #4471 from IZUMI-Zu/dev
...
echo: move help strings to markdown file
2023-03-07 15:42:14 +01:00
Joining7943
71bbebdc76
sleep: Fix whitespace issues. Don't panic when adding durations.
...
Refactor error propagation and use show_error! instead of USimpleError.
2023-03-07 13:33:49 +01:00
Koki Ueha
1b95900ba9
csplit: move help strings to markdown file
2023-03-07 11:38:04 +00:00
Koki Ueha
cd709e2650
hostname: move help strings to markdown file
2023-03-07 11:00:17 +00:00
IZUMI-Zu
c90c8ea214
echo: move help strings to markdown file
2023-03-07 18:55:19 +08:00
wuseyu
3d4cea1105
env: fix some format error
2023-03-07 17:20:35 +08:00
Daniel Hofstetter
199978694a
Merge pull request #4469 from papparapa/install-move-help-strings-to-md-file
...
install: move help strings to markdown file
2023-03-07 09:12:03 +01:00
wuseyu
1db97834ec
env: move help strings to a markdown file
2023-03-07 11:05:09 +08:00
Sylvestre Ledru
00e0531f92
Merge pull request #4468 from papparapa/chroot-move-help-strings-to-md-file
...
chroot: move help strings to markdown file
2023-03-06 18:04:13 +01:00
Sylvestre Ledru
40a816ce6e
Fix typos
2023-03-06 18:03:00 +01:00
Daniel Hofstetter
2612628425
Merge pull request #4420 from uutils/sylvestre-patch-3
...
Freebsd pkg has been remamed to rust-coreutils
2023-03-06 16:44:17 +01:00
Koki Ueha
7daa258089
install: cargo fmt
2023-03-06 14:03:54 +00:00
Koki Ueha
e22771628f
install: move help strings to markdown file
2023-03-06 14:00:35 +00:00
Koki Ueha
dbf7bfde11
chroot: add an annotation for spell-checker
2023-03-06 13:53:01 +00:00