1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-15 12:27:49 +00:00
Commit graph

15884 commits

Author SHA1 Message Date
Samuel Tardieu
b5fc19e60e kill: make -s conflict with -l and -t 2025-01-04 15:04:12 +01:00
Daniel Hofstetter
e0031565ba
Merge pull request #7069 from samueltardieu/push-zrokzuowvlkv
kill: add `-n` hidden option for compatibility with bash
2025-01-04 14:47:42 +01:00
Samuel Tardieu
c6d3ec688c kill: add -n hidden option for compatibility with bash
GNU coreutils also implements it this way.
2025-01-04 11:33:54 +01:00
Sylvestre Ledru
8ab7bbafe1
Merge pull request #7057 from jfinkels/chroot-set-groups
chroot: fix many issues with chroot
2025-01-03 19:44:49 +01:00
Sylvestre Ledru
88cdf16fd7
Merge pull request #7051 from cakebaker/chroot_remove_g_short_option
chroot: remove `-G` short option
2025-01-03 16:35:14 +01:00
Daniel Hofstetter
2ab6dac8f0 Bump tempfile from 3.14.0 to 3.15.0 2025-01-03 14:40:37 +01:00
Daringcuteseal
35a044b532
uucore/buf-copy: delete redundant functions 2025-01-03 18:11:18 +07:00
Daniel Hofstetter
2cdf30938d
Merge pull request #7054 from uutils/renovate/bstr-1.x-lockfile
chore(deps): update rust crate bstr to v1.11.3
2025-01-03 06:57:55 +01:00
Jeffrey Finkelstein
b29d8f1008 chroot: fix several group setting issues
Fix several issues in the behavior of `chroot`, mostly around setting
group IDs. This commit ensures that supplemental groups provided by
`--groups` are properly handled with respect to the groups implied by
`--userspec`. This commit also ensures that we fall back to numeric
parsing when attempting to lookup user and group IDs from their names.
2025-01-02 20:08:47 -05:00
Jeffrey Finkelstein
b59da37365 chroot: make Options.groups into an Option type
Change the type of `Options.groups` to be `Option<Vec<String>>` so that
the absence of the `--groups` option is meaningfully distinguished from
an empty list of groups. This is important because `chroot --groups=''`
is used specifically to disable supplementary group lookup.
2025-01-02 20:08:47 -05:00
Jeffrey Finkelstein
52c05e2fd6 chroot: improve parsing of --groups parameter
Improve the parsing of the `--groups` parameter to `chroot` so that it
handles more error cases and better matches the behavior of GNU
`chroot`. For example, multiple adjacent commas are allowed:

    --groups=a,,,b

but spaces between commas are not allowed:

    --groups="a, , ,b"
2025-01-02 20:08:47 -05:00
renovate[bot]
541c345a4d
chore(deps): update rust crate bstr to v1.11.3 2025-01-02 22:53:57 +00:00
Daniel Hofstetter
e22bcbb74d chroot: remove outdated info from help 2025-01-02 13:38:39 +01:00
Daniel Hofstetter
e5e589afd5 chroot: remove short option "-G" 2025-01-02 13:35:19 +01:00
Sylvestre Ledru
6a8b766d6d
Merge pull request #7020 from jtracey/ls-nonunicode
ls: add better support for non-UTF-8 bytes
2025-01-02 11:16:58 +01:00
Sylvestre Ledru
ede8e15301
Merge pull request #7043 from jfinkels/chroot-parse-userspec
chroot: fix parsing of --userspec argument
2025-01-02 11:08:26 +01:00
Jeffrey Finkelstein
5bd5cdb7c1 chroot: fix parsing of --userspec argument
Fix the parsing of the `--userspec=USER:GROUP` argument so that the
both the user and the group are optional, and update the error message
to match that of GNU `chroot`. This commit also removes the incorrect
`clap` arguments for `--user` and `--group`. In `chroot --user=USER`,
the `--user` is an abbreviation of `--userspec`, and in `chroot
--group=GROUP`, the `--group` is an abbreviation of `--groups`.

Closes #7040.
2025-01-02 10:26:13 +01:00
Daniel Hofstetter
797876f8cd
Merge pull request #7049 from uutils/renovate/rstest-0.x
chore(deps): update rust crate rstest to 0.24.0
2025-01-02 06:54:57 +01:00
renovate[bot]
974b18e85c
chore(deps): update rust crate rstest to 0.24.0 2025-01-01 20:00:24 +00:00
Daniel Hofstetter
eb6086d346
Merge pull request #7047 from sylvestre/disable-win
CI: disable the windows job for indiv tests
2025-01-01 15:01:36 +01:00
Daniel Hofstetter
a049427e88
Merge pull request #7046 from sylvestre/uniqu
uniq: fix multibyte input
2025-01-01 14:53:03 +01:00
Sylvestre Ledru
6d028cd097
Merge pull request #7034 from alexs-sh/uucore-fix-fp-general-format-output
uucore:format:fix floating-point representation
2025-01-01 14:46:33 +01:00
Sylvestre Ledru
97a442ff6c CI: disable the windows job for indiv tests
Closes: #7044
2025-01-01 14:34:00 +01:00
Sylvestre Ledru
1e23a3fa8d uniq: fix multibyte input
Should fix tests/uniq/uniq.pl
2025-01-01 13:17:52 +01:00
Sylvestre Ledru
805754b4f8
Merge pull request #7045 from cakebaker/bump_itertools
Bump `itertools` from `0.13.0` to `0.14.0`
2025-01-01 10:54:41 +01:00
Daniel Hofstetter
ac542966e7 deny.toml: add itertools to skip list 2025-01-01 09:27:22 +01:00
Daniel Hofstetter
1d2740c12a Bump itertools from 0.13.0 to 0.14.0 2025-01-01 09:25:14 +01:00
Daniel Hofstetter
7c7a6f89ab
Merge pull request #7016 from sylvestre/ls-mtime
ls: finish the plug of mtime
2025-01-01 08:25:05 +01:00
Sylvestre Ledru
958ac72113 ls: finish the plug of mtime
Will help with tests/ls/ls-time
2024-12-31 18:14:41 +01:00
Sylvestre Ledru
41ffffa2da
Merge pull request #7024 from jovielarue/fix-broken-docs-links
Fix: broken doc links
2024-12-31 16:58:18 +01:00
Daniel Hofstetter
2227330fe7
Merge pull request #7038 from sylvestre/ci
CI: test all features individually
2024-12-31 14:56:58 +01:00
Daniel Hofstetter
817f40a23f
Merge pull request #7041 from sylvestre/doc-failure-2
document two more failures
2024-12-31 14:43:41 +01:00
Sylvestre Ledru
24f4b9ca4f document two more failures 2024-12-31 14:41:20 +01:00
Daniel Hofstetter
b89c90656e
Merge pull request #7012 from sylvestre/doc-failure
Improve the GNU compat doc
2024-12-31 14:36:53 +01:00
Alexander Shirokov
4c330d43ba
uucore:format:fix floating-point rounding
This change resolves issues with exponent calculation and usage,
ensuring more accurate formatting:

- Exponent for negative values can differ from 0
- Switching to decimal mode now follows the P > X ≥ −4 rule
2024-12-31 13:19:43 +01:00
Sylvestre Ledru
e3de43a942 doc: extend the spell list 2024-12-31 12:26:05 +01:00
Sylvestre Ledru
049a1fbce8 doc: https://github.com/uutils/coreutils/pull/7009 is being worked on 2024-12-31 11:53:30 +01:00
Sylvestre Ledru
f14dff0dc9 doc: rm/fail-2eperm.sh has been fixed 2024-12-31 11:51:21 +01:00
Sylvestre Ledru
4677dd5b3a doc: seq/seq has been fixed
https://github.com/uutils/coreutils/pull/7032
2024-12-31 11:50:38 +01:00
Sylvestre Ledru
44073e7b23 doc: chmod/symlinks.sh is being worked on 2024-12-31 11:49:30 +01:00
Daniel Hofstetter
a3b7a08238
Merge pull request #7015 from sylvestre/chroot-user
chroot: handle the error when invalid user
2024-12-31 11:46:04 +01:00
Sylvestre Ledru
3760163b3f document the remaining failures/errors 2024-12-31 11:45:36 +01:00
Sylvestre Ledru
4e2246f4b8 why-skip.txt: remove a test that now passes 2024-12-31 11:44:14 +01:00
Sylvestre Ledru
d88dc3435b CI: test all features individually 2024-12-31 10:59:03 +01:00
Sylvestre Ledru
079f8d47d2
Merge pull request #7037 from cakebaker/chmod_add_perms_features
chmod: add uucore's `perms` feature to `Cargo.toml`
2024-12-31 10:48:19 +01:00
Daniel Hofstetter
4b68bce9a7 chmod: add uucore's "perms" feature to Cargo.toml 2024-12-31 10:11:44 +01:00
Sylvestre Ledru
ed9e80e488
Merge pull request #7032 from jfinkels/seq-fmt-errors
seq: improve error handling for invalid -f values
2024-12-31 09:33:16 +01:00
jovie :)
646fc394f6
env: don't allow '=' with -u (#7008)
* Added error handling to ensure '=' after -u returns 125 as '=' is not allowed

* Added tests for disallow = on short options

* Added error handling to ensure '=' after -u returns 125 as '=' is not allowed

* Added tests for disallow = on short options

* Disallow only short unset option from having '=' as its starting character

* Remove needless tests and update function name for clarity
2024-12-31 09:16:14 +01:00
Sylvestre Ledru
d81d893964
Merge pull request #7036 from jfinkels/head-too-many-negative-bytes
head: fix subtraction underflow with --bytes=-N
2024-12-31 08:58:48 +01:00
Jeffrey Finkelstein
c9acf5ddd4 head: fix subtraction underflow with --bytes=-N
Fix a subtraction underflow that occurred on `head --bytes=-N` when the
input had fewer than `N` bytes. Before this commit,

    printf "a" | head -c -2

would panic. After this commit, it terminates successfully with no
output as expected.
2024-12-30 21:07:45 -05:00