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
Dorian Péron
ed15ca1d26 checksum: keep a cache of the first used regex for non-algo-based regexes 2024-12-10 13:09:04 +01:00
Sylvestre Ledru
c60203ddd3
stat: improve GNU compatibility (#6933)
* stat: fix the quotes when dealing with %N

and other formats
should fix
tests/stat/stat-fmt.sh

* stats: use an enum instead of a string

* stats: split the functions into smaller functions

* stat: handle byte as a format for better display

* stat: handle error better. should make tests/stat/stat-printf.pl pass

* stat: Some escape sequences are non-standard

* Fix tests

* Take comments into account
2024-12-10 08:48:52 +01:00
Sylvestre Ledru
22f3358d47
Merge pull request #6946 from LegNeato/patch-1
Make `Spec` public
2024-12-10 07:29:39 +01:00
Christian Legnitto
2ca7c28cd9
Make Spec public 2024-12-09 22:01:36 -04:00
Daniel Hofstetter
2a9e7c937a
Merge pull request #6906 from sylvestre/base-wrap
base32/base64: handle two corner cases
2024-12-09 13:55:15 +01:00
Daniel Hofstetter
09e65ee9ba
Merge pull request #6942 from uutils/renovate/chrono-0.x-lockfile
chore(deps): update rust crate chrono to v0.4.39
2024-12-09 13:32:51 +01:00
Daniel Hofstetter
da56a4d18e
Merge pull request #6943 from uutils/renovate/libc-0.x-lockfile
fix(deps): update rust crate libc to v0.2.168
2024-12-09 13:29:39 +01:00
renovate[bot]
3211e43caa
fix(deps): update rust crate libc to v0.2.168 2024-12-09 11:51:47 +00:00
renovate[bot]
cf355591b9
chore(deps): update rust crate chrono to v0.4.39 2024-12-09 11:51:39 +00:00
Sylvestre Ledru
bc1bbf3e50
Merge pull request #6936 from alexs-sh/fix-mv-issue-6727
fix(mv): don't panic if apply_xattrs fails
2024-12-09 09:41:24 +01:00
Sylvestre Ledru
24ffe4703d
Merge pull request #6904 from cakebaker/bump_unicode_width
Bump `unicode-width`, adapt test and fixtures
2024-12-09 09:40:32 +01:00
Daniel Hofstetter
2a406d8cbb sort: adapt fixtures to change in unicode-width 2024-12-09 09:20:19 +01:00
Daniel Hofstetter
ec67d22123 more: adapt test to change in unicode-width 2024-12-09 09:20:19 +01:00
Daniel Hofstetter
46d5d638fe Bump unicode-width from 0.1.12 to 0.2.0 2024-12-09 09:20:15 +01:00
Daniel Hofstetter
235ea26fbb
Merge pull request #6941 from uutils/renovate/bigdecimal-0.x-lockfile
chore(deps): update rust crate bigdecimal to v0.4.7
2024-12-09 07:09:39 +01:00
Daniel Hofstetter
aa397fc491
Merge pull request #6940 from uutils/renovate/thiserror-2.x-lockfile
chore(deps): update rust crate thiserror to v2.0.6
2024-12-09 07:07:50 +01:00
renovate[bot]
85bd072655
chore(deps): update rust crate bigdecimal to v0.4.7 2024-12-09 02:20:54 +00:00
renovate[bot]
bd294ddd10
chore(deps): update rust crate thiserror to v2.0.6 2024-12-08 21:59:45 +00:00
Daniel Hofstetter
0f5a368e6c
Merge pull request #6939 from uutils/renovate/thiserror-2.x-lockfile
chore(deps): update rust crate thiserror to v2.0.5
2024-12-08 10:31:58 +01:00
renovate[bot]
7708d22ece
chore(deps): update rust crate thiserror to v2.0.5 2024-12-07 18:52:15 +00:00
Sylvestre Ledru
e6a85290c9
Merge pull request #6937 from cakebaker/seq_simplify_tests
tests/seq: use `stdout_only()` to remove `no_stderr()`
2024-12-07 18:07:05 +01:00
Daniel Hofstetter
1f6f7fbe8c tests/seq: fix ticket references of ignored tests 2024-12-07 17:04:05 +01:00
Daniel Hofstetter
e654645974 tests/seq: use stdout_only() to remove no_stderr() 2024-12-07 16:59:13 +01:00
aimerlief
367cc19d45
fix(seq): handle 0e... scientific notation without padding (#6934)
* fix(seq): handle 0e... scientific notation without padding

- Updated the parse_exponent_no_decimal function to treat 0e... as zero.
- Added test cases to verify correct behavior for 0e15 and -w 0e15.

Fix: #6926

* fix(seq): improved parse for accurate BigDecimal handling

* apply missing cargo fmt formatting adjustments
2024-12-07 16:42:34 +01:00
Alexander Shirokov
4e79a01513
fix(mv): don't panic if apply_xattrs fails
This commit fixes issue #6727 by returning the error status instead of
causing a panic. It aligns with the original GNU mv more closely.
2024-12-07 15:25:45 +01:00
Daniel Hofstetter
f7c38a3079
Merge pull request #6928 from artP2/scientific-notation-uppercase-E
seq: handle scientific notation with uppercase 'E'
2024-12-07 14:55:28 +01:00
Arthur Pin
88e10478bc tests/seq: test scientific notation with uppercase 'E' 2024-12-06 18:00:39 -03:00
Dorian Péron
5cbe87620c checksum: move regex detection to the line level 2024-12-06 21:28:56 +01:00
Arthur Pin
76dfcd82fa seq: handle scientific notation with uppercase 'E' 2024-12-06 15:58:40 -03:00
Daniel Hofstetter
c8bcdb9267
Merge pull request #6927 from uutils/renovate/self_cell-1.x-lockfile
chore(deps): update rust crate self_cell to v1.1.0
2024-12-06 09:29:12 +01:00
renovate[bot]
094cab046c
chore(deps): update rust crate self_cell to v1.1.0 2024-12-05 17:29:52 +00:00
Sylvestre Ledru
93dfc933bd base32/base64: handle two corner cases
* no padding
* --wrap 0

+ remove property_tests.rs, we don't need such tests as the
code is already tests by test_base* (+ it is too dependant
on the code structure)

Should make base64.pl pass
2024-12-04 22:02:57 +01:00
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
d6af68a3a1
Merge pull request #6922 from uutils/revert-6595-install_copy_permission
Revert "install: create destination file with safer modes before copy"
2024-12-04 11:36:22 +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
Sylvestre Ledru
aa09a98cc3
Merge pull request #6595 from nerdroychan/install_copy_permission
install: create destination file with safer modes before copy
2024-12-04 10:10:25 +01:00
Chen Chen
a5867bdf34 install: create destination file with safer modes before copy 2024-12-04 10:02:16 +01:00
Daniel Hofstetter
d6d6d02f00
Merge pull request #6909 from uutils/renovate/thiserror-2.x-lockfile
chore(deps): update rust crate thiserror to v2.0.4
2024-12-04 07:16:46 +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
renovate[bot]
316f5f6e84
chore(deps): update rust crate thiserror to v2.0.4 2024-12-03 17:48:09 +00:00