Commit graph

6005 commits

Author SHA1 Message Date
Daniel Hofstetter
98fb8fa144 test,wc: use vars directly in format! strings 2023-04-21 08:33:56 +02:00
renovate[bot]
790958e4f3
fix(deps): update rust crate libc to 0.2.142 2023-04-20 17:09:10 +00:00
Terts Diepraam
19add3a4bd
Merge pull request #4398 from cakebaker/uudoc_simplify_about_text_generation
uudoc, uucore_procs: move markdown parsing to HelpParser
2023-04-20 11:29:16 +02:00
Terts Diepraam
d68fd68b5f
Merge pull request #4734 from Joining7943/tail-fix-args-parsing-follow-mode
tail/args: Fix parsing when -F is used together with --retry or --follow
2023-04-20 09:43:24 +02:00
renovate[bot]
54178d491c
fix(deps): update rust crate dunce to 1.0.4 2023-04-19 16:14:17 +00:00
Joining7943
20e32971dd tail/args: Fix parsing when -F is used together with --retry or --follow 2023-04-18 21:47:20 +02:00
Sylvestre Ledru
25fbcd89a5 fmt:uumain: split/doc copy into smaller functions 2023-04-17 22:33:36 +02:00
Sylvestre Ledru
2c1aa229a0 install: split/doc copy into smaller functions 2023-04-17 22:33:33 +02:00
Sylvestre Ledru
fb72738db4 stat: split/doc print_it into smaller functions 2023-04-17 22:33:33 +02:00
Sylvestre Ledru
59c0f51208 hashsum: split/doc detect_algo into smaller functions 2023-04-17 22:33:30 +02:00
Daniel Hofstetter
658323184d uudoc,uucore_procs: move md parsing to help_parser 2023-04-16 14:32:48 +02:00
publicmatt
084510e499
Copy the UTF8 crate in the tree and remove utf8 dependency. (#4460) 2023-04-14 21:31:11 +02:00
Ideflop
6a54d820ac
factor: add -h/--exponents option (#4710)
* factor: add -h/--exponents option

* Factor: Rebase, add -h/--exponents options
2023-04-14 21:20:19 +02:00
Sylvestre Ledru
a04fc0508e
Merge pull request #4705 from m11o/printf-move-strings-to-md-files
printf: move help strings to markdown file
2023-04-14 18:53:59 +02:00
Sylvestre Ledru
fcc1ebf078 be more consistent in the help. use follow for deference options 2023-04-13 19:30:33 +02:00
Sylvestre Ledru
00a866e128 du: move to use an enum 2023-04-13 13:38:27 +02:00
Sylvestre Ledru
e82e6a3e4c du: remove cognitive_complexity clippy allow 2023-04-13 13:38:27 +02:00
Sylvestre Ledru
b2fd72878e du: reduce the complexity by moving get_convert_size_fn option mgmt into a function 2023-04-13 13:38:27 +02:00
Sylvestre Ledru
f475a36204 du: reduce the complexity by moving the time option mgmt into a function 2023-04-13 13:38:27 +02:00
Sylvestre Ledru
f08b8dab23 du: directly get a vec of pathbuf to avoid several type changes 2023-04-13 13:38:24 +02:00
Sylvestre Ledru
eea8d40e78 du: add support of --dereference-args
Should fix tests/du/deref.sh
2023-04-13 13:27:04 +02:00
Sylvestre Ledru
5a1d9cec7e du: an error code when done on a non existing file 2023-04-13 13:27:04 +02:00
Daniel Hofstetter
dd3c0f7fe9
Merge pull request #4729 from spineki/b2sum-missing-l-option
B2sum: add -l/--length option
2023-04-13 09:57:55 +02:00
Marras Antoine
fdbebfad9d b2sum: moved 0 case into None arm 2023-04-12 09:49:20 +02:00
Sylvestre Ledru
c8d2a9ad0e ls: document the new functions 2023-04-11 23:13:04 +02:00
Sylvestre Ledru
ee0fc86ce8 ls: remove cognitive_complexity clippy allow 2023-04-11 23:03:41 +02:00
Sylvestre Ledru
33d4ab82ba ls: extract most of the content into functions 2023-04-11 23:02:48 +02:00
Marras Antoine
c4d637125c b2sum: changed british spelling for american spelling 2023-04-11 09:28:41 +02:00
Marras Antoine
a9e65e881c b2sum: handled 0 length case and greater than 512 case 2023-04-10 21:20:54 +02:00
Marras Antoine
ae1113d7dc b2sum: add support to -l option 2023-04-10 18:31:18 +02:00
Daniel Hofstetter
4355fb7f78 Remove some unnecessary "extern crate" statements 2023-04-09 16:12:45 +02:00
Sylvestre Ledru
2f6c505ff2
Merge pull request #4718 from cakebaker/touch_remove_extern_crates
touch: remove unnecessary "extern crate"s
2023-04-09 15:09:36 +02:00
Daniel Hofstetter
dfea103bc4 uucore: remove commented out imports 2023-04-09 14:53:15 +02:00
Daniel Hofstetter
81b1bc1fa7 touch: remove unnecessary "extern crate"s 2023-04-08 16:34:29 +02:00
xalfer
9badfcd7d2 touch: fix clippy lints 2023-04-08 12:23:24 +02:00
xalfer
19e456fe2a touch: add support for --ref and --date together
This commit resolves issue #4608.

To make it relatively straightforward to implement I have taken some
code from parse_date and put it inside a function parse_relative_time.

This commit changes and adds some test as well to work with the new
functionality.
2023-04-07 21:36:26 +02:00
m11o
b1f15ef720 Merge branch 'printf-move-strings-to-md-files' of https://github.com/m11o/coreutils-rs into printf-move-strings-to-md-files 2023-04-06 00:50:49 +09:00
m11o
1c5f068886 use ` for keyword 2023-04-06 00:50:02 +09:00
Masahito Osako
c988e712a1
Merge branch 'main' into printf-move-strings-to-md-files 2023-04-06 00:44:47 +09:00
m11o
45ce14c85b fix review to use code block 2023-04-06 00:44:26 +09:00
Masahito Osako
5633eb9cd7
Update src/uu/printf/printf.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-04-06 00:25:28 +09:00
Masahito Osako
cbc0ff6771
Update src/uu/printf/printf.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-04-06 00:24:19 +09:00
Masahito Osako
11f3976e35
Update src/uu/printf/printf.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-04-06 00:24:06 +09:00
Masahito Osako
109aa925c4
Update src/uu/printf/printf.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-04-06 00:23:27 +09:00
Masahito Osako
a838c31978
Update src/uu/printf/printf.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-04-06 00:22:26 +09:00
Masahito Osako
ade823c163
Update src/uu/printf/printf.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-04-06 00:22:08 +09:00
Masahito Osako
097002bdaf
Update src/uu/printf/printf.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-04-06 00:21:57 +09:00
Masahito Osako
f688a7ec8d
Update src/uu/printf/printf.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-04-06 00:21:44 +09:00
Masahito Osako
13bb755e60
Update src/uu/printf/printf.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-04-06 00:21:33 +09:00
Masahito Osako
46f11737e1
Update src/uu/printf/printf.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-04-06 00:20:46 +09:00
Masahito Osako
75bb166168
Update src/uu/printf/printf.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-04-06 00:20:37 +09:00
Masahito Osako
b8a3f14fb3
Update src/uu/printf/printf.md
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-04-06 00:19:57 +09:00
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