1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-18 19:21:09 +00:00
Commit graph

5382 commits

Author SHA1 Message Date
Sylvestre Ledru
9932aec085 prepare version 0.0.28 2024-11-03 20:59:42 +01:00
Daniel Hofstetter
27fc9f614f
Merge pull request #6837 from matrixhead/dup-source
mv: gnu test `dup-src` compatibilty
2024-11-01 09:34:43 +01:00
mhead
2c528cfcb5 mv: fix error message when one of the multiple src doesn't exist 2024-11-01 13:35:47 +05:30
Daniel Hofstetter
d1f2534811
Merge pull request #6825 from matrixhead/dup-source
cp: normalize path when checking for duplicate source
2024-10-31 11:26:35 +01:00
mhead
ff586b47d4 cp: Duplicate source error message specify the type of file. 2024-10-31 11:49:29 +05:30
Daringcuteseal
41f52f3402
mkdir: allow --parent to be provided more than once 2024-10-31 04:49:44 +07: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
Andrew Liebenow
186d749e94 Replace commented-out code with TODO comments 2024-10-24 13:12:38 -05: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
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
13df9e2f30 echo: remove double negation 2024-10-22 15:04:16 +02: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
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
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
Tom D.
66c3efa0b7
doc(tsort): Add benchmarking documentation 2024-10-19 15:08:06 +02:00
Tom D.
c3b28bf6c7 refactor(tsort): Switch to Knuth algorithm T
This commit is a complete rewrite of the tsort util, resulting in a x10 performance improvement
BREAKING CHANGE: the order is no longer the same as gnu tsort in some fringe cases.
2024-10-19 12:07:25 +02:00
Solomon Victorino
fe234164f4 rmdir: require argument 2024-10-18 08:30:18 +02:00
Solomon Victorino
6ad07a4fb3 mkdir: require argument 2024-10-18 08:30:18 +02:00
Andrey Turkin
b7819c0731 Get rid of redox-specific code
All of the specific functions are covered by relibc
2024-10-17 17:14:42 +03:00
Luv-Ray
85b0ef132b
cp: fix symlink-overwrite error-priority (#6586) 2024-10-16 08:55:43 +02:00
Szabó Attila
1781c3e07d cp: fix possible OOM and partial write with large files 2024-10-15 21:24:47 +02:00
Dorian Péron
3c5a419537 ls: Escape dirname in recursive mode when it has a colon 2024-10-15 11:11:23 +02:00
Andrew Liebenow
e53dd5ffe1 tr: forbid non-numeric repeat counts 2024-10-12 03:44:46 -05:00
Andrew Liebenow
0bf5a68c54 tr: forbid backwards ranges 2024-10-12 01:40:05 -05:00
Andrew Liebenow
a696e609eb tr: correctly handle multibyte octal sequences 2024-10-12 00:53:54 -05:00
Andrew Liebenow
c41c601b45
paste: permit the delimiter list to be empty (#6714)
* paste: permit the delimiter list to be empty

Also: refactored the delimiter processing logic

* Extract duplicated code into function

* Address PR comments. Improve code structure.

* Fix additional paste bugs

* Fix additional paste bugs

* Simplify backslash delimiter validation

* Fix Clippy violations
2024-10-10 15:36:30 +02:00
Justin Tracey
7c3a9380f1 join: avoid extra allocations when using -i 2024-10-09 19:58:55 +02:00
Laurent Cheylus
c7cce2df37
users: fix lint error manual_unwrap_or_default on OpenBSD
Fix uutils/coreutils#6771

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-10-07 17:32:35 +02:00
Justin Tracey
a51a731704
join: add support for multibyte separators (#6736)
* join: add test for multibyte separators

* join: implement support for multibyte separators

* join: use a trait instead of an enum for separator

* join: test whitespace merging
2024-10-06 11:48:08 +02:00
GiM
d8eb4e2214
cat: fix #5186 by adding explicit flush. (#5256)
* fix #5186 by adding explicit flush.
* make test machine-independent

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-10-06 11:31:31 +02:00
Andrew Liebenow
32e1c54c78 Fix "coreutils manpage base64" bug 2024-10-05 08:17:10 -05:00
Andrew Liebenow
9fa405fad6 Update BENCHMARKING.md per PR comment 2024-09-27 11:35:44 -05:00
Andrew Liebenow
360ed8fbd5 Add BENCHMARKING.md 2024-09-26 20:16:16 -05:00
Andrew Liebenow
2c25ae2838 Fix spelling exception comment 2024-09-24 19:56:50 -05:00
Andrew Liebenow
70c3f49430 Add spelling exception 2024-09-24 19:37:43 -05:00
Andrew Liebenow
ea7a543bfe Fix two bugs. Add property testing. 2024-09-24 19:25:29 -05:00
Andrew Liebenow
4f19c0e9ff Address PR comments. Simplify structure. 2024-09-24 07:49:28 -05:00
Andrew Liebenow
ccb873519c Improve performance 2024-09-22 20:30:15 -05:00
Andrew Liebenow
2d09037c67 Fix MSRV issue 2024-09-22 08:36:16 -05:00
Andrew Liebenow
cdebd24733 Finish fast decode/encode by folding in Z85 2024-09-22 08:28:20 -05:00
Andrew Liebenow
5cd050665d Get number of bytes to drain in a safer way 2024-09-21 10:31:43 -05:00
Andrew Liebenow
8a6923dcd4 Fix line wrapping encoding performance 2024-09-21 09:35:20 -05:00
Andrew Liebenow
ed04f14ba8 basenc: also perform faster, streaming decoding
Same as previous changes, just applied to decoding
2024-09-21 04:02:09 -05:00
Andrew Liebenow
4d71c10279 Replace truncate with clear 2024-09-20 17:09:47 -05:00
Andrew Liebenow
167586f6fb Fix compilation error and spelling warning 2024-09-20 15:40:22 -05:00
Andrew Liebenow
846cf06272 basenc: perform faster, streaming encoding
Improve the performance, both in memory and time, of the encoding
performed by the basenc (except in --z85 mode), base32, and base64
programs.

These programs now perform encoding in a buffered/streaming manner,
so encoding is not constrained by the amount of available memory.
2024-09-20 14:34:18 -05:00
Sylvestre Ledru
50f99580b4
Merge pull request #6761 from cakebaker/users_use_option_instead_of_vec
users: use `Option` instead of `Vec` for file arg
2024-10-03 08:50:29 +02:00