Sylvestre Ledru
fae7bb0a57
Merge pull request #7332 from RenjiSann/expr-other-approach
...
expr: Evaluate parenthesis content before checking for closing parenthesis
2025-02-24 08:19:05 +01:00
Dorian Péron
604cc404ff
Merge pull request #7349 from uutils/sylvestre-patch-4
...
GNU test: don't generate an error if a new test passes
2025-02-24 02:29:56 +01:00
Sylvestre Ledru
0cf9f9d55b
GNU test: don't generate an error if a new test passes
2025-02-23 18:35:10 +01:00
Sylvestre Ledru
8bd9744183
Merge pull request #7348 from cakebaker/yes_remove_use_of_deprecated_fn_in_test
...
yes: fix use of deprecated function in test
2025-02-23 18:33:25 +01:00
Daniel Hofstetter
e2412e003a
yes: fix use of deprecated function in test
...
use wait() instead of wait_with_output()
2025-02-23 16:53:46 +01:00
Dorian Peron
2fc762b9d2
expr: Evaluate parenthesis content before checking for closing parenthesis
2025-02-23 16:22:06 +01:00
Dorian Peron
4513b58e59
test(expr): Add test for eager evaluation
2025-02-23 16:22:06 +01:00
Dorian Peron
2670885b4f
expr: Use thiserror to be consistent with error definition in other uutils
2025-02-23 16:22:06 +01:00
Sylvestre Ledru
9f643838b8
Merge pull request #7341 from cakebaker/tee_fix_usage_of_deprecated_function_in_tests
...
tee: fix usage of deprecated function in tests
2025-02-23 16:21:34 +01:00
Sylvestre Ledru
b3f7aca846
Merge pull request #7345 from uutils/renovate/rand_core-0.x-lockfile
...
chore(deps): update rust crate rand_core to v0.9.2
2025-02-23 10:30:24 +01:00
Sylvestre Ledru
147fac7245
Merge pull request #7346 from uutils/renovate/libc-0.x-lockfile
...
fix(deps): update rust crate libc to v0.2.170
2025-02-23 10:30:08 +01:00
Sylvestre Ledru
c2cf772549
Merge pull request #7331 from blmaier/conda-forge-skip-manpages-comps
...
GNUmakefile: support skipping manpages and completions
2025-02-23 10:29:49 +01:00
renovate[bot]
65af29c272
fix(deps): update rust crate libc to v0.2.170
2025-02-23 06:13:27 +00:00
Brandon Maier
f051da7ff6
.github: add check for make install
without completions or manpages
2025-02-22 13:53:42 -06:00
Brandon Maier
9082f9ba57
GNUmakefile: support skipping manpages and completions
...
When packaging uutils for Conda-Forge and a cross-compiled architecture,
the install of completion scripts and manpages fails with the following
error.
> .../coreutils manpage arch > .../man/arch.1
> /bin/sh: .../coreutils: Bad CPU type in executable
> make: *** [GNUmakefile:349: manpages] Error 126
When cross-compiling, the `coreutils` tool will be for a different
architecture then the build platform. So we won't be able to extract the
manpages and completions.
Provide build arguments that let us skip the build and install of
manpages and completions.
2025-02-22 13:53:42 -06:00
renovate[bot]
9f706d2b33
chore(deps): update rust crate rand_core to v0.9.2
2025-02-22 17:26:42 +00:00
Daniel Hofstetter
b186f1f00f
Merge pull request #7339 from jfinkels/clippy-fixes-3
...
Style fixes from cargo +nightly clippy
2025-02-22 16:37:06 +01:00
Daniel Hofstetter
277a84d521
tests/common/utils.rs: remove deprecated function
2025-02-22 16:21:08 +01:00
Daniel Hofstetter
be1b2b7632
tee: fix use of deprecated function in tests
...
use pipe_in_and_wait() instead of pipe_in_and_wait_with_output()
2025-02-22 16:21:08 +01:00
Jeffrey Finkelstein
faf3412019
Style fixes from cargo +nightly clippy
2025-02-22 10:11:01 -05:00
Sylvestre Ledru
693d2c4258
Merge pull request #7330 from cakebaker/fuzz_add_new_test_operators
...
fuzz: use new `<`/`>` operators in `fuzz_test.rs`
2025-02-21 22:47:05 +01:00
Daniel Hofstetter
41f1c6b2da
fuzz: use new "<"/">" operators in fuzz_test
2025-02-21 14:58:54 +01:00
Daniel Hofstetter
34fb0dd197
fuzz: bump parse_datetime from 0.7 to 0.8
2025-02-21 14:58:11 +01:00
jfinkels
4acc59d075
test: add < and > operators for string comparison ( #7315 )
...
* test: add < and > operators for string comparison
Fixes #7254 .
* Add more tests for string inequality
* Use match in place of if/elseif block
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* Change test name to specify lt/gt operator
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-02-21 14:41:15 +01:00
Sylvestre Ledru
d065e172f7
Merge pull request #7329 from cakebaker/clippy_fix_warnings_rust_1_85
...
clippy: fix/disable warnings introduced with Rust `1.85`
2025-02-21 11:22:16 +01:00
Daniel Hofstetter
9074f3fe8f
clippy: disable warnings from unnecessary_map_or
...
because fix requires an MSRV of 1.82
2025-02-21 07:54:57 +01:00
Daniel Hofstetter
6c47989186
clippy: fix warning from precedence lint
2025-02-21 07:37:48 +01:00
Daniel Hofstetter
bc11211f6c
Merge pull request #7328 from uutils/renovate/serde-monorepo
...
chore(deps): update rust crate serde to v1.0.218
2025-02-20 13:28:48 +01:00
Sylvestre Ledru
12bb82fac0
Merge pull request #7294 from karlmcdowall/head_read_but_last_n_bug
...
head: Fix bug printing large non-seekable files
2025-02-20 12:09:57 +01:00
Bluemangoo
047ec995f2
uptime: refactor, move some codes to uucore ( #7289 )
2025-02-20 12:09:06 +01:00
renovate[bot]
2c84dac0b4
chore(deps): update rust crate serde to v1.0.218
2025-02-20 11:08:50 +00:00
Sylvestre Ledru
9aa872327b
Merge pull request #7321 from blmaier/conda-forge-fix-argument-list
...
GNUmakefile: fix install error "argument list too long"
2025-02-20 12:08:35 +01:00
Sylvestre Ledru
aaa2ebdb67
Merge pull request #7327 from cakebaker/test_remove_sleep
...
test: remove `sleep` from tests
2025-02-20 12:07:22 +01:00
Daniel Hofstetter
1910da5869
test: remove sleep from tests
2025-02-20 10:48:01 +01:00
Daniel Hofstetter
a2af5d60b5
Merge pull request #7320 from RenjiSann/peron/tr-fix-multiple-chars-in-eq
...
tr: Fix GNU behavior deviation
2025-02-19 16:40:50 +01:00
Dorian Peron
989b6ba2a0
tr: raise an error when there are two chars or more in an equivalence class
2025-02-19 16:15:40 +01:00
Daniel Hofstetter
99d4fbdd85
Merge pull request #7325 from jfinkels/rm-prompt-message-inaccessible
...
rm: correct prompt for removing inaccessible dir
2025-02-19 10:36:30 +01:00
Sylvestre Ledru
447b087ec4
Merge pull request #7323 from alexsnaps/issue-7219
...
numfmt: fix from iec-i without suffix are bytes
2025-02-19 09:41:20 +01:00
Jeffrey Finkelstein
2b531b78ef
rm: correct prompt for removing inaccessible dir
...
Change the prompt when attempting to remove an inaccessible
directory. Before this commit, the prompt was
rm: remove write-protected directory 'dir'?
After this commit, the prompt is
rm: attempt removal of inaccessible directory 'dir'?
This required slightly adjusting the logic for which prompt messages to
display under which circumstances.
Fixes #7309 .
2025-02-18 18:39:45 -05:00
Alex Snaps
17a409532f
Fix #7219 : from iec-i without suffix are bytes
...
Signed-off-by: Alex Snaps <alex@wcgw.dev>
2025-02-18 17:17:29 -05:00
Alex Snaps
448dde7f5c
Fixed tests to reflect si's handling of kilos
...
Signed-off-by: Alex Snaps <alex@wcgw.dev>
2025-02-18 16:32:53 -05:00
Alex Snaps
1250195bce
Fix #7221 : Unit::SI uses lowercase k
for kilos
...
Other units remain untouched and use uppercase `K`, as well as all other suffixes
Signed-off-by: Alex Snaps <alex@wcgw.dev>
2025-02-18 15:32:47 -05:00
Brandon Maier
22db84fed0
Update GNUmakefile
...
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2025-02-18 14:13:31 -06:00
Brandon Maier
7628dc2299
GNUmakefile: fix install error "argument list too long"
...
When packaging uutils for Conda-Forge, the install of completion scripts
fails with the following error.
make: /bin/sh: Argument list too long
The completion scripts are installed with a `foreach` loop that expands
into a single long command. That command hits the maximum argument
length on the build platform used by Conda-Forge.
To fix, we change the Make command to split each install into a seperate
command. This is done by embedding a newline in the command. See the
following for an example of how this works.
https://www.extrema.is/blog/2021/12/17/makefile-foreach-commands
2025-02-18 11:42:34 -06:00
Sylvestre Ledru
bc995283c4
Merge pull request #7304 from jfinkels/rm-recursive
...
rm: use recursive directory traversal with --recursive
2025-02-18 08:23:05 +01:00
Daniel Hofstetter
fb88d9d559
Merge pull request #7319 from uutils/renovate/blake3-1.x-lockfile
...
chore(deps): update rust crate blake3 to v1.6.0
2025-02-18 07:17:28 +01:00
Daniel Hofstetter
ffe3778c33
Merge pull request #7318 from uutils/renovate/clap_complete-4.x-lockfile
...
chore(deps): update rust crate clap_complete to v4.5.45
2025-02-18 07:12:13 +01:00
Daniel Hofstetter
dd85eff36f
Merge pull request #7317 from uutils/renovate/clap-4.x-lockfile
...
chore(deps): update rust crate clap to v4.5.30
2025-02-18 07:11:58 +01:00
renovate[bot]
7f0e678290
chore(deps): update rust crate blake3 to v1.6.0
2025-02-18 02:09:38 +00:00
Dorian Péron
ea1562b5fe
Merge pull request #7316 from jfinkels/echo-parse-escape-only
...
echo: use uucore::format::parse_escape_only()
2025-02-18 00:42:36 +01:00