Commit graph

13685 commits

Author SHA1 Message Date
Daringcuteseal
41f52f3402
mkdir: allow --parent to be provided more than once 2024-10-31 04:49:44 +07:00
Sylvestre Ledru
bf6de81a1f
Merge pull request #6806 from Ecordonnier/eco/signal-handler
uucore: disable default signal-handlers added by Rust
2024-10-30 08:36:01 +01:00
Sylvestre Ledru
566bca34ad
Merge pull request #6779 from andrewliebenow/tr-multibyte-octal-sequences
tr: correctly handle multibyte octal sequences
2024-10-30 08:35:38 +01:00
Daniel Hofstetter
654581ac77
Merge pull request #6830 from uutils/renovate/serde-monorepo
chore(deps): update rust crate serde to v1.0.214
2024-10-29 07:00:07 +01:00
renovate[bot]
8815e013ef
chore(deps): update rust crate serde to v1.0.214 2024-10-28 19:05:04 +00:00
Daniel Hofstetter
4a14be4f37
Merge pull request #6829 from uutils/renovate/bigdecimal-0.x-lockfile
chore(deps): update rust crate bigdecimal to v0.4.6
2024-10-28 09:02:41 +01:00
renovate[bot]
c92768c26c
chore(deps): update rust crate bigdecimal to v0.4.6 2024-10-28 07:33:57 +00:00
mhead
4d5bf4205f cp: skip duplicate source check when --backup is given 2024-10-27 14:18:20 +05:30
mhead
74cd797c8a cp: normalize path when checking for duplicate source 2024-10-26 12:09:38 +05:30
Etienne Cordonnier
8ab99d4bfe test(sleep): add test for signal handling 2024-10-25 16:47:40 +02:00
Etienne Cordonnier
b68eb04b8b uucore: disable default signal-handlers added by Rust
Fixes https://github.com/uutils/coreutils/issues/6759

Test procedure (verifies that a single SIGSEGV stops a program):
```
ecordonnier@lj8k2dq3:~/dev/coreutils$ ./target/release/coreutils sleep 100 &
[1] 4175464
ecordonnier@lj8k2dq3:~/dev/coreutils$ kill -11 $(pidof coreutils)
ecordonnier@lj8k2dq3:~/dev/coreutils$
[1]+  Segmentation fault      (core dumped) ./target/release/coreutils sleep 100
```
2024-10-25 16:47:40 +02:00
Andrew Liebenow
186d749e94 Replace commented-out code with TODO comments 2024-10-24 13:12:38 -05:00
Daniel Hofstetter
971da040b5
Merge pull request #6818 from uutils/renovate/regex-1.x-lockfile
chore(deps): update rust crate regex to v1.11.1
2024-10-24 17:34:23 +02:00
renovate[bot]
9424a2dea8
chore(deps): update rust crate regex to v1.11.1 2024-10-24 15:06:34 +00:00
Daniel Hofstetter
cb8711fdfb
Merge pull request #6793 from RenjiSann/checksum-utf8
cksum/hashsum: Support for non-UTF-8 input in checksum files
2024-10-24 14:58:35 +02:00
Dorian Péron
6030ad9bc9 test(cksum): add tests for non-utf-8 handling in checksum files 2024-10-24 11:43:52 +02:00
Dorian Péron
99cddd16f1 uucore(checksum): fix non-utf-8 filename printing 2024-10-24 11:43:52 +02:00
Dorian Péron
8490461d67 uucore(checksum): handle non-utf-8 text in checksum files 2024-10-24 11:43:52 +02:00
Dorian Péron
1c41a12fb5 test(cksum): add test for trailing spaces making an error 2024-10-24 11:43:52 +02:00
Dorian Péron
97b81a6685 uucore(checksum): determine regex from full line, not trimmed
The full line will be matched against the selected regex anyway
2024-10-24 11:41:54 +02:00
Dorian Péron
3031874d22 uucore(lib): add u8/OsString conversion utils 2024-10-24 11:41:54 +02:00
Daniel Hofstetter
5bc7d67274
Merge pull request #6816 from uutils/sylvestre-patch-3
intermittent: timeout changed directory
2024-10-24 10:49:06 +02:00
Sylvestre Ledru
e28d0f064b
intermittent: timeout changed directory 2024-10-24 10:21:52 +02:00
Sylvestre Ledru
c9f8ef50d3
Merge pull request #6815 from RenjiSann/cksum-zero
cksum: Implement -z/--zero
2024-10-24 08:29:34 +02:00
Dorian Péron
e9cf31451e test(cksum): add tests for -z/--zero 2024-10-24 00:29:45 +02:00
Dorian Péron
0b31e43fac cksum: implement --zero flag with newline/NUL replacement 2024-10-24 00:26:05 +02:00
Terts Diepraam
6850be2539
Merge pull request #6810 from cakebaker/echo_remove_double_negation
echo: remove double negation
2024-10-23 10:24:26 +02:00
Daniel Hofstetter
7de3700efe
Merge pull request #6813 from uutils/renovate/thiserror-1.x-lockfile
chore(deps): update rust crate thiserror to v1.0.65
2024-10-23 07:18:48 +02:00
Daniel Hofstetter
4e7b593afc
Merge pull request #6814 from uutils/renovate/proc-macro2-1.x-lockfile
fix(deps): update rust crate proc-macro2 to v1.0.89
2024-10-23 07:17:56 +02:00
Daniel Hofstetter
e72c779c14
Merge pull request #6811 from uutils/renovate/serde-monorepo
chore(deps): update rust crate serde to v1.0.213
2024-10-23 07:15:23 +02:00
Sylvestre Ledru
0ef5b75248
Merge pull request #6808 from Pistonight/hashsum_windows
hashsum: Windows: check in binary mode by default and allow --binary/--text
2024-10-22 21:38:36 +02:00
renovate[bot]
2d750e7ea5
fix(deps): update rust crate proc-macro2 to v1.0.89 2024-10-22 19:24:43 +00:00
renovate[bot]
90f2ad522a
chore(deps): update rust crate thiserror to v1.0.65 2024-10-22 19:24:36 +00:00
renovate[bot]
ab2f5d2ee1
chore(deps): update rust crate serde to v1.0.213 2024-10-22 19:24:31 +00:00
Pistonight
ca6d0eda3d hashsum: Windows: check in binary mode by default and allow --binary/--text whcn checking 2024-10-22 11:55:49 -07:00
Daniel Hofstetter
c4160f2dd7
Merge pull request #6801 from Luv-Ray/cksum_error_handling
cksum: fix error handling
2024-10-22 16:35:36 +02:00
Daniel Hofstetter
13df9e2f30 echo: remove double negation 2024-10-22 15:04:16 +02:00
Daniel Hofstetter
b0fa702e90 echo: remove unnecessary no_stderr() call in test 2024-10-22 14:32:20 +02:00
Luv-Ray
d5cc3dd8ee cksum: fix error handling 2024-10-22 20:20:18 +08:00
Andrew Liebenow
66f11c4ce4
echo: handle multibyte escape sequences (#6803)
* echo: handle multibyte escape sequences

Bug was reported, with root cause analysis, by kkew3
Added tests were derived from test cases provided by kkew3
See https://github.com/uutils/coreutils/issues/6741

* Use concrete type

* Fix MSRV issue

* Fix non-UTF-8 argument handling

* Fix MSRV issue

* Fix Clippy violation

* Fix compiler warning

* Address PR comments

* Add MSRV TODO comments

* echo: use stdout_only_bytes instead of stdout_is_bytes

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-10-22 11:03:08 +02:00
Daniel Hofstetter
99fa11ac5c
Merge pull request #6809 from uutils/renovate/serde-monorepo
chore(deps): update rust crate serde to v1.0.211
2024-10-22 09:59:19 +02:00
renovate[bot]
77d329018e
chore(deps): update rust crate serde to v1.0.211 2024-10-22 07:31:33 +00:00
Sylvestre Ledru
8e6bf6aa4a
Merge pull request #6807 from andrewliebenow/printf-fix-arguments-in-help
printf: remove unused argument name from help
2024-10-21 23:32:38 +02:00
Andrew Liebenow
d70990e0cc printf: remove unused argument name from help
printf --help is currently listing three usage forms:

```
Usage: coreutils printf FORMATSTRING [ARGUMENT]...
       coreutils printf FORMAT [ARGUMENT]...
       coreutils printf OPTION
```

But there are only two usage forms, since there is no difference
between "FORMAT" and "FORMATSTRING".

Remove references to "FORMATSTRING", and use "FORMAT" in all places
where "FORMATSTRING" appeared, since other implementations of
`printf` use the argument name "FORMAT".
2024-10-21 10:36:31 -05:00
Sylvestre Ledru
3f694faa2e
Merge pull request #6802 from andrewliebenow/mkdir-empty-argument-fix
mkdir: emit error when path is empty
2024-10-20 18:44:33 +02:00
Andrew Liebenow
80b63931a4 mkdir: emit error when path is empty 2024-10-20 10:45:46 -05:00
Sylvestre Ledru
5b881a0766
Merge pull request #6790 from sgvictorino/require-mkdir-rmdir-args
mkdir/rmdir: require arguments
2024-10-20 17:15:25 +02:00
Sylvestre Ledru
7589db53c1
Merge pull request #6795 from andrewliebenow/fuzz-compare-against-lc-all-c
fuzz: run GNU Core Utilities with LC_ALL=C
2024-10-20 17:14:55 +02:00
Sylvestre Ledru
9a6f5521b9
Merge pull request #5968 from anastygnome/tsort
tsort refactoring proposal
2024-10-19 21:01:46 +02:00
Sylvestre Ledru
c125a94290
Merge pull request #6800 from andrewliebenow/documentation-fix-crate-name
documentation: fix crate name in README
2024-10-19 19:28:13 +02:00