1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00
Commit graph

15910 commits

Author SHA1 Message Date
Daniel Hofstetter
212789f171
Merge pull request #8087 from sylvestre/l10n-sleep
l10n: port sleep to translation + add french
2025-06-07 08:10:57 +02:00
Daniel Hofstetter
06aa0e50fc
Merge pull request #8090 from uutils/renovate/smallvec-1.x-lockfile
chore(deps): update rust crate smallvec to v1.15.1
2025-06-07 07:08:18 +02:00
renovate[bot]
6c1a85bb32
chore(deps): update rust crate smallvec to v1.15.1 2025-06-06 23:55:32 +00:00
Sylvestre Ledru
21cc0b8471 l10n: port sleep to translation + add french 2025-06-06 22:25:32 +02:00
Sylvestre Ledru
15a6f92090 l10n: port dirname to translation + add french 2025-06-06 21:35:50 +02:00
Sylvestre Ledru
df0ef3b589
Add common pre-commit hooks (#8059)
Pre-commits are usually used to minimize busy work by the contributors, e.g., by fixing extra spacing, formatting, etc. This PR adds various basic text file checks to the repo. I also made yaml spacing a bit cleaner.

I was a bit surprised it is used for `cargo clippy` because you wouldn't want clippy's auto-fixes to be auto-applied by CI, so usually GitHub workflow simply checks runs it regularly. This is outside of the scope for this PR, but perhaps it should be removed here?
2025-06-06 17:20:15 +02:00
Daniel Hofstetter
3ffaa335df rm: use new_cmd! to simplify some tests 2025-06-06 16:53:55 +02:00
Daniel Hofstetter
d503b7c7c7 rm: merge some imports in test file 2025-06-06 16:42:32 +02:00
Daniel Hofstetter
1dbd452c8f rm: use consistent naming for test functions 2025-06-06 16:40:16 +02:00
Yuri Astrakhan
60c55d7c07
chore: cleanup workspace crates (#8058)
* chore: cleanup workspace crates

* properly add all crates to the workspace cargo.toml as members
  * except `fuzz` because it still has some issues, TBD
* use quotes around `true` and `false` to ensure there is no bool confusion
* remove a few leftover readme comments
* mark all unpublishable crates as `publish = false` to avoid accidental publishing
* Add `uutests` to the main workspace

* grammar

* a bit more cleanup based on feedback

* revert true/false

* Update tests/benches/factor dependencies
2025-06-06 13:56:08 +02:00
Teemu Pätsi
4d40671d79
cat: Fix reporting "input file is output file" error when outputting to an input file (#8025)
* cat: Check if a file can be overwritten safely in Unix

* cat: Check if a file can be overwritten safely in Windows

* cat: Test writing read-write file that is input and output

* cat: Unit test `is_appending` function

* cat: Unit test `is_unsafe_overwrite` function

* cat: Comment why a few function calls could return Err

* cat: Remove obvious comments from test
2025-06-06 12:01:31 +02:00
Sylvestre Ledru
9e21259e2d
Merge pull request #8062 from drinkcat/sort-float
sort: Make use of ExtendedBigDecimal in -g sorting, then attempt to recover some performance
2025-06-06 12:01:04 +02:00
Sylvestre Ledru
858db601aa
Merge pull request #7964 from kevinburke/no-selinux-mac
GNUMakefile: fix compilation on Macs
2025-06-06 11:58:26 +02:00
Daniel Hofstetter
1787471eeb
Merge pull request #8073 from uutils/pr-1
l10n: port id to translation + add french
2025-06-06 11:38:19 +02:00
Daniel Hofstetter
246a7e533d
Merge pull request #8077 from sylvestre/l10n-proc
l10n: port nproc to translation + add french
2025-06-06 11:25:10 +02:00
Daniel Hofstetter
1f24aa2c62
Merge pull request #8078 from sylvestre/l10n-yes
l10n: port yes to translation + add french
2025-06-06 11:09:11 +02:00
Daniel Hofstetter
af750967e9
Merge pull request #8080 from sylvestre/l10n-uname
l10n: port uname to translation + add french
2025-06-06 11:01:56 +02:00
Daniel Hofstetter
6619a93777
Merge pull request #8081 from sylvestre/l10n-whoami
l10n: port whoami to translation + add french
2025-06-06 10:49:46 +02:00
Daniel Hofstetter
0a446cc7a7
Merge pull request #8074 from uutils/pr-2
l10n: port basename to translation + add french
2025-06-06 10:34:46 +02:00
Sylvestre Ledru
fa4e46ad15 l10n: port id to translation + add french 2025-06-06 09:36:53 +02:00
Sylvestre Ledru
63ef7c9a1d l10n: port hostname to translation + add french 2025-06-06 09:25:25 +02:00
Sylvestre Ledru
980c81a6ce l10n: port whoami to translation + add french 2025-06-06 09:24:53 +02:00
Sylvestre Ledru
86357de0e9 l10n: port uname to translation + add french 2025-06-06 09:24:21 +02:00
Sylvestre Ledru
0d00960522 l10n: port yes to translation + add french 2025-06-06 09:23:08 +02:00
Sylvestre Ledru
991144a79a l10n: port nproc to translation + add french 2025-06-06 09:22:24 +02:00
Sylvestre Ledru
b0ba545248 l10n: port nice to translation + add french 2025-06-06 09:21:35 +02:00
Sylvestre Ledru
8f5f22eb86 l10n: port basename to translation + add french 2025-06-06 09:13:25 +02:00
Daniel Hofstetter
1d11f85dd2
Merge pull request #8066 from sylvestre/bidi
l10n: Disable Unicode directional isolate characters (U+2068, U+2069)
2025-06-06 09:08:23 +02:00
Sylvestre Ledru
4bd3b70774
Merge pull request #8070 from cakebaker/rm_rename_constants
rm: rename two consts for better readability
2025-06-05 18:45:34 +02:00
Daniel Hofstetter
51c5c9c59a rm: rename two consts for better readability
OPT_PROMPT => OPT_PROMPT_ALWAYS, OPT_PROMPT_MORE => OPT_PROMPT_ONCE
2025-06-05 17:05:48 +02:00
Daniel Hofstetter
ab40fcff7e uptime: use "0 users" instead of "0 user" 2025-06-05 15:32:45 +02:00
Will Shuttleworth
61bd11a551
stty: set control characters (#7931)
* reworked arg processing. control character mappings are correctly grouped now, ie 'stty erase ^H'

* stty: setting control chars to undefined (disabling them) is implemented

* setting control chars

* stty: can now set control chars. need to improve checks on valid mappings

* stty: matches GNU in what control character mappings are allowed

* stty: run rustfmt and remove extra comments

* stty: setting control char code review fixes

* stty: fix rustfmt errors

* stty: more small edits after review

* stty: refactor set control char changes for better testing

* stty: fix ci error

* stty: fix issues from code review
2025-06-05 11:38:51 +02:00
Daniel Hofstetter
ccc6233fba
Merge pull request #8054 from sylvestre/locale3
l10n: convert the md files to fluent
2025-06-05 09:39:42 +02:00
Sylvestre Ledru
dd57bcfd3d
Merge pull request #8067 from Ecordonnier/eco/libstdbuf
stdbuf: avoid double "lib" prefix
2025-06-05 08:03:58 +02:00
Etienne Cordonnier
8c1cc5b992 stdbuf: avoid double "lib" prefix
libstdbuf is currently compiled as e.g. liblibstdbuf.so, which is confusing.
Compile the library as libstdbuf.so instead.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
2025-06-05 00:00:45 +02:00
Sylvestre Ledru
5b2078b02d l10n: Disable Unicode directional isolate characters (U+2068, U+2069) 2025-06-04 22:32:59 +02:00
Sylvestre Ledru
4b776ba995 l10n: also manage individual binary usages 2025-06-04 19:24:20 +02:00
Sylvestre Ledru
578499fbad coreutils.rs: spell ignore 2025-06-04 19:24:03 +02:00
Sylvestre Ledru
005f0b7737 cargo fmt 2025-06-04 19:24:03 +02:00
Sylvestre Ledru
154250ac24 refresh cargo.lock from fuzzing 2025-06-04 19:24:03 +02:00
Sylvestre Ledru
c3f2247eca l10n: remove help_about 2025-06-04 19:24:03 +02:00
Sylvestre Ledru
c437ac830e l10n: the manpage creation should use the locale files 2025-06-04 19:24:03 +02:00
Sylvestre Ledru
d9f0868a45 l10n: Adjust a test, I don't think we need to full path with 'usage' 2025-06-04 19:24:03 +02:00
Sylvestre Ledru
a7f941577f bin/coreutils: add unit tests 2025-06-04 19:24:03 +02:00
Sylvestre Ledru
00982c9374 l10n: Move the prefix removal into a function 2025-06-04 19:24:03 +02:00
Sylvestre Ledru
b904f36636 l10n: manages aliases of commands 2025-06-04 19:24:03 +02:00
Sylvestre Ledru
a36d5455ab l10n: improve the display when the ftl is invalid 2025-06-04 19:24:03 +02:00
Sylvestre Ledru
7102e1a4b5 l10n: remove the old md files 2025-06-04 19:24:03 +02:00
Sylvestre Ledru
16afa021ce l10n: add a comment to detail the need of having the capability to disable translations 2025-06-04 19:24:03 +02:00
Sylvestre Ledru
5ab807a561 l10n: disable the arch locale init 2025-06-04 19:24:03 +02:00