1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-15 09:41:07 +00:00
Commit graph

8196 commits

Author SHA1 Message Date
jovie :)
0f632f2fba
chroot: remove unwrap calls (#7890) 2025-05-28 09:29:19 +02:00
Justin Tracey
f32f1efc23
sync: reduce use of unsafe and improve comments 2025-05-27 23:00:10 -04:00
Justin Tracey
f8d6eea2dc
sync: remove Android workaround
The libc crate now exposes Android's sync like other unix platforms.
2025-05-27 22:26:32 -04:00
Teemu Pätsi
eb7bc2f251
expr: Allow only ASCII digits for regex range quantifiers 2025-05-27 17:53:21 +03:00
Teemu Pätsi
4946922c0f
expr: Fix error message for large numbers as range index 2025-05-27 17:28:19 +03:00
Teemu Pätsi
74ad163da9
expr: Fix regex for validating range quantifier 2025-05-27 16:47:48 +03:00
Teemu Pätsi
2b565612ee
expr: Fix parsing regex range quantifier 2025-05-27 16:47:43 +03:00
Teemu Pätsi
ca6a10ea9a
expr: Only '^' requires special treatment at the start of regex 2025-05-27 15:27:35 +03:00
Teemu Pätsi
210f4f7154
expr: Simplify parsing a range quantifier 2025-05-27 14:58:52 +03:00
Teemu Pätsi
ce0c2320ea
expr: Remove redundant checks for UnmatchedOpeningBrace
It is handled in `verify_range_quantifier` function.
2025-05-27 14:36:06 +03:00
Teemu Pätsi
07caa4867b
expr: Fix error message for too big range quantifier index 2025-05-27 14:06:15 +03:00
Teemu Pätsi
6aeae43f3c
expr: Simplify verifying indexes within regex range quantifier 2025-05-27 13:10:51 +03:00
Teemu Pätsi
639310c697
expr: Fix testing UnmatchedOpeningBrace 2025-05-27 04:26:41 +03:00
Teemu Pätsi
6b49b26af7
expr: Remove redundant tests that should not work anymore 2025-05-27 04:26:41 +03:00
Teemu Pätsi
3065482440
expr: Anchor regex for detecting range quantifier 2025-05-27 04:26:41 +03:00
Teemu Pätsi
874a9304cf
expr: Remove nonexistent error UnmatchedClosingBrace
The closing brace without related opening brace is handled literally
2025-05-27 04:26:41 +03:00
Teemu Pätsi
7789ef46a4
expr: handle \{ literally at the start of an expression
Normally, `\{` begins a range quantifier like `{n,m}`, but at the start of
an expression, there is no preceding item to apply the quantifier to.
2025-05-27 03:56:02 +03:00
Teemu Pätsi
837bab24c1
expr: Add tests for is_valid_range_quantifier function 2025-05-26 17:03:55 +03:00
Teemu Pätsi
4ee93ed6d8
expr: Remove redundant escaping of '*' character 2025-05-26 16:51:44 +03:00
Teemu Pätsi
aae62072d8
expr: Fix parsing range quantifiers in regex 2025-05-26 15:59:35 +03:00
Sylvestre Ledru
be77e142aa
Merge pull request #7991 from RenjiSann/sort-multiple-outputs
sort: prevent -o/--output to be specified multiple times
2025-05-26 08:10:49 +02:00
Dorian Peron
3b4226c48c sort: prevent -o/--output to be specified multiple times 2025-05-25 23:43:48 +02:00
Sylvestre Ledru
c992ce5507
Merge pull request #7948 from BenWiederhake/dev-shred-random-source
shred: implement and test feature --random-source
2025-05-25 22:58:18 +02:00
Daniel Hofstetter
3f9514d115
Merge pull request #7974 from frendsick/fix/expr-regex-special-cases
expr: Handle more special cases for regex pattern
2025-05-25 13:39:44 +02:00
Sylvestre Ledru
7d2644f3a8 move from version 0.0.30 => 0.1.0 2025-05-24 22:28:54 +02:00
Teemu Pätsi
ab5cf74185
expr: Simplify parsing special cases for $ in regex 2025-05-24 21:18:27 +03:00
Teemu Pätsi
2a862bc385
expr: Simplify checking of the end of an expression
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-05-24 21:15:53 +03:00
Teemu Pätsi
b0390fe36e
expr: Handle $ at the beginning of the regex pattern 2025-05-24 01:47:35 +03:00
Teemu Pätsi
4555e6fe48
expr: Handle trailing backslash error 2025-05-24 01:47:30 +03:00
Sylvestre Ledru
5a7c50d64e uucore: add functions to manage translations 2025-05-23 23:37:59 +02:00
Dorian Péron
cd9ce77098
Merge pull request #7953 from frendsick/fix/expr-regex-anchors
expr: Fix parsing regex anchors '^' and '$'
2025-05-23 15:16:28 +02:00
Teemu Pätsi
29332865a9
expr: Handle special cases for $ in regex
Enable fixed test `test_bre11`
2025-05-23 15:29:55 +03:00
Teemu Pätsi
f664578a4b
expr: Handle special cases for ^ in regex 2025-05-23 15:23:21 +03:00
Daniel Hofstetter
73e447224c Adapt to API changes in nix 2025-05-23 09:24:46 +02:00
Daniel Hofstetter
3a05fa92d6
Merge pull request #7908 from sylvestre/selinux-installa
selinux: start the support of install
2025-05-22 15:14:08 +02:00
Alexander Shirokov
14a8f3f3f9
shred:add checks for block sizes
This commit adds checks for block size constants. Misconfigured sizes
could lead to overflows or performance issues. While such cases are
expected to be rare or unlikely, it's better to be notified of them
early.
2025-05-21 15:54:12 +02:00
Alexander Shirokov
24d88d777a
shred:bitwise method to set OPTIMAL_IO_BLOCK_SIZE
The value of the variable remains unchanged (4096 = 2 ^ 12), but using a
bitwise expression provides two benefits:

- follows the same approach used for configuring BLOCK_SIZE

- indicates that a power-of-two value is preferred for this kind of
  constant
2025-05-21 14:54:58 +02:00
Tom D.
9fce1a1529
tsort: remove duplicate sorting step (#7965)
* tsort: remove duplicate sorting step

* tsort: remove unnecessary spaces

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-05-21 10:29:21 +02:00
Sylvestre Ledru
38861cc767 selinux: add support for install 2025-05-21 09:51:27 +02:00
Sylvestre Ledru
71af6d2089 selinux/uucore: add two functions: contexts_differ & preserve_security_context 2025-05-21 09:51:27 +02:00
Sylvestre Ledru
a7b005c5e3
Merge pull request #7942 from cakebaker/sync_move_function_call_to_unsafe_block
sync: move call to unsafe fn to unsafe block
2025-05-20 09:44:48 +02:00
Daniel Hofstetter
dde7324e3f mv: use bool instead of Result as return type
for can_delete_file function
2025-05-20 07:31:57 +02:00
Daniel Hofstetter
cdca6d6a8d sync: move call to unsafe fn to unsafe block 2025-05-19 11:18:12 +02:00
Ben Wiederhake
5a8fad8443 shred: implement and test feature --random-source 2025-05-19 11:17:55 +02:00
Daniel Hofstetter
ee665fbebe more: fix warning from let_and_return lint 2025-05-19 10:08:40 +02:00
Daniel Hofstetter
8674e86703 cp: fix warnings from unnecessary_debug_formatting
Co-authored-by: Jeremy Smart <jeremy3141592@gmail.com>
2025-05-19 09:54:37 +02:00
Daniel Hofstetter
7a706b5756 mv: fix warning from io_other_error lint
Co-authored-by: Jeremy Smart <jeremy3141592@gmail.com>
2025-05-19 09:27:36 +02:00
Aaron Ang
7692b93ea6 more: constant mem initialization for files and pipes 2025-05-18 21:09:48 +02:00
Daniel Hofstetter
438ed3c6c6 doc: fix warnings from markdown linter 2025-05-18 21:08:27 +02:00
Jeremy Smart
a5a9f7d44d
pr: migrate from quick-error to thiserror (#7919)
* remove quick-error from pr

* fix windows compilation, Cargo.toml
2025-05-15 09:19:46 +02:00