Miles Liu
23e67adfd3
hashsum: fix style violation
2023-03-21 15:44:03 +08:00
Miles Liu
1c90daf25a
head: move help strings to markdown file
2023-03-21 15:39:11 +08:00
Daniel Hofstetter
62e5c5a755
hashsum: merge imports
2023-03-21 08:07:24 +01:00
Miles Liu
4bed10a26a
hashsum: move help strings to markdown file
2023-03-21 13:47:26 +08:00
Miles Liu
1d58362e1a
factor: move help strings to markdown file
2023-03-21 13:41:21 +08:00
Terts Diepraam
b8f2f295a6
Merge pull request #4498 from jfinkels/dd-seconds-precision-3
...
dd: fix precision for display of total time spent
2023-03-20 12:52:48 +01:00
Daniel Hofstetter
00f506f43d
Merge pull request #4551 from piotrkwiecinski/expand-move-strings-to-md-files
...
expand: move help strings to markdown file
2023-03-20 08:25:33 +01:00
Daniel Hofstetter
a484453bd7
Merge pull request #4553 from piotrkwiecinski/false-move-strings-to-md-files
...
false: move help strings to markdown file
2023-03-20 08:22:13 +01:00
Daniel Hofstetter
47884d739b
Merge pull request #4554 from piotrkwiecinski/groups-move-strings-to-md-files
...
groups: move help strings to markdown file
2023-03-20 08:19:05 +01:00
jfinkels
59d34ce667
Merge branch 'main' into dd-seconds-precision-3
2023-03-19 13:29:14 -04:00
Piotr Kwiecinski
a9dd3eb03f
groups: fix formatting
2023-03-19 17:18:15 +01:00
Daniel Hofstetter
f056a74432
Merge pull request #4552 from piotrkwiecinski/fold-move-strings-to-md-files
...
fold: move move help strings to markdown file
2023-03-19 16:13:40 +01:00
Piotr Kwiecinski
053a1216a3
groups: move move help strings to markdown file
2023-03-19 15:46:42 +01:00
Piotr Kwiecinski
a2668e1433
false: move move help strings to markdown file
2023-03-19 15:39:24 +01:00
Piotr Kwiecinski
1c3ae95e8a
expand: docs wrap FILE with backticks
2023-03-19 14:15:05 +01:00
Piotr Kwiecinski
96a148b558
fold: move move help strings to markdown file
2023-03-19 13:18:03 +01:00
Piotr Kwiecinski
f4a4bc9edb
expand: move help strings to markdown file
2023-03-19 12:56:38 +01:00
Piotr Kwiecinski
0ca5020b08
who: move help strings to markdown file
2023-03-19 11:59:14 +01:00
Sylvestre Ledru
7053543830
Merge pull request #4529 from papparapa/mknod-move-help-strings-to-md-file
...
mknod: move help strings to markdown file
2023-03-19 09:04:15 +01:00
Sylvestre Ledru
257587accf
Merge pull request #4547 from papparapa/mktemp-move-help-strings-to-md-file
...
mktemp: move help strings to markdown file
2023-03-19 09:01:35 +01:00
Surya Teja K
b39c4d2756
date: fix invalid argument error for RFC 3339 ( #4535 )
2023-03-19 08:54:45 +01:00
Koki Ueha
7376f3ad02
mktemp: move help strings to markdown file
2023-03-19 03:58:56 +00:00
papparapa
3b78b2e92f
Update src/uu/mknod/mknod.md
...
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-03-19 00:42:27 +09:00
papparapa
8393118aee
Update src/uu/mknod/mknod.md
...
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-03-19 00:42:16 +09:00
august radjoe
89b83c2f6a
A better handler for ./coreutils date -f aze
( #4482 )
2023-03-18 14:19:57 +01:00
Koki Ueha
7f00dfda76
mknod: move help strings to markdown file
2023-03-18 12:43:00 +00:00
Daniel Hofstetter
882a35c3b6
Merge pull request #4526 from tertsdiepraam/date-d-should-return-1
...
`date`: make sure 'invalid date' message also returns exit code 1
2023-03-18 07:08:04 +01:00
Terts Diepraam
e3aab307fe
Merge pull request #4189 from jfinkels/dd-stdin-from-file-descriptor
...
dd: open stdin from file descriptor when possible
2023-03-18 01:30:31 +01:00
Terts Diepraam
1b1446ce0c
date: make sure 'invalid date' message also returns exit code 1
2023-03-17 21:49:26 +01:00
Terts Diepraam
2a4b48f253
Merge pull request #4442 from bbara/chmod-usage
...
chmod: fix GNU test 'chmod/usage'
2023-03-17 15:18:39 +01:00
Anish Bhobe
624588d37f
date: Added default value for date --i
.
...
`default_missing_value` set to `OPT_DATE` (`"date"`)
`num_args(0..=1)` required for `default_missing_value`.
Using function name `test_date_rfc_8601_default`.
The function name `test_date_rfc_8601` is left intact for
compatibility.
Fixes : #4521
2023-03-17 03:06:31 +01:00
Benjamin Bara
e982d57819
chmod: fix GNU test 'chmod/usage'
2023-03-16 21:25:26 +01:00
Surya Teja K
bd6905cf59
fix: match date -I error messages with GNU date ( #4499 )
...
* date: use value_parser to improve errors
* date: update panic! to unreachable inside impl From for Iso8601Format
2023-03-16 20:50:37 +01:00
Daniel Hofstetter
4e03e6254f
Merge pull request #4518 from miles170/uptime-move-help-strings-to-md-file
...
uptime: move help strings to markdown file
2023-03-16 16:09:57 +01:00
Miles Liu
6956377405
uptime: remove unused import
2023-03-16 19:44:27 +08:00
Miles Liu
66fef28ec6
uptime: move help strings to markdown file
2023-03-16 19:42:44 +08:00
Miles Liu
f623a7e13a
whoami: move help strings to markdown file
2023-03-16 19:39:36 +08:00
ValentinyFilip
2e36fa4f16
cksum: fix markdown format
2023-03-16 09:49:48 +01:00
ValentinyFilip
7c6a948526
cksum: fix format error
2023-03-15 21:05:55 +01:00
ValentinyFilip
61ad84f447
cksum: move help strings to markdown file
2023-03-15 19:09:38 +01:00
Terts Diepraam
0c4f5864d9
Add release-fast and release-small targets to Cargo.toml
2023-03-15 14:35:20 +01:00
Terts Diepraam
dad474bfa0
Merge pull request #4315 from miles170/issue-4176-fix-timeout
...
timeout: fix subprocess is never terminated
2023-03-15 14:10:58 +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
Koki Ueha
a480ab0694
mkfifo: move help strings to markdown file
2023-03-13 15:04:46 +00: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
Terts Diepraam
9a231be9c5
Merge branch 'main' into dd-seconds-precision-3
2023-03-12 14:14:53 +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
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
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
Miles Liu
b8d9552ef5
shred: fix permissions_set_readonly_false
clippy error
2023-03-11 14:45:42 +08: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
Koki Ueha
e3d501fca1
printenv: move help strings to markdown file
2023-03-09 14:56:00 +00:00
wuseyu
7598404345
nl: move help strings to a markdown file ( #4477 )
2023-03-09 10:42:39 +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
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
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
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
Koki Ueha
7b39fecaf9
chroot: move help strings to markdown file
2023-03-06 12:44:52 +00:00
Sylvestre Ledru
d8a3ca0e56
Merge pull request #4348 from tmccombs/cp-pathbuf
...
cp: Use PathBuf instead of String for paths
2023-03-06 08:24:49 +01:00
Chen Chi
d971f45ed9
ptx: add description
2023-03-05 16:43:37 -08:00
Chen Chi
68d68f04ed
ptx: move help strings to markdown file
2023-03-05 16:36:01 -08:00
Sylvestre Ledru
49eb9a2e91
Merge branch 'main' into cp-pathbuf
2023-03-05 16:22:21 +01:00
Sylvestre Ledru
3ed26dc454
Merge pull request #4462 from akhilerm/replace-version
...
replace VERSION string with clap::crate_version
2023-03-05 16:20:57 +01:00
Terts Diepraam
e1a98fea44
Merge pull request #4457 from sylvestre/md-check
...
Various improvements in the docs
2023-03-05 15:44:15 +01:00
Akhil Mohan
cf6f9a700d
replace VERSION string with clap::crate_version
...
replace VERSION string with clap::crate_version in chcon, chgrp and runcon
utilities
Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
2023-03-05 19:22:50 +05:30
curtain
dc0092c9e7
chmod: move help strings to markdown file ( #4392 )
2023-03-05 13:49:00 +01:00
Steven Chu
5449282a1a
For date
, move help strings to .md
file ( #4458 )
2023-03-05 13:48:15 +01:00
Akhil Mohan
f75c427b96
chgrp: move help strings to markdown file ( #4461 )
...
* chgrp: move help strings to markdown file
Signed-off-by: Akhil Mohan <akhilerm@gmail.com>
2023-03-05 13:43:38 +01:00
Alexander Kunde
c386b27043
pwd: move help strings to markdown file ( #4455 )
2023-03-04 22:40:02 +01:00
Alexander Kunde
243fa21ce1
ls + vdir: move help strings to markdown file ( #4454 )
2023-03-04 21:27:14 +01:00
Sylvestre Ledru
a02cb75129
Consistency in the example declaration
2023-03-04 18:44:17 +01:00