Daniel Hofstetter
7cee2c5a2b
Merge pull request #6226 from mvo5/du-h-precision
...
du: give `-h` output the same precision as GNU coreutils
2024-04-24 17:42:02 +02:00
Jadi
ac87b73244
Fixing the build issue on NetBSD.
...
The NetBSD was missing for target-os checks on fsext.rs
Fixed #6261
2024-04-24 15:26:02 +00:00
Daniel Hofstetter
91b4ce6426
ls: add uucore/format feature
2024-04-24 17:06:13 +02:00
Daniel Hofstetter
89af8b9769
du,uucore: add words to spell-checker:ignore
2024-04-24 16:54:32 +02:00
Michael Vogt
61e0450c66
du: give -h
output the same precision as GNU coreutils
...
When printing the `du -h` output GNU coreutils does autoscale
the size, e.g.
```
$ truncate -s12M a
$ truncate -s8500 b
$ truncate -s133456345 c
$ truncate -s56990456345 d
$ du -h --apparent-size a b c d
12M a
8,4K b
128M c
54G d
```
Align our version to do the same by sharing the code with `ls`.
Closes : #6159
2024-04-24 16:53:08 +02:00
Michael Vogt
d07fb73630
ls,uucore: extract display human_readable()
helper from ls
...
This commit extract the `display_size()` helper from `ls` into
`uucore` as `human_readable` to be similar to the gnulib helper
so that the human readable display of sizes can be shared between
ls, du, df.
2024-04-24 16:53:08 +02:00
Ulrich Hornung
537941b676
config terminal simulation for specific stdios only
2024-04-23 19:56:17 +02:00
Daniel Hofstetter
eacf53d010
Merge pull request #6264 from uutils/renovate/winapi-util-0.x
...
chore(deps): update rust crate winapi-util to 0.1.7
2024-04-23 17:22:29 +02:00
renovate[bot]
b42f7e0940
chore(deps): update rust crate winapi-util to 0.1.7
2024-04-23 14:49:52 +00:00
Anton Patrushev
423494421b
more: use dev tty instead of mio to avoid panics ( #6262 )
...
* more: use dev tty instead of mio to avoid panics
* move more specific dependecy to more package
2024-04-23 16:48:21 +02:00
Sylvestre Ledru
7a2314cf4e
Merge pull request #6263 from cakebaker/cp_remove_unnecessary_touch
...
cp: remove unnecessary calls of `touch()` in tests
2024-04-23 16:32:18 +02:00
Daniel Hofstetter
fabe9ac128
cp: remove unnecessary calls of touch() in tests
2024-04-23 15:28:22 +02:00
Anirban Halder
421b820ec2
Fix the debug results in cp --debug
( #6220 )
2024-04-22 17:02:21 +02:00
Sylvestre Ledru
366af1c056
Merge pull request #6260 from cakebaker/env_missing_space
...
env: add missing space to help output
2024-04-22 17:01:55 +02:00
Daniel Hofstetter
d8792d7b69
env: add missing space to help output
2024-04-22 16:56:21 +02:00
Sylvestre Ledru
a1cdab3d60
Merge pull request #6259 from cakebaker/env_remove_gnu_env_dependency
...
env: remove dependency on GNU env in tests
2024-04-22 15:35:49 +02:00
Daniel Hofstetter
a2bc0ffdb0
env: remove dependency on GNU env in tests
2024-04-22 14:55:14 +02:00
Sylvestre Ledru
d63bc4a4e1
seq: add the unit test even if they are failing for now ( #6236 )
...
* seq: add the unit test even if they are failing for now
* improve test
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-04-21 14:48:03 +02:00
Daniel Hofstetter
2c67775cef
Merge pull request #6258 from sylvestre/touch
...
Minor nits in the tests
2024-04-21 14:24:11 +02:00
Daniel Hofstetter
fed1664ca1
Merge pull request #6257 from uutils/renovate/zip-1.x
...
chore(deps): update rust crate zip to 1.1.1
2024-04-21 13:39:13 +02:00
Sylvestre Ledru
13cfe2d8e5
test: replace at.write by at.touch
2024-04-21 13:23:24 +02:00
Sylvestre Ledru
3a72d5c5cb
test tail: replace fixtures by at for consistency
2024-04-21 13:20:38 +02:00
renovate[bot]
6e1394d0db
chore(deps): update rust crate zip to 1.1.1
2024-04-21 10:51:07 +00:00
Sylvestre Ledru
0b78b77fb2
Merge pull request #6110 from cre4ture/feature/factor_fix_gnu_tests_with_num_prime
...
Feature/factor fix gnu tests with num prime
2024-04-21 12:49:51 +02:00
Ulrich Hornung
d202baba97
use num_prime for factorisation to fix gnu test
2024-04-21 11:24:25 +02:00
Sylvestre Ledru
64027e5a57
Merge pull request #6252 from sylvestre/hash-error
...
hashsum: improve the error management to match GNU
2024-04-21 09:55:16 +02:00
sreehari prasad
a1717436a4
cp: gnu "same-file" test case compatibility ( #6190 )
...
* cp: -b doesn't ignore "version control" env
* cp: gnu "same-file" test compatibility fix
2024-04-21 09:49:45 +02:00
Sylvestre Ledru
6ef08d7f1c
hashsum: improve the error management to match GNU
...
Should make tests/cksum/md5sum.pl and tests/cksum/sha1sum.pl pass
2024-04-21 09:08:27 +02:00
Sylvestre Ledru
128c0bc6b5
hashsum: gnu compat no need to replicate this output with hashsum
2024-04-21 09:08:27 +02:00
Sylvestre Ledru
94f5e82dbd
hashsum: ignore empty lines in --check
2024-04-21 09:08:27 +02:00
Sylvestre Ledru
beb7395c84
hashsum: move handle_captures & gnu_re_template move away from the hashsum function
2024-04-21 09:08:27 +02:00
Sylvestre Ledru
f78b408830
Merge pull request #6255 from uutils/renovate/zip-1.x
...
chore(deps): update rust crate zip to v1
2024-04-21 09:06:38 +02:00
Daniel Hofstetter
c83cec7c0c
env: move unit tests to env.rs
2024-04-21 01:26:50 +02:00
Daniel Hofstetter
29e5d0b42b
clippy: fix redundant_clone lint warnings in tests
2024-04-21 01:26:50 +02:00
Daniel Hofstetter
2ee782fcf1
ci: remove unused CARGO_FEATURES_OPTION
2024-04-21 01:26:50 +02:00
Daniel Hofstetter
bde10cd9c6
ci: use -pcoreutils when running clippy
...
instead of using -putil_1 -putil2 etc.
2024-04-21 01:26:50 +02:00
renovate[bot]
6a08e2df87
chore(deps): update rust crate zip to v1
2024-04-20 22:10:25 +00:00
Daniel Hofstetter
31087e821d
Merge pull request #6253 from uutils/renovate/bytecount-0.x
...
chore(deps): update rust crate bytecount to 0.6.8
2024-04-19 13:36:48 +02:00
renovate[bot]
1c582ee7eb
chore(deps): update rust crate bytecount to 0.6.8
2024-04-19 10:13:05 +00:00
Daniel Hofstetter
ad91330625
Merge pull request #6212 from gierens/ci-build-apps-individually
...
feat(github): add CICD job build_programs_individually
2024-04-18 11:29:50 +02:00
Sandro-Alessio Gierens
8d4763bdec
feat(github): add CI/test_separately job
...
Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
2024-04-18 10:50:47 +02:00
Sylvestre Ledru
4e1dbcd3fc
Merge pull request #6230 from sylvestre/hash-ignore-missing
...
hashsum: implement the ignore-missing option
2024-04-17 23:43:38 +02:00
Daniel Hofstetter
57388a9627
Merge pull request #6246 from bin-ly/main
...
Fix warning when executing Clippy
2024-04-17 17:41:21 +02:00
binlingyu
9d1d4cc5f6
Fix warning when executing Clippy
2024-04-17 11:14:03 +08:00
Sylvestre Ledru
f817018f90
hashsum: --ignore-missing needs -c
2024-04-15 22:19:44 +02:00
Sylvestre Ledru
e194022c1f
Merge pull request #6240 from cakebaker/factor_remove_zero_method
...
factor: remove unused method `zero`
2024-04-15 20:09:49 +02:00
Sylvestre Ledru
40600f2419
Merge pull request #6241 from cakebaker/factor_allow_dead_code
...
factor: suppress some "never used" warnings
2024-04-15 20:09:37 +02:00
Sylvestre Ledru
39fa474ddc
Merge pull request #6239 from cakebaker/od_remove_field_print_width_block
...
od: remove `print_width_block` field of `OutputInfo`
2024-04-15 17:45:01 +02:00
Daniel Hofstetter
d60fe6e9e9
factor: suppress some "never used" warnings
2024-04-15 16:40:11 +02:00
Daniel Hofstetter
dd25bab9b5
factor: remove unused method "zero"
2024-04-15 16:10:11 +02:00