1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-19 03:31:06 +00:00
Commit graph

7464 commits

Author SHA1 Message Date
Sylvestre Ledru
d9ccbcdf18
Merge pull request #6778 from andrewliebenow/basenc-ignore-interrupted
basenc: ignore Interrupted errors
2024-12-04 21:56:18 +01:00
Sylvestre Ledru
18496735da
Merge pull request #6923 from sylvestre/more-terms
uucore: add alacritty to the list of terminals that support colors
2024-12-04 14:05:00 +01:00
Sylvestre Ledru
a644724137 uucore: add foot to the list of terminals that support colors 2024-12-04 13:25:24 +01:00
Sylvestre Ledru
de775caa9c alacritty: remove unused patch 2024-12-04 13:23:03 +01:00
Sylvestre Ledru
0780e26914
Revert "install: create destination file with safer modes before copy" 2024-12-04 11:08:28 +01:00
Daniel Hofstetter
d878f6c774
Merge pull request #6907 from sylvestre/tr2
tr: generate an error for real if the input is a directory
2024-12-04 10:20:08 +01:00
Andrew Liebenow
caf08dd279 basenc: ignore Interrupted errors
Mirror behavior of `std::io::Read`'s `read_to_end` function
([link][1]): continue reading when errors with kind
`std::io::ErrorKind::Interrupted` are encountered.

Also: clean up a few other things.

[1]: https://doc.rust-lang.org/std/io/trait.Read.html#method.read_to_end
2024-12-04 10:13:27 +01:00
Chen Chen
a5867bdf34 install: create destination file with safer modes before copy 2024-12-04 10:02:16 +01:00
andreistan26
5b087e9624
Fix cut when lines dont end with specified delim (#5844)
Print lines without delimiters only when they end with specified line terminator('\n' by default or `\0` if `-s`)

Signed-off-by: Andrei Stan <andreistan2003@gmail.com>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-12-04 00:04:55 +01:00
Sylvestre Ledru
17d4e4fde1
Merge pull request #6399 from tertsdiepraam/more-mem-usage
`more`: reduce memory usage a bit
2024-12-03 23:15:47 +01:00
Sylvestre Ledru
843c0c2c0f
Merge pull request #6119 from hamflx/fix/invalid-backup-numbered-path
mv: fix invalid numbered backup path
2024-12-03 23:13:39 +01:00
Anirban Halder
a16630fded
rm: fix the usage of '/..' '/.' with -rf options
fix the test tests/rm/r-4

---------

Co-authored-by: Julian Beltz <MJayBeltz@gmail.com>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-12-03 22:51:03 +01:00
Sylvestre Ledru
c1f82b158c fix rustfmt+clippy 2024-12-03 22:45:00 +01:00
Sylvestre Ledru
3e4221a461 tr: generate an error for real if the input is a directory 2024-12-03 21:38:28 +01:00
Sylvestre Ledru
763306ccc1
Merge pull request #6840 from jesseschalken/reuse-metadata-instead-of-path-is-dir
du: Reuse existing metadata instead of calling path.is_dir() again
2024-12-02 20:41:35 +01:00
Sylvestre Ledru
9877085702
Revert "mv: show "same file" error for mv d/f d" 2024-12-02 20:39:39 +01:00
Sylvestre Ledru
527bb6fad8
Merge pull request #5788 from cakebaker/mv_same_file
mv: show "same file" error for `mv d/f d`
2024-12-02 20:37:41 +01:00
Julian
2799b288e3
tail: fix issue #6543 (--pid when reading from stdin) (#6582)
---------

Co-authored-by: just-an-engineer <Julian.Beltz@zetier.com>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-12-02 19:04:36 +01:00
Christian Legnitto
2d81463399
Make EscapedChar and friends pub 2024-12-02 10:50:48 -04:00
Daniel Hofstetter
2e4b7c8cb7 mv: show "same file" error for "mv d/f d" 2024-12-02 10:27:10 +01:00
hamflx
6b32c30d57 mv: fix invalid numbered backup path 2024-12-02 10:22:55 +01:00
Terts Diepraam
b2510feb46 clean up use of u16s and patterns 2024-12-02 10:10:57 +01:00
Terts Diepraam
2fef5be8f7 more: reduce memory usage a bit 2024-12-02 10:10:57 +01:00
Simone Ragusa
f0b7d322d1 dircolors: patch test fixture to include alacritty support 2024-12-02 10:03:52 +01:00
Simone Ragusa
4f422c1a3a uucore: add alacritty to the list of terminals that support colors
Any value of TERM with glob pattern `alacritty*` will be matched.

Fixes #6722
2024-12-02 10:03:52 +01:00
Jesse Schalken
6487347bc6 Reuse existing metadata instead of calling path.is_dir() again 2024-12-02 10:01:38 +01:00
Sylvestre Ledru
9dec29f613
Merge pull request #6891 from cakebaker/uucore_perms_fix_todo
uucore/perms: use ORs instead of `match` (fix todo)
2024-12-02 10:01:10 +01:00
Daniel Hofstetter
6a7c0112cb
Merge pull request #6853 from sylvestre/comm
comm: generate an error if the input is a directory
2024-11-30 10:55:14 +01:00
Sylvestre Ledru
2ad3c45230
tr: generate an error if the input is a directory (#6855)
* tr: generate an error if the input is a directory

tested by tests/misc/read-errors

* tr: improve the test

* tr: take the commentinto account
2024-11-30 10:38:46 +01:00
Sylvestre Ledru
0cae322dfa comm: generate an error if the input is a directory
tested by tests/misc/read-errors
2024-11-30 10:26:34 +01:00
Sylvestre Ledru
37fb0a02f8
Merge pull request #6899 from cakebaker/clippy_fix_needless_lifetimes
uudoc,chcon: fix `needless_lifetimes` warnings
2024-11-30 09:46:10 +01:00
Daniel Hofstetter
865da0caad uudoc,chcon: fix needless_lifetimes warnings 2024-11-29 10:47:14 +01:00
Sylvestre Ledru
95bd50e09a du: deduplicate the input
Should fix:
tests/du/hard-link.sh
2024-11-29 10:26:27 +01:00
Sylvestre Ledru
ffbc682b92
Use the other comment syntax as it is not related
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-11-29 09:19:30 +01:00
Sylvestre Ledru
41a3695b3f uucore: Fix a clippy warning
The following explicit lifetimes could be elided: 'a
2024-11-28 19:25:17 +01:00
Sylvestre Ledru
4d3902426a clippy: fix unneeded 'return' statement 2024-11-28 19:24:36 +01:00
Sylvestre Ledru
cfb0b95b62 clippy: fix 'empty line after doc comment' 2024-11-28 19:24:33 +01:00
Sylvestre Ledru
29de3ee43c run rustfmt on src/uu/shuf/src/shuf.rs 2024-11-28 19:18:15 +01:00
Peng Zijun
75de5a0613
tr: Add ambiguous octal escape warning (#6886)
* tr: Add ambiguous octal escape warning, issue #6821

* tr: Make code cleaner
2024-11-28 09:14:16 +01:00
Daniel Hofstetter
8692533790 uucore/perms: use ORs instead of match (fix todo) 2024-11-26 15:32:53 +01:00
Dorian Péron
cfc66f9f6f chore(checksum): fix clippy warnings in tests 2024-11-26 01:47:10 +01:00
Dorian Péron
ba7c02860e feat(checksum): odd number of hexa characters is wrong formatting 2024-11-26 01:47:10 +01:00
Dorian Péron
7c4724edc3 feat(checksum): refactor ChecksumResult to include more counters in it
- Add comments to explain what each field is counting
2024-11-26 01:47:10 +01:00
Dorian Péron
a0af49f2d8 feat(checksum): get rid of the properly_formatted variable 2024-11-26 01:47:10 +01:00
Dorian Péron
f3763ef190 feat(checksum): simplify get_expected_checksum
- Rename the function to emphasize its goal
- Do not pass the filename anymore, as it is only used to create an error, that may be done in the scope calling the function
- Change the return type to Option, as the error is made in the outer scope
- Don't try to decode the base64 string as UTF8 string. This most oftenly fails and is wrong.
- Get rid of the `bytes_to_hex` function, as it provides the same functionality as `hex::encode`
2024-11-26 01:47:10 +01:00
Dorian Péron
a3b7403550 feat(checksum): improve FileCheckError variants to be meaningful 2024-11-26 01:47:10 +01:00
Daniel Hofstetter
cc3353ed7a Bump cpp & cpp_build from 0.5.9 to 0.5.10 2024-11-25 09:03:26 +01:00
Daniel Hofstetter
881044aef0
Merge pull request #6861 from sylvestre/dup-source
mv: fix the output of an error message
2024-11-21 16:26:33 +01:00
Daniel Hofstetter
e37d2f2a2b
Merge pull request #6878 from sylvestre/du
du: fix the display with --inodes
2024-11-21 10:42:48 +01:00
Sylvestre Ledru
1b2778b819 du: fix the size display with --inodes 2024-11-20 16:13:54 -05:00