1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-15 09:41:07 +00:00
Commit graph

13837 commits

Author SHA1 Message Date
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
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
Jeffrey Finkelstein
cccab35337 seq: improve error handling for invalid -f values
Improve the error message produced by `seq` when given invalid format
specifiers for the `-f` option. Before this commit:

    $ seq -f "%" 1
    seq: %: invalid conversion specification
    $ seq -f "%g%" 1
    seq: %: invalid conversion specification

After this commit:

    $ seq -f "%" 1
    seq: format '%' ends in %
    $ seq -f "%g%" 1
    seq: format '%g%' has too many % directives

This matches the behavior of GNU `seq`.
2024-12-30 12:30:26 -05:00
Daniel Hofstetter
00d1866060
Merge pull request #7013 from sylvestre/2eperm
GNU: try to remove the fail-2eperm.sh workaround
2024-12-30 09:41:14 +01:00
Daniel Hofstetter
dddbc17c59
Merge pull request #7017 from sylvestre/chmod-L
ch*: Remove duplicate declarations + start to plug it to chmod too
2024-12-29 17:03:13 +01:00
Sylvestre Ledru
438c3c93b2
Merge pull request #6965 from DaringCuteSeal/install-stream
install: implement copying from streams
2024-12-29 16:42:24 +01:00
Sylvestre Ledru
29694212dd refactor: simplify the code by using the clap function instead 2024-12-29 16:36:14 +01:00
Sylvestre Ledru
e45c56b926 ch*: also remove duplications for deref & no deref 2024-12-29 16:32:59 +01:00
Sylvestre Ledru
6de5aa7ac7 ch*: improve the presentation 2024-12-29 16:32:59 +01:00
Sylvestre Ledru
836351dd7a ch*: refactor duplicate declarations 2024-12-29 16:32:59 +01:00
Sylvestre Ledru
954117fc95
Merge pull request #7022 from cakebaker/rm_remove_outdated_comment
rm: remove outdated comment
2024-12-29 15:54:43 +01:00
Daniel Hofstetter
5577165c77 rm: remove outdated comment 2024-12-29 14:51:01 +01:00
Daringcuteseal
a45731eed8
uucore/buf_copy: delete empty doc-string 2024-12-29 20:10:53 +07:00
Elden
80ed8d514a
rm: Remove an unecessary open call (#7010)
it was causing some sandbox issues
and it seems that isn't necessary after all
2024-12-29 13:14:35 +01:00
Sylvestre Ledru
746a17352d
Merge pull request #6932 from RenjiSann/clippy-fix
Fix clippy warnings
2024-12-29 10:46:42 +01:00
Daniel Hofstetter
2ed3de387b
Merge pull request #7019 from uutils/renovate/davidanson-markdownlint-cli2-action-19.x
chore(deps): update davidanson/markdownlint-cli2-action action to v19
2024-12-29 10:40:07 +01:00
Sylvestre Ledru
48eb8d8703
Add procps to the spell ignore list 2024-12-29 10:20:34 +01:00
Daniel Hofstetter
d7460af23a
Merge pull request #7014 from uutils/renovate/vmactions-freebsd-vm-1.x
chore(deps): update vmactions/freebsd-vm action to v1.1.7
2024-12-29 10:19:37 +01:00
Daniel Hofstetter
5e6f791721
Merge pull request #7018 from uutils/renovate/glob-0.x-lockfile
chore(deps): update rust crate glob to v0.3.2
2024-12-29 10:16:58 +01:00
Dorian Peron
e8141d3360 Add --tests to CICD clippy call 2024-12-29 04:40:07 +01:00
Dorian Péron
50271381c4 fix cargo-deny-action job 2024-12-29 04:40:07 +01:00
Dorian Péron
0a0db41a2c chore(clippy): fix clippy warnings 2024-12-29 04:40:07 +01:00
renovate[bot]
13eb4792c8
chore(deps): update davidanson/markdownlint-cli2-action action to v19 2024-12-29 02:17:50 +00:00
renovate[bot]
fa2bf49229
chore(deps): update rust crate glob to v0.3.2 2024-12-29 02:17:45 +00:00
Daringcuteseal
e07cc67b30
tests/install: add tests to install from stdin 2024-12-29 07:17:41 +07:00
Daringcuteseal
200e4b1032
install: implement copying from streams 2024-12-29 07:17:39 +07:00
renovate[bot]
19da02117d
chore(deps): update vmactions/freebsd-vm action to v1.1.7 2024-12-28 21:12:38 +00:00
Sylvestre Ledru
254f762e86 GNU: try to remove the fail-2eperm.sh workaround
Now fails with:
2024-12-28T14:55:18.9355074Z -rm: cannot remove 'a': Operation not permitted
2024-12-28T14:55:18.9355364Z +rm: cannot remove 'a/b': Operation not permitted
2024-12-28 21:53:12 +01:00
Pearl
edf8be5e08
uucore/buf_copy: Improve the uucore integration (#6983)
---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-12-28 15:30:10 +01:00
Sylvestre Ledru
067b2964c6
Merge pull request #6993 from jtracey/wc-fixes
wc: fix escaping
2024-12-28 12:52:12 +01:00
Sylvestre Ledru
bae4756302
Merge pull request #6585 from sylvestre/fuzz-cksum2
fuzzing: add a new fuzzer for cksum
2024-12-28 12:36:05 +01:00
Sylvestre Ledru
0d83c440e3
Merge branch 'main' into fuzz-cksum2 2024-12-28 12:13:35 +01:00
Daniel Hofstetter
0560e9779b
Merge pull request #7007 from uutils/renovate/serde-monorepo
chore(deps): update rust crate serde to v1.0.217
2024-12-28 07:00:25 +01:00
renovate[bot]
02f1f50ccb
chore(deps): update rust crate serde to v1.0.217 2024-12-27 21:07:48 +00:00
Sylvestre Ledru
6f678269ab
Merge pull request #7006 from cakebaker/csplit_fix_invalid_pattern
csplit: allow offset without sign in pattern
2024-12-27 17:59:55 +01:00
Justin Tracey
ff8a31e835
wc: fix escaping
GNU wc only escapes file names with newlines in them.
2024-12-27 11:37:16 -05:00
Daniel Hofstetter
f62b8d7975 csplit: allow offset without sign in pattern 2024-12-27 16:08:48 +01:00
Sylvestre Ledru
4809ece4f1
Merge pull request #6996 from cakebaker/cut_newline_as_delimiter
cut: fix handling of newline as delimiter
2024-12-27 09:45:07 +01:00
Daniel Hofstetter
20dfb27057 cut: fix handling of newline as delimiter 2024-12-27 09:12:47 +01:00
Daniel Hofstetter
6478f68c5a
Merge pull request #7003 from sylvestre/use-func
cp: use the function from uucore
2024-12-27 08:34:30 +01:00
Solomon
98c9be5ec4
mv: improve move-to-self error handling (#6995)
- improve move-to-self detection, so this errors without data loss:

```diff
 mkdir mydir
 mv mydir mydir/subdir
-mv: No such file or directory (os error 2)
+mv: cannot move 'mydir' to a subdirectory of itself, 'mydir/subdir'
```

- align "cannot move source to a subdirectory of itself" and "same file"
  errors more closely with coreutils:

```diff
 mkdir mydir
 mv mydir/ mydir/..
-mv: cannot move 'mydir/' to a subdirectory of itself, 'mydir/../mydir/'
+mv: 'mydir/' and 'mydir/../mydir' are the same file
```

Causing: https://github.com/nushell/nushell/issues/13082
2024-12-26 20:48:29 +01:00
Sylvestre Ledru
2deeb7882c xattr feature: enable it on mac too 2024-12-26 17:25:12 +01:00
Sylvestre Ledru
1180905b5e cp: use the function from uucore 2024-12-26 17:08:16 +01:00
Sylvestre Ledru
b4cdc36573
Merge pull request #6997 from cakebaker/echo_handle_double_hyphen
echo: handle double hyphens
2024-12-26 12:19:07 +01:00