Commit graph

6105 commits

Author SHA1 Message Date
Terts Diepraam
f82f92ec9f
Merge pull request #4672 from sylvestre/dircolors
dircolors: trigger an error when used on /
2023-04-05 00:01:19 +02:00
Masahito Osako
43c1b27332
Merge branch 'main' into printf-move-strings-to-md-files 2023-04-05 01:38:03 +09:00
m11o
76e15d049b Fix markdown 2023-04-05 01:36:30 +09:00
m11o
2c1a3042bc Merge branch 'printf-move-strings-to-md-files' of https://github.com/m11o/coreutils-rs into printf-move-strings-to-md-files 2023-04-04 22:32:50 +09:00
Masahito Osako
feef6f4e24
Update src/uu/printf/printf.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-04-04 22:32:07 +09:00
m11o
23f7434530 Ignore spells for spell-checker 2023-04-04 22:09:06 +09:00
m11o
e5d88082c4 Fix style violation in src/uu/printf/src/printf.rs 2023-04-04 21:50:30 +09:00
renovate[bot]
120a5f6d76
fix(deps): update rust crate libc to 0.2.141 2023-04-04 10:22:35 +00:00
Daniel Hofstetter
7949778d1b
Merge pull request #4704 from piotrkwiecinski/unexpand-move-string-to-md-file
unexpand: move help strings to markdown file
2023-04-04 07:48:54 +02:00
m11o
57a70eb200 fix to align indents 2023-04-04 00:51:24 +09:00
m11o
f5f96d9bce printf: move help strings to markdown file 2023-04-04 00:44:41 +09:00
Piotr Kwiecinski
f920d44e62 unexpand: move help strings to markdown file 2023-04-03 17:06:58 +02:00
Piotr Kwiecinski
1c9b49025b true: move help strings to markdown file 2023-04-03 16:54:37 +02:00
Masahito Osako
cae3e6d13f
Update src/uu/pinky/src/pinky.rs
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-04-03 14:57:01 +09:00
Masahito Osako
3887bc7af4
Merge branch 'main' into pinky-move-strings-to-md-files 2023-04-03 08:03:51 +09:00
Masahito Osako
0877677697
Update src/uu/pinky/pinky.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-04-03 07:26:34 +09:00
Sylvestre Ledru
eb11c4006f tee: add missing feature 2023-04-02 21:01:05 +02:00
Sylvestre Ledru
0a6f1758b9 add missing feature 2023-04-02 20:59:02 +02:00
m11o
0161775af3 pinky: move help strings to markdown file 2023-04-03 00:37:14 +09:00
Sylvestre Ledru
3247e1b5e1
Merge pull request #4639 from sylvestre/version
0.0.17 => 0.0.18
2023-04-02 11:31:24 +02:00
Daniel Hofstetter
0fa08757fa wc: implement --total 2023-03-31 08:16:46 +02:00
Daniel Hofstetter
5d0f0144c1
Merge pull request #4691 from uutils/renovate/windows-sys-0.x
fix(deps): update rust crate windows-sys to 0.45.0
2023-03-31 08:09:33 +02:00
Daniel Hofstetter
4a82d4808f
Merge pull request #4689 from uutils/renovate/data-encoding-2.x
fix(deps): update rust crate data-encoding to 2.3
2023-03-30 16:06:49 +02:00
Sylvestre Ledru
09a73be072
Merge pull request #4678 from piotrkwiecinski/pr-move-string-to-md-file
pr: move help strings to markdown file
2023-03-30 15:47:58 +02:00
renovate[bot]
ce6bacd87a
fix(deps): update rust crate windows-sys to 0.45.0 2023-03-30 13:44:57 +00:00
Piotr Kwiecinski
f6485e07cb pr: use paragraphs wider in markdown file 2023-03-30 10:59:43 +02:00
renovate[bot]
2945d6b6b9
fix(deps): update rust crate wild to 2.1 2023-03-30 06:11:01 +00:00
renovate[bot]
4a89f4ab96
fix(deps): update rust crate data-encoding to 2.3 2023-03-30 05:59:08 +00:00
Miles Liu
59c210d0f9
uniq: move help strings to markdown file 2023-03-30 09:01:02 +08:00
Sylvestre Ledru
889df29cba dircolors : replace filter_map by map_while 2023-03-29 21:15:24 +02:00
Miles Liu
012c5eaa1f
unlink: move help strings to markdown file 2023-03-29 19:40:10 +08:00
Piotr Kwiecinski
d8ee1833a4 pr: move help strings to markdown file 2023-03-29 10:59:24 +02:00
Sylvestre Ledru
af0a263191 0.0.17 => 0.0.18 2023-03-29 08:11:25 +02:00
Sylvestre Ledru
9d075c65c4
Merge pull request #4653 from uutils/renovate/libc-0.x
fix(deps): update rust crate libc to 0.2.140
2023-03-29 07:53:21 +02:00
Surya Teja K
b14d19770f
date: show error when reading dirs for -f arg (#4572)
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2023-03-29 07:49:14 +02:00
0xMRTT
e7ef9dcd46
hashsum: add --zero option (#4612) (#4632)
* `hashsum`: add `--zero`  option (#4612)
2023-03-28 23:26:11 +02:00
Sylvestre Ledru
d29f9f2e30 dircolors: trigger an error when used on / 2023-03-28 22:54:16 +02:00
Daniel Hofstetter
0562c508ed
Merge pull request #4640 from uutils/renovate/glob-0.x
fix(deps): update rust crate glob to 0.3.1
2023-03-28 14:48:09 +02:00
Sylvestre Ledru
59b03d2c9e
Merge pull request #4647 from kamilogorek/if-not-else-lint
lint: Enable clippy::if_not_else and fix all lint issues
2023-03-28 13:25:31 +02:00
renovate[bot]
915c183ff8
fix(deps): update rust crate libc to 0.2.140 2023-03-28 06:02:04 +00:00
Sylvestre Ledru
ab859b8b58
Merge pull request #4652 from uutils/renovate/itertools-0.x
fix(deps): update rust crate itertools to 0.10.5
2023-03-28 07:58:06 +02:00
Sylvestre Ledru
383c6b3caf
Merge pull request #4650 from piotrkwiecinski/paste-move-string-to-md-file
paste: move help strings to markdown file
2023-03-27 21:25:41 +02:00
renovate[bot]
f223629382
fix(deps): update rust crate itertools to 0.10.5 2023-03-27 19:24:30 +00:00
Sylvestre Ledru
ce5effb7ee
Merge pull request #4636 from uutils/renovate/dns-lookup-1.x
fix(deps): update rust crate dns-lookup to 1.0.8
2023-03-27 21:22:28 +02:00
Sylvestre Ledru
97f8e9d818
Merge pull request #4560 from miles170/fix-show-utils
util/show-utils: fix script not working as intended
2023-03-27 20:26:12 +02:00
Sylvestre Ledru
1926a24579
Merge pull request #4651 from piotrkwiecinski/pathchk-move-string-to-md-file
pathchk: move help strings to markdown file
2023-03-27 20:16:21 +02:00
Daniel Hofstetter
089e645e3b
Merge pull request #4637 from haciek/du_threshold_err_fix
du: threshold error message fix
2023-03-27 16:32:30 +02:00
Piotr Kwiecinski
d81ce37a4d paste: move backtick 2023-03-27 11:41:08 +02:00
Piotr Kwiecinski
b5bf6edafb pathchk: move help strings to markdown file 2023-03-27 11:23:00 +02:00
Piotr Kwiecinski
07c0d9cad9 paste: move help strings to markdown file 2023-03-27 11:09:19 +02:00
renovate[bot]
bf228385e8
fix(deps): update rust crate glob to 0.3.1 2023-03-27 05:36:00 +00:00
renovate[bot]
515bd8f642
fix(deps): update rust crate dns-lookup to 1.0.8 2023-03-27 05:32:38 +00:00
Kamil Ogórek
68e90eacbb lint: Fix all issues in preparation for enabling clippy::if_not_else 2023-03-26 22:23:50 +02:00
Sylvestre Ledru
4695c2a204
Fix typo 2023-03-26 21:51:04 +02:00
Maciej Habasiński
d277603bf1 du: fmt fix 2023-03-26 23:38:31 +02:00
Sylvestre Ledru
8a3007efff
Merge pull request #4638 from tertsdiepraam/stdbuf-hotfix
`stdbuf`: get profile from the end of the path
2023-03-26 18:57:57 +02:00
Terts Diepraam
9991ab28d7
Merge pull request #4588 from anastygnome/fork
Refactor signal handling in yes, tee, and timeout
2023-03-26 17:16:50 +02:00
Sylvestre Ledru
ef601fac98
Merge pull request #4630 from sylvestre/inter-error
Adjust -i behavior for ln, cp & mv
2023-03-26 15:35:24 +02:00
Maciej Habasiński
ef9b974c41
du: comment alignment fix 2023-03-26 13:15:48 +02:00
Maciej Habasiński
e5a4c393af du: threshold fix comment 2023-03-26 15:08:02 +02:00
Daniel Hofstetter
aa4101fe2f
ln: use "replace" in interactive mode
GNU ln uses "replace" instead of "overwrite"
2023-03-26 12:18:26 +02:00
Tom D
e4408f3759 Refactor signal handling in yes, tee, and timeout
Yes, using libc while using nix was a bit redundant.
Upon investigation, duplicated code was found and moved to uucore.
2023-03-26 11:10:40 +02:00
Sylvestre Ledru
76793d523d
Merge pull request #4558 from leon3s/fix-test-with-parse-error
test: replace panic in favor of ParseError
2023-03-26 10:07:23 +02:00
Terts Diepraam
5dfa9548b7 stdbuf: get profile from the end of the path
The path is not always /target/{PROFILE}, because cross uses
/target/{TARGET_TRIPLE}/profile, so we have to get the name
in another way. StackOverflow recommended the getting the
third component from the back of the path
2023-03-25 18:04:01 +01:00
Maciej Habasiński
02f00e2c6b
du: fix --threshold err msg 2023-03-25 16:44:14 +01:00
Sylvestre Ledru
c0bd851184
Merge pull request #4629 from tertsdiepraam/uniq-remove-strum
`uniq`: remove `strum` dependency
2023-03-25 16:00:38 +01:00
leon3s
11fd56c2be test: fmt + requested change 2023-03-25 14:03:45 +01:00
leon3s
bf94e8fff1 test: refactor error handling with ParseError enum 2023-03-25 14:03:45 +01:00
leon3s
9fb18bb08c test: Remplaced panic in favor of ParseError 2023-03-25 14:03:45 +01:00
Terts Diepraam
5a60aa0a19 uniq: convert string to Delimiters manually instead of via strum 2023-03-25 11:57:03 +01:00
Terts Diepraam
aabfda6927 factor: remove paste dev dependency 2023-03-25 11:56:51 +01:00
Sylvestre Ledru
9d54ed02a8 ln -i: adjust the behavior to match the GNU change
Just like mv & cp

Matches the change upstream
7a69df88999bedd8e9fccf9f3dfa9ac6907fab66
2023-03-25 11:22:45 +01:00
Sylvestre Ledru
d0a4059f34 cp -i: adjust the behavior to match the GNU change
Just like mv

Note that cp -i -u won't show the overwrite question

Matches the change upstream
7a69df88999bedd8e9fccf9f3dfa9ac6907fab66
2023-03-25 11:22:45 +01:00
Sylvestre Ledru
0d5daacf99 mv -i: adjust the behavior to match the GNU change
Matches the change upstream
7a69df88999bedd8e9fccf9f3dfa9ac6907fab66
2023-03-25 11:22:45 +01:00
Sylvestre Ledru
20cfd299e7
Merge pull request #4493 from tertsdiepraam/shred-expand-buffer-size
`shred`: refactor to clean up code and reduce syscalls
2023-03-24 23:15:13 +01:00
Sylvestre Ledru
449b405eb1
Improve a syntax of the md 2023-03-24 23:15:07 +01:00
Sylvestre Ledru
f3c2ae853a
Improve a syntax of the md 2023-03-24 23:14:57 +01:00
Sylvestre Ledru
8e1082458f
Merge pull request #4393 from cakebaker/uucore_indent_usage_info
uucore: indent multiline usage info
2023-03-24 23:13:11 +01:00
Sylvestre Ledru
ed4222e731
Merge pull request #4470 from tertsdiepraam/release-fast-and-small
`release-fast` and `release-small` profiles and a page on packaging in the docs.
2023-03-24 23:03:18 +01:00
Sylvestre Ledru
cd7d9b721d
Merge pull request #4566 from SSJDeathSpawn/main
fix: to show the name of utility instead of 'manpages'
2023-03-24 22:55:49 +01:00
Daniel Hofstetter
cc77a952f5
Merge pull request #4589 from piotrkwiecinski/more-move-string-to-md-file
more: move help strings to markdown file
2023-03-24 07:11:37 +01:00
Daniel Hofstetter
e03ed21e10
Merge pull request #4591 from piotrkwiecinski/nice-move-string-to-md-file
nice: move help strings to markdown file
2023-03-24 07:06:13 +01:00
Piotr Kwiecinski
d4758ff3c8 more: modernize about section 2023-03-23 18:44:03 +01:00
Sylvestre Ledru
9090dd783a
Merge pull request #4590 from piotrkwiecinski/mv-move-string-to-md-file
mv: move help strings to markdown file
2023-03-23 18:11:45 +01:00
Piotr Kwiecinski
ac01925583 mv: restore backup control long help 2023-03-23 16:12:55 +01:00
Piotr Kwiecinski
6c9664433f more: group about and usage 2023-03-23 16:09:04 +01:00
Piotr Kwiecinski
04c0b5118d mv: remove long help, change static to const, remove whitespace 2023-03-23 16:06:10 +01:00
Daniel Hofstetter
7853d3707b
Merge pull request #4583 from piotrkwiecinski/join-move-string-to-md-file
join: move help strings to markdown file
2023-03-23 16:01:53 +01:00
Piotr Kwiecinski
896314a64e nice: move help strings to markdown file 2023-03-23 14:52:33 +01:00
Piotr Kwiecinski
0768c63361 mv: move help strings to markdown file 2023-03-23 14:30:17 +01:00
Piotr Kwiecinski
d96aa3e098 more: move help strings to markdown file 2023-03-23 14:07:12 +01:00
Daniel Hofstetter
2db88f1f26
Merge pull request #4585 from piotrkwiecinski/id-move-string-to-md-file
id: move help strings to a markdown file
2023-03-23 13:46:21 +01:00
Daniel Hofstetter
5d9585a743
Merge pull request #4587 from piotrkwiecinski/logname-move-string-to-md-file
logname: move help strings to markdown file
2023-03-23 13:43:12 +01:00
Daniel Hofstetter
c51e0db35f
join: add missing "join" to markdown file 2023-03-23 13:38:27 +01:00
Daniel Hofstetter
6970da3b2b
Merge pull request #4581 from piotrkwiecinski/touch-move-string-to-md-file
touch: move help strings to markdown file
2023-03-23 13:34:26 +01:00
Piotr Kwiecinski
6adcf066de logname: move help strings to markdown file 2023-03-23 12:06:59 +01:00
Piotr Kwiecinski
186c85522e id: move help strings to a markdown file 2023-03-23 11:16:03 +01:00
Piotr Kwiecinski
540435806c join: move help strings to markdown file 2023-03-23 10:44:29 +01:00
Piotr Kwiecinski
4597a5dac0 touch: move help strings to markdown file 2023-03-23 10:10:59 +01:00
Piotr Kwiecinski
d70b3e72c4 nproc: move help strings to markdown file 2023-03-23 08:57:18 +01:00
Daniel Hofstetter
57541db124
Merge pull request #4569 from piotrkwiecinski/uucore_help_section
uucore: fix help section doesn't render 3+ level headers
2023-03-23 08:03:00 +01:00
Daniel Hofstetter
5c1f82b5ff
Merge pull request #4568 from piotrkwiecinski/cut-move-string-to-md-file-rework
cut: move help strings to markdown file
2023-03-22 17:11:47 +01:00
Piotr Kwiecinski
154370a0c6 uucore: parse_help_section test section with multiple header 2023-03-22 16:57:41 +01:00
Daniel Hofstetter
76e418433b
cut: add some backticks to markdown file 2023-03-22 16:10:36 +01:00
Piotr Kwiecinski
dc76939de9 hostid: move help strings to markdown file 2023-03-22 15:28:12 +01:00
Miles Liu
c1bd9e556e
users: move help strings to markdown file 2023-03-22 11:21:19 +08:00
Piotr Kwiecinski
3b54421e9c uucore: add comment to parse_help_section 2023-03-21 20:42:45 +01:00
Piotr Kwiecinski
5767d460b7 cut: add sourcefiles to spell-check ignored 2023-03-21 19:19:33 +01:00
Piotr Kwiecinski
2f0ba77872 uucore: fix help section doesn't render 3+ level headers 2023-03-21 19:10:20 +01:00
Piotr Kwiecinski
8c2fb3e09a cut: move help strings to markdown file 2023-03-21 19:04:30 +01:00
SSJDeathSpawn
4f88356035
refactor: simplification and name change 2023-03-21 18:52:54 +05:30
SSJDeathSpawn
6699eaad6c
Added condition to ensure name of utility appears 2023-03-21 18:19:17 +05:30
Sylvestre Ledru
7b1d49b0bc
Merge pull request #4563 from miles170/hashsum-move-help-strings-to-md-file
hashsum: move help strings to markdown file
2023-03-21 09:43:31 +01:00
Sylvestre Ledru
1a0ebdbb8a
Merge pull request #4564 from miles170/head-move-help-strings-to-md-file
head: move help strings to markdown file
2023-03-21 09:42:16 +01:00
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
Miles Liu
c9a95c37b2
progress: fix redundant_field_names clippy error 2023-03-21 09:20:35 +08:00
Miles Liu
d2a0a73a36
touch: fix err_expect clippy error 2023-03-21 09:20:35 +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
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
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
Zaú Júlio
b540b15b5a
Merge branch 'main' into hotfix-mktemp 2023-03-06 21:39:56 -03: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
Daniel Hofstetter
b35c415578 uucore: indent multiline usage info 2023-03-05 21:38:21 +01: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
Sylvestre Ledru
494b6f46e0
Merge pull request #4459 from sylvestre/manpages
Generate manpages and check them in the CI
2023-03-05 15:37:44 +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
79d18ab656 generate manpages 2023-03-04 19:42:28 +01:00
Sylvestre Ledru
a02cb75129 Consistency in the example declaration 2023-03-04 18:44:17 +01:00
Sylvestre Ledru
fe2517041f md: ignore a warning 2023-03-04 18:44:17 +01:00
Sylvestre Ledru
c68324a58c md: improve the display for dd, expr and stat 2023-03-04 18:44:14 +01:00
Sylvestre Ledru
422a27d375 parent 9d5dc500e6
author Sylvestre Ledru <sylvestre@debian.org> 1677865358 +0100
committer Sylvestre Ledru <sylvestre@debian.org> 1677951797 +0100

md: Fix a bunch of warnings in the docs
2023-03-04 18:43:40 +01:00
Zaú Júlio
65b1be9456
Merge branch 'main' into hotfix-mktemp 2023-03-03 14:22:07 -03:00
Sylvestre Ledru
9d5dc500e6
Merge pull request #4450 from papparapa/chown-move-help-strings-to-md-file
chown: move help strings to markdown file
2023-03-03 18:06:36 +01:00
Sylvestre Ledru
bd6d2e7898
Merge pull request #4391 from curtainp/basename-move-help-strings-to-md-file
basename: move help strings to markdown file
2023-03-03 17:55:43 +01:00
Sylvestre Ledru
eb21368535
Merge pull request #4453 from schoki040/wc-move-help-strings-to-md-file
wc: move help strings to markdown file
2023-03-03 16:53:26 +01:00
Sylvestre Ledru
2085d4d4ab
remove the sh in the syntax 2023-03-03 13:52:47 +01:00
Sylvestre Ledru
f12edf0f2a
Merge pull request #4456 from schoki040/truncate-move-help-strings-to-markdown-file
truncate: move help strings to markdown file
2023-03-03 13:52:19 +01:00
Sylvestre Ledru
53d3d4d616
remove the sh in the syntax 2023-03-03 13:12:49 +01:00
Sylvestre Ledru
c35d1762aa
Add RFILE to the exclude list 2023-03-03 12:53:45 +01:00
zleyyij
9fb6477c89
chcon: move help strings to a markdown file (#4437)
* arch: move help strings to a markdown file #4368

---------

Co-authored-by: zleyyij <zleyyi@users.noreply.github.com>
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2023-03-03 12:37:09 +01:00
Alexander Kunde
b72c0504bc
Merge branch 'main' into wc-move-help-strings-to-md-file 2023-03-02 22:38:52 +01:00
Alexander Kunde
fa7c952878 Merge remote-tracking branch 'upstream/main' into truncate-move-help-strings-to-markdown-file 2023-03-02 22:34:42 +01:00
Zaú Júlio
b41713c106
Merge branch 'main' into hotfix-mktemp 2023-03-02 15:31:39 -03:00
Alexander Kunde
73bb60d724 cargo fmt 2023-03-02 18:56:08 +01:00
Alexander Kunde
aead80efdb cargo fmt 2023-03-02 18:55:11 +01:00
Alexander Kunde
b73d5206f5 remove redundant line in markdown 2023-03-02 18:18:40 +01:00
Alexander Kunde
4bae3e0cd9 remove redundant line 2023-03-02 18:14:10 +01:00
Alexander Kunde
4276111222 change ABOUT from static to const 2023-03-02 18:10:53 +01:00
Alexander Kunde
df5ceaaa97 truncate: move help strings to markdown file 2023-03-02 18:00:31 +01:00
Alexander Kunde
2bae3dd4f2 wc: move help strings to markdown file 2023-03-02 16:29:43 +01:00
Daniel Hofstetter
a7a55c7433 comm: allow multiple occurrence of -z 2023-03-02 16:18:42 +01:00
Terts Diepraam
b9bca794cc
Merge pull request #4449 from cakebaker/comm_zero_terminated
comm: implement --zero-terminated
2023-03-01 22:52:31 +01:00
Zaú Júlio
ddb9b592bf
Merge branch 'main' into hotfix-mktemp 2023-03-01 15:52:24 -03:00
Daniel Hofstetter
0d782e09c1 comm: implement --zero-terminated 2023-03-01 16:59:51 +01:00
Thomas Hurst
52c93a4d10 dd: Simplify loop of progress Alarm thread 2023-03-01 13:58:09 +00:00
Koki Ueha
f08f4d6016 chown: move help strings to markdown file 2023-03-01 12:44:20 +00:00
Benjamin Bara
26a945f3b5 tail: simplify obsolete parsing 2023-02-28 18:59:47 +01:00
Benjamin Bara
9b49f368c7 tail: parse default before obsolete 2023-02-28 18:58:12 +01:00
Benjamin Bara
f6edea2d05 tail: enable non-utf8 paths 2023-02-28 18:58:12 +01:00
Benjamin Bara
dc34e89d50 tail: skip clap for obsolete args 2023-02-28 18:58:12 +01:00
Benjamin Bara
b83c30b12e tail: improve GNU compatibility 2023-02-28 18:58:12 +01:00
Thomas Hurst
cf7b90bbe7 dd: use an alarm thread instead of elapsed() calls
Quick benchmark on FreeBSD 13.1-RELEASE:

Summary
  './dd-thread-alarm if=/dev/zero of=/dev/null count=4000000 status=progress' ran
  1.17 ± 0.17 times faster than './dd-baseline if=/dev/zero of=/dev/null count=4000000
        status=progress'
2023-02-28 17:45:14 +00:00
Zaú Júlio
276a6ccbf1
Merge branch 'main' into hotfix-mktemp 2023-02-28 12:39:39 -03:00
Joining7943
68f75af678 sleep: Fix duration parsing of multiple inputs when duration overflow should saturate and not panic 2023-02-28 08:04:55 +01:00
Terts Diepraam
f5a9ffe52f
Merge pull request #4443 from cakebaker/comm_move_help_strings_to_markdown_file
comm: move help strings to markdown file
2023-02-27 20:54:40 +01:00
Daniel Hofstetter
028b97098d comm: move help strings to markdown file 2023-02-27 17:33:14 +01:00
Koki Ueha
f06d46ef29 dirname: move help strings to markdown file 2023-02-27 14:13:06 +00:00
Zaú Júlio
5c3bb90df2
Merge branch 'main' into hotfix-mktemp 2023-02-27 01:15:36 -03:00
ZauJulio
a87bc9f929
mktemp: remove unnecessary convertion for path -> str just use prefix_from_template 2023-02-27 01:13:16 -03:00
Zan Baldwin
351be7f478 uptime: correctly calculate boot-time 2023-02-26 13:36:08 +01:00
Terts Diepraam
c148215e7d
Merge pull request #3954 from dmatos2012/modify-cp-archive-flag-behavior
cp: modify archive flag to copy dir contents rather than dir
2023-02-26 13:24:45 +01:00
Zaú Júlio
be2b7032f6
Merge branch 'main' into hotfix-mktemp 2023-02-25 18:37:22 -03:00
Terts Diepraam
5e851d4bde
Merge pull request #4435 from papparapa/dircolors-move-help-strings-to-md-file
dircolors: move help strings to markdown file
2023-02-25 13:19:32 +01:00
Terts Diepraam
542518c026
Merge pull request #4434 from papparapa/df-move-help-strings-to-md-file
df: move help strings to markdown file
2023-02-25 13:13:39 +01:00
Terts Diepraam
b7ed51bba1
Merge pull request #4401 from VorpalBlade/feature/stty-file-3863
stty: Basic support for --file/-F
2023-02-25 12:54:44 +01:00
Koki Ueha
ba4a9a05a1 dircolors: move help strings to markdown file 2023-02-25 10:46:19 +00:00
Koki Ueha
ac39a169a1 df: move help strings to markdown file 2023-02-25 10:27:03 +00:00
Cheng-Hao
3640a90d9f fmt: move help strings to markdown file 2023-02-24 00:44:02 -08:00
Sylvestre Ledru
872f2bd794
Merge pull request #4429 from chenchiii/realpath-move-help-strings-to-md-file
realpath: move help strings to markdown file
2023-02-24 09:00:24 +01:00
Chen Chi
93e1760bd3 realpath: move help strings to markdown file 2023-02-23 22:49:04 -08:00
Jeffrey Finkelstein
b9003d19ed dd: move dd_out() function up to module level
Move the `dd_out()` function out of the `impl Output` and up to the
module level, renaming it to `dd_copy()`. This change aligns it with
the pattern set by `std::io::copy()`, which similarly takes an input
reader and an output writer.

This does not change the behavior of `dd`, just the code organization
to make it more closely match the idioms in the Rust standard library.
2023-02-23 21:17:19 -05:00
Jeffrey Finkelstein
3faf64280d dd: move finalize() function to module level
Move the `finalize()` function out of the `impl Output` block and up
to the module level so that it can be accessed by other module-level
functions.
2023-02-23 21:06:38 -05:00
Sylvestre Ledru
c99accc85f
Merge pull request #4410 from dmatos2012/chmod-override-quiet-verbose-opts
chmod: allow verbose and quiet flags to be used more than once
2023-02-23 22:03:39 +01:00
Sylvestre Ledru
1ab1035b40
Merge pull request #4426 from papparapa/tail-move-help-strings-md-file
tail: move help strings to markdown file
2023-02-23 21:56:39 +01:00
Sylvestre Ledru
fb72641ff2
Merge pull request #4425 from papparapa/tee-move-help-strings-to-md-file
tee: move help strings to markdown file
2023-02-23 21:50:16 +01:00
Sylvestre Ledru
2ea050c8a9
Merge pull request #4424 from jhowww/ln-move-help-strings-to-md-file
ln: move help strings to markdown file
2023-02-23 21:48:39 +01:00
Sylvestre Ledru
f3fe6cf84b
Merge pull request #4423 from jhowww/link-move-help-strings-to-md-file
link: move help strings to markdown file
2023-02-23 21:46:31 +01:00
David Matos
d9a21ff8f0 chmod: allow verbose and quiet flags to be used more than once 2023-02-23 20:21:38 +01:00
Koki Ueha
58dae0a36d tail: move help strings to markdown file 2023-02-23 12:37:01 +00:00
Koki Ueha
c3817e5359 tee: move help strings to markdown file 2023-02-23 12:17:00 +00:00
Terts Diepraam
3554565c82
Merge pull request #4356 from howjmay/cksum-a
cksum: implement -a
2023-02-23 12:18:21 +01:00
Cheng-Hao
79ee0dd58d ln: move help strings to markdown file 2023-02-22 23:55:51 -08:00
Cheng-Hao
0c4bde342c link: move help strings to markdown file 2023-02-22 23:14:54 -08:00
Chen Chi
e54c0063b0 shuf: move help strings to markdown file 2023-02-22 21:01:38 -08:00
Yang Hau
b1d4951c34 add ALGORITHM_HELP_DESC 2023-02-23 12:06:24 +08:00
curtain
e37e5ad915
basename: fix rustfmt problem 2023-02-23 09:44:46 +08:00
Zaú Júlio
59490e4a17
Merge branch 'main' into hotfix-mktemp 2023-02-22 20:23:36 -03:00
Sylvestre Ledru
41018859bb
Merge pull request #4365 from kylemanna/km/fix-install-directory-chown
install: add missing directory chown
2023-02-22 21:49:22 +01:00
Sylvestre Ledru
7da22b3ae2
Merge pull request #4405 from bbara/utmpx-time
utmpx: arch/os-independent timeval handling
2023-02-22 21:26:10 +01:00
Sylvestre Ledru
380b3cff8c
Merge pull request #4388 from howjmay/timeout-parse
fix: Fix panic in multi-byte characters
2023-02-22 21:23:06 +01:00
Sylvestre Ledru
d3395b5855
Merge pull request #4412 from jhowww/rmdir-move-help-strings-to-md-file
rmdir: move help strings to markdown file
2023-02-22 21:05:09 +01:00
Sylvestre Ledru
ea2100a64a
Merge pull request #4415 from papparapa/nohup-move-help-strings-to-md-file
nohup: move help strings to markdown file
2023-02-22 21:04:33 +01:00
Sylvestre Ledru
257e6ea681
Merge pull request #4413 from jhowww/rm-move-help-strings-to-md-file
rm: move help strings to markdown file
2023-02-22 21:03:46 +01:00
zleyyij
a24da1d575
basenc: Move strings to markdown file (#4417)
basenc: moved help strings to markdown file
2023-02-22 21:02:39 +01:00
Benjamin Bara
dd216ee23e utmpx: cast timeval fields to i64 2023-02-22 18:50:08 +01:00
zleyyij
b70131f148
arch: move help strings to a markdown file (#4373)
Co-authored-by: zleyyij <zleyyi@users.noreply.github.com>
2023-02-22 16:50:27 +01:00
papparapa
29a25a6c85
od: move help strings to markdown file (#4406)
* od: move help strings to markdown file

* od: fix the commented points
2023-02-22 16:44:55 +01:00
Arvid Norlander
215803ec8d stty: Support for --file/-F
Fixes issue #3863
2023-02-22 16:38:18 +01:00
Terts Diepraam
ed30869b45 fix spell checker error in mkdir.md 2023-02-22 16:23:27 +01:00
Koki Ueha
52902f6e99 nohup: move help strings to markdown file 2023-02-22 10:41:49 +00:00
Terts Diepraam
60d2df56de
Merge pull request #4164 from jfinkels/dd-fifo-seek
dd: allow skipping and seeking in FIFOs
2023-02-22 10:38:45 +01:00
Terts Diepraam
8448d45dcf
Merge pull request #4411 from chenchiii/sleep-move-help-strings-to-md-file
sleep: move help strings to markdown file
2023-02-22 10:29:43 +01:00
Terts Diepraam
33c2c7d1c0
Merge pull request #4403 from jhowww/mkdir-move-help-strings-to-md-file
mkdir: move help strings to markdown file
2023-02-22 10:27:23 +01:00
Terts Diepraam
c3f7be1994
Merge branch 'main' into basename-move-help-strings-to-md-file 2023-02-22 10:25:03 +01:00
Cheng-Hao
4cbf9a6398 rm: move help strings to markdown file 2023-02-21 18:50:47 -08:00
Cheng-Hao
ab5d0b6b9d rmdir: move help strings to markdown file 2023-02-21 18:28:35 -08:00
Chen Chi
ddd40fda6b sleep: move help strings to markdown file 2023-02-21 15:56:52 -08:00
Guilherme A. de Souza
7d7b9eb49a
Migrate from atty to is-terminal (#4382) 2023-02-21 21:52:18 +01:00
Cheng-Hao
e6fec39db1 mkdir: update markdown naming for consistency 2023-02-21 11:05:35 -08:00
papparapa
4e7ae2d46a
du: move help strings to markdown file (#4384) 2023-02-21 16:51:59 +01:00
Yang Hau
9322580967 Add checksum algorithm abstractions 2023-02-21 21:14:58 +08:00
Cheng-Hao
7cfeba0d22 mkdir: move help strings to markdown file 2023-02-20 16:29:20 -08:00
David Matos
dd4299c32e chmod: supress verbose output when not verbose 2023-02-20 22:18:07 +01:00
David Matos
fe4da2b8e5 cp: modify archive flag to copy dir contents rather than dir 2023-02-20 16:49:33 +01:00
Terts Diepraam
cc0a77d357
Merge pull request #4395 from papparapa/kill-move-help-strings-to-md-file
kill: move help strings to markdown file
2023-02-20 14:16:42 +01:00
Koki Ueha
9bf9bba7c3 kill: move help strings to markdown file 2023-02-20 11:56:39 +00:00
Koki Ueha
e0470c0294 tac: move help strings to markdown file 2023-02-20 11:30:33 +00:00
curtain
f70d23b018
basename: update format according to #4385 2023-02-20 18:13:36 +08:00
Thayne McCombs
3acd75bcc4 cp: Use PathBuf instead of String for paths
I think this should avoid unnecessarily validating utf-8, and avoids a few allocations.
2023-02-19 23:32:17 -07:00
curtain
ff6f61276e
basename: move help strings to markdown file 2023-02-20 14:25:00 +08:00
Kyle Manna
05db5f7442 install: address merge request feedback
* Explicitly handle Err() in match.
* Move metdata functions deeper into `chown_optional_user_group()`.
* Add `ChownFailed` to propagate errors.
* Use `show_if_err!()` to wrap `chown_optional_user_group`.
* Simplify chown verbose message handling.
2023-02-19 11:47:45 -06:00
Koki Ueha
044f3d3a43 yes: move help strings to markdown file 2023-02-19 14:54:33 +00:00
Sylvestre Ledru
f77a44df8b
Merge pull request #4385 from cakebaker/uucore_procs_help_about
uucore_procs: extract "about" and "usage" info from new help structure
2023-02-19 11:47:18 +01:00
Yang Hau
109553436d add function profile 2023-02-19 18:09:34 +08:00
Kyle Manna
376f4d90ef install: add tests for invalid owner and group
* Move the user and group resolution to the behavior decoding instead of
  re-running on every file/directory creation.  Simplifies code.
* Update error output to match GNU coreutils.
* Add tests to verify invalid owner and group.
2023-02-18 22:46:12 -06:00
Kyle Manna
5876cd2581 install: add missing directory chown
* Re-factor the copy function chown into a function that can be re-used.
* Fix bug where the group overwrote the user.
* Add chown compatibility to follow GNU coreutils.
* Reduce two chown calls to a single syscall only when needed.
* Fixes #4361
2023-02-18 22:46:12 -06:00
Kyle Manna
7aa7f219a0 install: fix issue #4360 with bad target directory permissions
* Correct bug that set the last directory to the mode the file should
  have been set to.
* Add unit test to verify correct functionality.
2023-02-18 22:32:31 -06:00
Yang Hau
2cd19522e4 fix: Fix panic in multi-byte characters
Closes #4353
2023-02-19 10:15:53 +08:00
Jeffrey Finkelstein
c52647a632 dd: add support for skipping in input FIFO
For example, `dd skip=1 if=fifo` will now work.
2023-02-18 21:24:16 +01:00
Jeffrey Finkelstein
9c3f810f97 dd: add support for seeking in output FIFOs
For example, `dd seek=1 of=fifo` will now work.
2023-02-18 21:24:16 +01:00
Jeffrey Finkelstein
cf72c990f2 dd: create Source enum and simpler Input struct
This mirrors a recent commit that introduced the `Dest` enum and a
simplified `Output` struct. These changes allow us to add new types of
inputs and output more easily.
2023-02-18 21:24:16 +01:00
Yang Hau
678a11dcf2 cksum: Implement option -a
Implement option -a --algorithm.
Move digest to src/uucore/src/lib/features and rename it to hash.

fix lint

fix Cargo.toml
2023-02-18 20:58:53 +08:00
Daniel Hofstetter
dcc7c4ed7b Use help_about! & adapt help files for its usage 2023-02-17 16:40:22 +01:00
Daniel Hofstetter
2c027a9312 uucore_procs: add help_about macro 2023-02-17 15:39:26 +01:00
Daniel Hofstetter
1ba0c6853c uucore_procs: drop need for "Usage" header in help 2023-02-17 14:51:40 +01:00
Daniel Hofstetter
94eddc4701 uucore_procs: separate file opening & parsing 2023-02-17 11:37:25 +01:00
Terts Diepraam
9fdce975fd
Merge pull request #4359 from dmatos2012/chmod-multiple-files-error
chmod: change permissions for files present even when there is a missing file
2023-02-17 11:27:32 +01:00
David Matos
946c8d2d4a chmod: change permissions for files present even when there is a missing file 2023-02-16 23:13:06 +01:00
Zaú Júlio
9e2c543cd4
mktemp: prefix prefix_of_template use to_string_lossy
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2023-02-16 18:43:32 -03:00
ZauJulio
af4ce911c8
mktemp: fix PrefixContainsDirSeparator verification 2023-02-16 17:48:23 -03:00
Joining7943
cca54089fb tail: Cargo.toml: Remove unneeded features of uucore and the nix dependency 2023-02-16 20:00:38 +01:00
Terts Diepraam
ff5000d4d0
Merge pull request #4239 from Joining7943/tail-fix-parsing-of-sleep-interval
`tail`: fix argument parsing of sleep interval
2023-02-16 15:14:53 +01:00
Sylvestre Ledru
d3fc0e8706
Merge pull request #4314 from cakebaker/comm_total_with_output_delimiter
comm: use delimiter on "total" line
2023-02-16 14:24:02 +01:00
Koki Ueha
5cc9130490 cat: move help strings to markdown file 2023-02-16 10:47:34 +00:00
papparapa
34e31f20e7
cp: move help strings to markdown file (#4372)
* cp: move help strings to markdown file

* cp: change markdown section order
2023-02-16 11:23:32 +01:00
Daniel Hofstetter
675c55ba01 stat: fix markdown formatting 2023-02-15 16:16:10 +01:00
Sylvestre Ledru
76034a8fe2
Merge pull request #4367 from cakebaker/replace_get_long_usage_fn_with_const
Replace get_long_usage fns with const
2023-02-15 08:18:36 +01:00
Terts Diepraam
df7fe29095
Merge pull request #4339 from howjmay/tr-newline
tr: Remove the extra newline in stderr
2023-02-14 22:58:40 +01:00
Guilherme A. de Souza
04b6d806a2
nproc: replace num_cpus crate with thread::available_parallelism (#4352)
* nproc: replace num_cpus crate with std:🧵:available_parallelism

* nproc: unwrap Result for Windows

* nproc: if thread::available_parallelism results in err return 1

* nproc: wrap the call to available_parallelism into a function

* nproc: remove comment in the wrong place

* nproc: fix style violation

* nproc: fix comment, refers to the new function
2023-02-14 22:43:09 +01:00
Yang Hau
ec81a23afc tr: Remove the extra newline in stderr
closes #4301
2023-02-15 02:04:43 +08:00
Daniel Hofstetter
99f3fc8356 Replace get_long_usage fns with const 2023-02-14 09:51:28 +01:00
Bart Massey
abc5cfb950 coreutils: fixed panic when multi-call binary has empty or non-UTF-8 name
The multi-call `coreutils` binary starts by trying to
convert its invocation path into a UTF-8 string, panicking
if this doesn't work.

This patch makes `coreutils` exit gracefully in this case.
2023-02-14 00:24:22 -08:00
Jeffrey Finkelstein
c6d9d7f11c Clippy fixes 2023-02-13 21:33:42 -05:00
Daniel Hofstetter
c433f8b475 uniq: remove suppression of use_self lint 2023-02-13 08:53:26 +01:00
Joining7943
0ed6a9f882 tail: Fix parsing of sleep interval. Use duration parser from fundu crate.
Activate tests for parsing sleep interval
2023-02-12 20:23:55 +01:00
Thayne McCombs
5b190dbf76 Stop saying --sparse is not implemented for cp
It is implemented, so update the --help text to reflect that
2023-02-12 01:41:36 -07:00
Terts Diepraam
bf8e9333f6 tee: use retain_mut from std instead of the deprecated retain_mut crate 2023-02-11 18:54:55 +01:00
Terts Diepraam
ae27c82020 Use workspace inheritance for dependencies 2023-02-11 18:54:46 +01:00
Terts Diepraam
d60fc40f2f Clippy fixes for MSRV 1.64 2023-02-11 13:59:50 +01:00
Yang Hau
0b1edd33fc rm: Remove remove_dir_all dependency
Closes #4335
2023-02-11 01:04:30 +08:00
Terts Diepraam
152be8527d update blake2_simd to 1.0.1
This fixes the duplicate constant-time-eq dependency.
2023-02-10 09:56:24 +01:00
Terts Diepraam
357001dabc fix double dependency of memoffset by upgrading nix, libc and ctrlc 2023-02-09 14:02:40 +01:00
Yang Hau
6299b418f5 typo 2023-02-09 00:33:54 +08:00
Daniel Hofstetter
d4cd4d310f ln: fix format of help text 2023-02-08 15:00:35 +01:00
Daniel Hofstetter
ba7a222a55 Start about texts with uppercase char 2023-02-07 14:54:25 +01:00
Daniel Hofstetter
a2796d4585 env: start about text with uppercase char 2023-02-07 10:20:04 +01:00
Daniel Hofstetter
ccf999473c comm: use delimiter on "total" line 2023-02-07 09:22:55 +01:00
Sylvestre Ledru
486defe893
Merge pull request #4313 from cakebaker/ptx_remove_unnecessary_join
ptx: fix warning from unnecessary_join lint
2023-02-05 21:23:36 +01:00
Daniel Hofstetter
ee261359bd ptx: fix warning from unnecessary_join lint 2023-01-30 10:11:40 +01:00
Sylvestre Ledru
00717a6440
Merge pull request #4308 from ctsk/chore/clippy-warnings
clippy: fix unnecessary return warnings
2023-01-30 09:25:20 +01:00
dependabot[bot]
204d96b7df
build(deps): bump regex from 1.7.0 to 1.7.1
Bumps [regex](https://github.com/rust-lang/regex) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.7.0...1.7.1)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-30 06:13:54 +00:00
ctsk
ef32061f82 clippy: fix unnecessary return warnings 2023-01-29 22:09:11 +01:00
Sylvestre Ledru
efc70ade68
Merge pull request #4260 from sbentmar/expand-fix-perl-failures
expand: improve plus specifier handling
2023-01-28 18:15:08 +01:00
Sylvestre Ledru
d8c3205d4c
Merge pull request #4300 from cakebaker/comm_total
comm: implement --total
2023-01-28 18:14:17 +01:00
Sylvestre Ledru
a75cfd9655
Merge pull request #4171 from uutils/dependabot/cargo/blake3-1.3.2
build(deps): bump blake3 from 1.3.1 to 1.3.2
2023-01-28 01:16:04 +01:00
dependabot[bot]
423ff9fe8b build(deps): bump gcd from 2.1.0 to 2.2.0
Bumps [gcd](https://github.com/frewsxcv/rust-gcd) from 2.1.0 to 2.2.0.
- [Release notes](https://github.com/frewsxcv/rust-gcd/releases)
- [Commits](https://github.com/frewsxcv/rust-gcd/compare/2.1.0...2.2.0)

---
updated-dependencies:
- dependency-name: gcd
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-27 21:10:27 +01:00
Sylvestre Ledru
13fac01d31
Merge branch 'main' into dependabot/cargo/blake3-1.3.2 2023-01-27 21:10:06 +01:00
Sebastian Bentmar Holgersson
999957791a expand: minor simplification of mode logic 2023-01-27 21:08:16 +01:00
Sebastian Bentmar Holgersson
1bf723fe40 expand: fix formatting issues and cleanup 2023-01-27 21:08:16 +01:00
Sebastian Bentmar Holgersson
69d8729598 expand: replace while loop with constant time algorithm 2023-01-27 21:08:16 +01:00
Sebastian Bentmar Holgersson
ddc6fabca0 expand: all perl tests passing 2023-01-27 21:08:16 +01:00
Sebastian Bentmar Holgersson
cbab8677e6 expand: improve handing of + 2023-01-27 21:08:16 +01:00
TechHara
3ad36a49cb
cut: refactor (#4255)
refactors `cut field` logic to reduce code duplication by factoring out the common `Searcer`, which is _templatized_ on a specific `Matcher` -- `ExactMatcher` for an explicit delimiter and `WhitespaceMatcher` for white-space delimiter.

before
- code duplication in `Searcher` and `WhitespaceSearcher`
- code duplication in `cut_fields` and `cut_fields_whitespace`

after
- two versions of `Matcher`s
- one `Searcher`
- simplify `cut_fields` by delegating actual work to specific functions
2023-01-27 21:07:36 +01:00
Daniel Hofstetter
f6b646e4e5 clippy: fix warnings introduced with Rust 1.67.0 2023-01-27 17:37:56 +01:00
Daniel Hofstetter
b06485990d comm: implement --total 2023-01-24 16:49:43 +01:00
Sylvestre Ledru
dce8a021da
Merge pull request #4299 from Joining7943/fix-4298-build-fails-on-s390x-and-risc64
`uucore`: Fix #4298: Fails to build on s390x (and riscv64)
2023-01-24 11:47:20 +01:00
Joining7943
9796e70a28 uucore: Fix #4298: Build on s390x and riscv64 architectures fails 2023-01-23 21:13:59 +01:00
Sylvestre Ledru
2df4aaccd9
Merge pull request #4263 from cakebaker/od_cleanup_format_strings
od: remove "width = width" from format strings
2023-01-22 21:32:59 +01:00
Sylvestre Ledru
6f95f0953b
Merge pull request #4271 from eds-collabora/eds/nice
Support legacy argument syntax for nice
2023-01-22 20:57:08 +01:00
Sylvestre Ledru
f30124e497 uname: use the same version of platform-info as arch 2023-01-21 23:24:53 +01:00
Terts Diepraam
4d3dc78686 Version 0.0.17 2023-01-21 10:38:18 +01:00
Emil Suleymanov
50c1833c11
cp: require preserve only certain attributes (#4099)
* cp: require preserve only certain attributes

# Conflicts:
#	src/uu/cp/src/copydir.rs
#	src/uu/cp/src/cp.rs

* tests/cp: preserve all and preserve xattr tests with todos

* tests/cp: rename preserve tests

* tests/cp: add android fail test for preserve=xattr

On Android, this cp with explicit preserve of xattr must fail, because of the limitations of the filesystem setup used on Android.

* cp: verify some metadata in cp preserve tests

# Conflicts:
#	tests/by-util/test_cp.rs

* cp: run test_cp_preserve_all in all OS's but only check metadata on linux

* test/cp: don't expect the mode to change in explicit cp preserve

* cp: attributes struct instead of enum for unified required tracking

* cp: refactor preserver and handle_preserve

# Conflicts:
#	src/uu/cp/src/cp.rs

* cp: update preserve attr to max

* test/cp: fix the preserve xattr test

Access timestamps appear to be modified only in this test. Running the command directly does not alter the access timestamp.

* cp/test: preserve all and context case

* cp: fix preserve args value source

* test/cp: don't check mtime on freebsd

* test/cp: don't check mtime on macos

* test/cp: fix freebsd deps

* test/cp: support freebsd tests

* cp: simplify try_set_from_string

* cp: parse context attr in preserve in any case to show warning later

* cp: print warnings for attribute errors if not required

* cp: show SELinux warning only once

* cp: show SELinux warning without error

* Revert "cp: show SELinux warning without error"

This reverts commit d130cf0d8c8e28ac2c903413992613241decf879.

* cp: add documentation for preserve components

* cp: simplify try_set_from_string

* cp: EN_US "behavior" spelling for cspell
2023-01-19 13:02:06 +01:00
Ed Smith
34e10f9aa8 nice: Remove use of show_warning
This is required to pass the GNU nice test suite. Failure to produce
the advisory message when unable to change the process priority must
be fatal, and without this commit our version of nice will exit, but
before the commit the exit code will be 101 (due to eprintln!
panicking), and it must be 125 to pass the test suite.

Signed-off-by: Ed Smith <ed.smith@collabora.com>
2023-01-18 11:44:41 +01:00
Ed Smith
07e7372311 nice: Permit --adjustment to be specified multiple times
This is tested by the GNU coreutils test suite, and the
correct behaviour is the last specification wins.

Signed-off-by: Ed Smith <ed.smith@collabora.com>
2023-01-18 11:44:41 +01:00
Ed Smith
8aa9f346ef Support legacy argument syntax for nice
This introduces an argument preprocessing step for the nice tool in
order to support the legacy nice adjustment syntax (`nice -1 foo`,
`nice --1 foo`, `nice -+1 foo` and so forth).

This is a preprocessing step because the interaction between these
arguments and the existing `nice -n -1` syntax becomes context
dependent, in a way that is currently difficult to capture through
clap.

Signed-off-by: Ed Smith <ed.smith@collabora.com>
2023-01-18 11:44:41 +01:00
Sylvestre Ledru
8c137f5d7c
Merge pull request #4278 from cakebaker/sum
sum: fix output when using BSD sum algo (-r)
2023-01-18 11:33:41 +01:00
Sylvestre Ledru
afbe850115
Merge pull request #4279 from rivy/up.uname
change/uname ~ update and revise
2023-01-18 11:33:29 +01:00