Commit graph

5499 commits

Author SHA1 Message Date
Syukron Rifail M
5c7afe7a6b df: add UResult 2021-07-24 20:18:57 +07:00
Tuomas Tynkkynen
46a2491727 stat: Support \t in --printf format 2021-07-23 19:04:18 +03:00
Dave Hodder
2dc9dfe62f CONTRIBUTING: adjust formatting 2021-07-22 18:02:51 +01:00
Dave Hodder
38a47b4358 CONTRIBUTING: Add Apache License note (#2086)
Add a note the licensing section, stating that references using the
Apache License are acceptable on a case-by-case basis when there is no
MIT-licensed alternative.

  * Follow-up to #1994 / https://github.com/uutils/coreutils/pull/2493

  * Intended to resolve issue #2086
2021-07-22 17:38:43 +01:00
Terts Diepraam
eae8c72793
Merge pull request #2467 from Funky185540/backup_mode_determination
backup_control: Fix backup mode determination
2021-07-20 13:27:04 +02:00
Andreas Hartmann
e07b4e9f59 install: Adapt to modified backup mode determination 2021-07-19 17:01:49 +02:00
Andreas Hartmann
250bcaf7c5 backup_control: Run tests in series
Make all tests lock a mutex to ensure that they're run in series rather than
parallel. We must take this precaution due to the fact that all tests are run
in parallel as threads of one parent process. As all threads in a process share
e.g. environment variables, we use the Mutex to ensure they're run one after
another.

This way we can guarantee that tests that rely on environment variables to have
specific values will see these variables, too.

An alternative implementation could have used the [rusty fork][1] crate to run
all tests that need env variables in separate processes rather than threads.
However, rusty fork likely wouldn't run on all platforms that the utilities are
supposed to run on.
2021-07-19 17:01:49 +02:00
Andreas Hartmann
2db1ec99f1 ln: Adapt to modified backup mode determination 2021-07-19 17:01:49 +02:00
Andreas Hartmann
3a0164310a cp: Adapt to modified backup mode determination 2021-07-19 17:01:49 +02:00
Terts Diepraam
fd89d59980
Merge pull request #2501 from Funky185540/docs/uerror_methods
uucore: error: Add docs to the `code` and `usage` functions
2021-07-19 14:44:36 +02:00
Sylvestre Ledru
e86c989184
Merge pull request #2505 from syukronrm/du-time-birth
test_du: ignore unsupported --time=birth
2021-07-19 09:54:47 +02:00
Andreas Hartmann
3a5caec5c2 uucore: error: Add docs to the code and usage functions
Make it plain what each of the functions is meant to implement and how they are
supposed to work.
2021-07-19 08:53:35 +02:00
Syukron Rifail M
37c986b005 test_du: ignore unsupported --time=birth 2021-07-19 06:55:11 +07:00
Terts Diepraam
45d2e09de0
Merge pull request #2504 from 353fc443/uresult-chown
chown: added UResult
2021-07-17 21:09:47 +02:00
353fc443
e9174f7d82
chown: code cleanup 2021-07-17 18:37:53 +00:00
353fc443
3c3daf5023
chown: added UResult 2021-07-17 08:52:17 +00:00
Sylvestre Ledru
df0382c31b
Merge pull request #2503 from miDeb/patch-1
docs: Mention the GNU manual in the contributing guide
2021-07-16 20:18:32 +02:00
Michael Debertol
2d74d052fc
Mention the GNU manual in the contributing guide 2021-07-16 19:54:41 +02:00
Terts Diepraam
f5ba8b1811
Merge pull request #2499 from 353fc443/uresult-kill
Add Uresult for false, echo, pwd, true and kill
2021-07-13 17:29:26 +02:00
353fc443
a6b0cf29e0
kill: added suggestions 2021-07-13 14:55:12 +00:00
353fc443
bd45fe26dc
true: added uresult
Related to #2464
2021-07-13 13:47:06 +00:00
353fc443
7d94121b95
kill: added uresult
Related to #2464
2021-07-13 09:49:39 +00:00
353fc443
425de97650
pwd: added uresult
Related to #2464
2021-07-13 09:10:47 +00:00
353fc443
2845dd3140
echo: adding uresult
Related to #2464
2021-07-13 08:55:33 +00:00
Terts Diepraam
92dafbd8a3
Merge pull request #2497 from 353fc443/sleep
sleep: fixing clippy warnings
2021-07-13 10:02:15 +02:00
353fc443
5730c8693f
sleep: fixing clippy warnings 2021-07-13 07:25:18 +00:00
353fc443
c48e623a80
false: addding uresult
Related to #2464
2021-07-13 06:56:27 +00:00
Terts Diepraam
381d4ffc7a
Merge pull request #2496 from tertsdiepraam/master
tests/sleep: fmt
2021-07-12 20:23:07 +02:00
Terts Diepraam
337d257e8d tests/sleep: fmt 2021-07-12 20:21:20 +02:00
Son Nguyen
6c26976edb
sleep: use UResult (#2492)
* sleep: use UResult in util

* sleep: add in error + test for it

* sleep: UResult - removed some verbosity
2021-07-12 20:20:23 +02:00
Sylvestre Ledru
35a9b7f1fb fix the base32 dep 2021-07-11 21:32:01 +02:00
Sylvestre Ledru
1bb23cdf73 refresh cargo.lock with recent updates 2021-07-11 21:09:38 +02:00
Sylvestre Ledru
26a882551b update the dep to uucore_procs 0.0.6 2021-07-11 21:04:11 +02:00
Sylvestre Ledru
4f0555a116 update uucore_proces to 0.0.6 2021-07-11 21:00:20 +02:00
Sylvestre Ledru
f534963dec bump uucore_procs to 0.0.6 2021-07-11 20:55:55 +02:00
Sylvestre Ledru
2c7dd570bc
Merge pull request #2495 from sylvestre/version-0.0.7
Version 0.0.7
2021-07-11 19:35:17 +02:00
Sylvestre Ledru
1d8a66b7d3 Update to version 0.0.7 2021-07-11 18:04:56 +02:00
Sylvestre Ledru
f37446eb1f update uucore to 0.0.9 2021-07-11 18:03:18 +02:00
Sylvestre Ledru
8fbb78d176 script update with versions 0.0.7 & uucore 0.0.9 2021-07-11 18:03:18 +02:00
Sylvestre Ledru
ebaa05d2ca
Merge pull request #2493 from dhodder/licensing_doc
CONTRIBUTING: Add licensing details (#1994)
2021-07-11 14:15:32 +02:00
Sylvestre Ledru
92c5dc7af8
Merge pull request #2494 from sylvestre/clip2
fix various clippy & rustfmt issues
2021-07-11 14:14:07 +02:00
Sylvestre Ledru
d4f27f1454 rustfmt the recent change 2021-07-11 11:23:51 +02:00
Sylvestre Ledru
caf984bd55 fix various clippy issues 2021-07-11 11:22:33 +02:00
Dave Hodder
49df2821c0 CONTRIBUTING: adjust formatting 2021-07-11 10:03:11 +01:00
Sylvestre Ledru
52c6593ef5
Merge pull request #2486 from hbina/hbina-tr-return-err-when-extra-args
`tr` should error out when if user provides more than 2 sets
2021-07-10 20:51:27 +02:00
Dave Hodder
7de8cb3ce2 CONTRIBUTING: Make it clear not to copy/reference GPL code (#1994) 2021-07-10 17:04:06 +01:00
Hanif Bin Ariffin
15f6e35163 Use map/default instead of match
Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
2021-07-10 18:51:24 +08:00
Hanif Bin Ariffin
199b4e437b Removed manual checks to just using clap instead
Also added tests for this.

Signed-off-by: Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>
2021-07-10 18:49:13 +08:00
Sylvestre Ledru
3b19ba1dff
Merge pull request #2491 from SuperSandro2000/fix-square-braket
Fix installation of [ symlink
2021-07-10 10:39:51 +02:00
Sylvestre Ledru
dcac295db3
Merge pull request #2489 from jhscheer/tr_2485
tr: fix squeeze and complement with two sets (#2485)
2021-07-10 00:41:09 +02:00