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
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
jovielarue
cd8bebe703 Disable top-level heading warning MD041 for new files 2024-12-30 08:45:22 -07: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
jovielarue
89d79753b1 Update uudoc to include development and code of conduct in SUMMARY and fix links in book 2024-12-29 13:02:35 -07: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
Justin Tracey
3a41272174
CICD: test risky names on *-unknown-linux-gnu
Linux + GNU is the OS + userspace least likely to run into issues with such
names, both now and in the future.
2024-12-28 22:27:34 -05:00
Justin Tracey
b0837a0ca5
ls: add better support for non-UTF-8 bytes 2024-12-28 22:27:22 -05: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
Sylvestre Ledru
7d628c65d3 chroot: handle the error when invalid user
Currently fails with:
```
2024-12-28T14:55:18.9330231Z thread 'main' panicked at src/uu/chroot/src/chroot.rs:284:46:
2024-12-28T14:55:18.9330718Z called `Result::unwrap()` on an `Err` value: Custom { kind: NotFound, error: "Not found: nobody:+65535" }
2024-12-28T14:55:18.9331305Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
2024-12-28 22:29:27 +01: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
Sylvestre Ledru
958320e043
Merge pull request #7000 from cakebaker/csplit_add_support_for_q
csplit: add support for `-q`
2024-12-26 10:20:08 +01:00
Daniel Hofstetter
db37c316af csplit: add support for -q 2024-12-26 09:40:55 +01:00
Daniel Hofstetter
b9742067fe
Merge pull request #6999 from uutils/renovate/quote-1.x-lockfile
fix(deps): update rust crate quote to v1.0.38
2024-12-26 08:56:06 +01:00