1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00
Commit graph

15910 commits

Author SHA1 Message Date
Daniel Hofstetter
d96b62c17f ln: rename error variant
from TargetIsDirectory to TargetIsNotADirectory
2025-05-30 16:44:00 +02:00
Dorian Péron
1baedc417b
ln: don't show error when overwriting a link with -sfn (#7449)
* ln: fix #6350

* test(ln): test_symlink_no_deref_dir success has no stderr
2025-05-30 16:29:43 +02:00
Sylvestre Ledru
94132060b6
Merge pull request #8030 from drinkcat/clippy-better
clippy pre-commit/CI improvements
2025-05-29 15:05:15 +02:00
Nicolas Boichat
5e3284139c num_parser: Fix tests after pow_with_context update
We get more precision, and more range, now.
2025-05-29 14:37:03 +02:00
Nicolas Boichat
986bdf545d uucore: Remove custom_tz_fmt, cleanup dependencies
Nobody needs it anymore.
2025-05-29 14:00:25 +02:00
Nicolas Boichat
eb5fc4c4cb Cross.toml: Install tzdata in container
Linux tests require that now, as we now assume /usr/share/zoneinfo
is present.
2025-05-29 14:00:25 +02:00
Nicolas Boichat
dadda0dd6a test_date: Extend coverage to a lot more timezones
Also test %z/%Z formats.
2025-05-29 14:00:25 +02:00
Jadi
d1525e2d2e date: Add more TZ tests
[drinkcat: separated test changes]
2025-05-29 14:00:25 +02:00
Nicolas Boichat
6031de5a29 ls: switch to lenient formating configuration 2025-05-29 14:00:25 +02:00
Nicolas Boichat
10fb220c72 ls: Avoid additional String creation/copy in display_date
From code provided in #7852 by @BurntSushi.

Depending on the benchmarks, there is _still_ a small performance
difference (~4%) vs main, but it's seen mostly on small trees
getting printed repeatedly, which is probably not a terribly
interesting use case.
2025-05-29 14:00:25 +02:00
Nicolas Boichat
c599363242 ls: cache recent time threshold in jiff implementation 2025-05-29 14:00:25 +02:00
Nicolas Boichat
fc947eca33 ls: convert to jiff 2025-05-29 14:00:25 +02:00
Nicolas Boichat
07c9205d22 Revert "ls: Optimize time formatting"
This reverts commit fc6b896c27.

This also reverts the change from new to new_lenient, we'll
recover that later as part of the jiff conversion.
2025-05-29 14:00:25 +02:00
Nicolas Boichat
301e33cfe3 date: switch from chrono to jiff
Also adds cargo dependency.
2025-05-29 14:00:25 +02:00
Nicolas Boichat
7f05fca1ae .pre-commit-config.yaml: Match config in CI
We need to enable -D warnings to get the same behaviour.
2025-05-29 13:55:32 +02:00
Nicolas Boichat
7854efc802 code-quality.yml: Clippy with --all-features and --workspace on ubuntu
Without this, some uucore packages are not properly tested.
2025-05-29 13:55:32 +02:00
Nicolas Boichat
b522f2b9b5 uucore: Use next_back on PathBuf's DoubleEndedIterator
As recommended by clippy, last() needlessly goes through the whole
path while next_back() is available.
2025-05-29 13:55:32 +02:00
Nicolas Boichat
4a0c2a95e8 uucore: num_parser: Update pow_with_context
This is the latest version in https://github.com/akubera/bigdecimal-rs/pull/148 ,
but the discussion sort of stalled, this is really complicated math,
but this new function is a little bit better than the original
(at least I hope so).
2025-05-29 13:39:03 +02:00
Daniel Hofstetter
869660baaa
Merge pull request #7981 from sylvestre/locale2
Improve the locale support
2025-05-29 11:10:34 +02:00
Sylvestre Ledru
d3f5f3aaa7
Merge pull request #8018 from Ecordonnier/eco/musl-utmpx-warnings
utmpx: silence musl warnings
2025-05-29 09:26:51 +02:00
Sylvestre Ledru
7e293a38ee
Merge pull request #8019 from alerque/cleanup-deny
deny.toml: remove obsolete skips related to rustix
2025-05-29 09:26:31 +02:00
Sylvestre Ledru
ac0564decb
Merge pull request #8021 from cakebaker/cargo_toml_remove_unused_coz_dependency
Cargo.toml: remove unused `coz` dependency
2025-05-29 09:26:04 +02:00
Sylvestre Ledru
2ff6c166ea
Merge pull request #8026 from drinkcat/cspell-cargo-lock
.pre-commit-config.yaml: Do not fail cspell if all files are ignored
2025-05-29 09:25:52 +02:00
Nicolas Boichat
0ef7c205d0 .pre-commit-config.yaml: Do not fail cspell if all files are ignored
cspell pre-commit hook would fail if the only change was a
Cargo.lock change.

This fixes it.
2025-05-29 09:12:17 +02:00
Daniel Hofstetter
718b1a4ac7
Merge pull request #8024 from jtracey/patch-7
sync: adjust safety comments
2025-05-29 07:37:59 +02:00
Justin Tracey
508e791f56
sync: adjust safety comments
Removes a stale safety comment I missed, plus adds some backticks.
2025-05-28 19:27:40 -04:00
Sylvestre Ledru
1e33e535ce also install the locales 2025-05-28 23:45:58 +02:00
Sylvestre Ledru
91a6209699 locale: try to guess where the locale files are 2025-05-28 23:45:58 +02:00
Sylvestre Ledru
726481c862 cspell: ignore the ftl files 2025-05-28 23:45:58 +02:00
Sylvestre Ledru
7847894acf arch: support translations 2025-05-28 23:45:58 +02:00
Sylvestre Ledru
075cdcf21f CI: also install the spanish locale 2025-05-28 23:45:58 +02:00
Sylvestre Ledru
463f7c1530 locale: add unit tests 2025-05-28 23:45:58 +02:00
Sylvestre Ledru
72597bcf7b locale: refactor the locale system:
* remove the default value. Avoid duplication of the english string + facilitate translation
* have english as a default. Load english when the translated string isn't available
2025-05-28 23:40:13 +02:00
Sylvestre Ledru
0523eab9e7
Merge pull request #8020 from cakebaker/csplit_fix_issues_with_non_ascii_digits
csplit: fix two issues with non ASCII digits
2025-05-28 23:25:18 +02:00
Sylvestre Ledru
fa17dc7809
Merge pull request #8022 from frendsick/test/enable-gnu-expr
expr: Remove `expr.pl` from `why-error.md`
2025-05-28 22:43:50 +02:00
Teemu Pätsi
e6784a600f
expr: Enable GNU test expr.pl 2025-05-28 22:43:06 +03:00
Daniel Hofstetter
5e92917b6d Cargo.toml: remove unused coz dependency 2025-05-28 19:54:11 +02:00
Daniel Hofstetter
d5b6af5216 csplit: only allow ASCII digits as offset 2025-05-28 16:07:45 +02:00
Daniel Hofstetter
7439050d85 csplit: only allow ASCII digits for repeat pattern 2025-05-28 15:53:54 +02:00
Caleb Maclennan
07f7226a96
deny.toml: remove obsolete skips related to rustix
The holdup on crossterm was bumped in d5258d280, bringing rustix to 0.38.44. Meanwhile while
linux-raw-sys is still at 0.4.15 in the lock file, it is unclear to my why it got added in 2c0f97fc3
in the first place as it does not seem to trigger any complaints from `cargo deny`.
2025-05-28 16:20:59 +03:00
Etienne Cordonnier
c14282209d utmpx: silence musl warnings
Fixes https://github.com/uutils/coreutils/issues/7865

We are intentionally calling the stub utmpx functions of musl, in order
to achieve behavior parity with GNU coreutils, and in order to be able
to ship those utilities for musl libc. Silence those warnings.

See also https://github.com/uutils/coreutils/issues/1361 for details.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
2025-05-28 13:58:49 +02:00
jovie :)
0f632f2fba
chroot: remove unwrap calls (#7890) 2025-05-28 09:29:19 +02:00
Sylvestre Ledru
15f606a12b
Merge pull request #8017 from jtracey/sync-safety
sync: reduce use of unsafe and improve comments
2025-05-28 08:43:36 +02:00
Daniel Hofstetter
76848de952
Merge pull request #8015 from uutils/renovate/clap_complete-4.x-lockfile
chore(deps): update rust crate clap_complete to v4.5.51
2025-05-28 07:19:45 +02:00
Daniel Hofstetter
a98630d43d
Merge pull request #8014 from uutils/renovate/clap-4.x-lockfile
chore(deps): update rust crate clap to v4.5.39
2025-05-28 07:19:15 +02:00
Justin Tracey
f32f1efc23
sync: reduce use of unsafe and improve comments 2025-05-27 23:00:10 -04:00
Justin Tracey
f8d6eea2dc
sync: remove Android workaround
The libc crate now exposes Android's sync like other unix platforms.
2025-05-27 22:26:32 -04:00
Kevin Burke
24ff36ee88
.github: add additional combination to CI 2025-05-27 15:09:40 -07:00
Kevin Burke
2408bd6b36
GNUMakefile: fix compilation on Macs
Previously, attempting to compile on Macs would bring in the SELinux
dependencies (runcon) which led to compilation errors on Macs.

Fixes #7695.
2025-05-27 15:05:16 -07:00
renovate[bot]
e92cf92f7e
chore(deps): update rust crate clap_complete to v4.5.51 2025-05-27 19:53:36 +00:00