Commit Graph
4906 Commits
Author SHA1 Message Date
Sylvestre Ledru 6b044bb0d5 ls: fix link-count column inflating per ACL file
The `+1` accounting for the ACL/context indicator was applied once per
item inside the padding loop, so N files with ACLs inflated the
link-count column width by N. Apply it a single time after the loop.

Fixes #10980
2026-04-14 22:15:23 +02:00
Sylvestre Ledru cc8785e0ae mv: add tests for cross-device move ownership preservation (#9714) 2026-04-14 22:13:47 +02:00
Daniel HofstetterandSylvestre Ledru 36db2e62ca du: fix error from needless_borrow lint on FreeBSD 2026-04-13 10:44:13 +02:00
Sylvestre LedruandDaniel Hofstetter 4fa689af89 tests/cut: ignore stdin write error on fast-exit delimiter test
test_single_quote_pair_as_delimiter_is_invalid is intermittent on
i686: the parent writes "a''b\n" to cut's stdin while cut validates
args and exits immediately with "delimiter must be a single
character". On a fast child exit, the kernel closes the pipe
read-end before the parent's write() runs, so write() returns
EPIPE and the pipe_in thread panics.

The race is inherent: draining stdin in cut before exiting on an
arg error would hang on terminals and read unbounded data from
long pipes, contradicting GNU behavior. Use the test framework's
ignore_stdin_write_error() flag, which exists for exactly this
"parent writes to child that exits fast" pattern.
2026-04-13 09:04:28 +02:00
Kevin BurkeandSylvestre Ledru b17025b663 tee: add short-read regression test
Upstream commit 9f50c8b42 ("tee: fix input with sleep") already
contains the functional fix for short reads from a paused writer.
Keep the regression coverage so we do not reintroduce the bug.

The test writes one small chunk, waits long enough for a buggy tee to
exit, then writes a second chunk and asserts both stdout and the output
file receive both writes.
2026-04-13 07:37:50 +02:00
oech3andGitHub 1d3dba8261 remove seekable from local cspell conf and use it (#11773) 2026-04-12 16:22:34 +02:00
Ivan ShanyginGitHubpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
9a2ee94226 who: fixed panic in who > /dev/full (#11767)
* Fixed panic in who > /dev/full

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* More sctrictly test

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-04-12 15:34:38 +02:00
AnthonyandGitHub 36ac85b1f3 tests: add WASI integration test support via wasmtime 2026-04-12 15:19:04 +02:00
Bipul LamsalandGitHub 2ca1a10e4d numfmt: fix --to=auto to return with exitcode=1 (#11701)
* numfmt: fix --to=auto to return with exitcode=1

* numfmt: update direct variable use in format macro

* numfmt_test: remove extra test

* numfmt: replacing format in translate directly
2026-04-10 17:59:18 +02:00
f9efb9e459 numfmt: don't ignore precision "0" in --format when combined with --to (#11683)
* Update format.rs

* numfmt fix #11667

* numfmt --format fix

* remove ignore of test for #11667 in test_numfmt.rs

* Add space after slashes in a comment

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>

* change is_precision with a more understandable name

* Leave an empty line between functions

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2026-04-10 15:04:44 +02:00
Devel08GitHubDaniel Hofstetterpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
b352f83edd forbid scientific notation in numfmt #11655 (#11721)
* forbid scientific notation arguments in numfmt

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Edit solution of #116555

* add scientific notation test

* change variable name

* use is_ascii_digit() instead of checking manually

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Apply suggestion from @cakebaker

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2026-04-10 11:47:31 +02:00
THEMIScaleandGitHub ceacc677a4 fix(numfmt):fix precision loss for large numbers in #11654 (#11716)
* fix(numfmt):fix recision loss for large numbers in #11654

* numfmt: fix some tests in format.rs caused by importing numeric.rs

* add a file header and remove a redundant comment

* remove a redundant comment

* add a empty line between two functions

* refactor(numfmt): rename helper functions for accuracy; fix double negation logic
2026-04-10 10:15:06 +02:00
Sylvestre LedruandDaniel Hofstetter 252ec26f52 tests: tail: increase delay for test_follow_name_multiple on macOS
* tests/by-util/test_tail.rs (test_follow_name_multiple): Increase
the delay on macOS to 2000ms to avoid intermittent failures due to
slower follow-name change detection on macOS CI.
2026-04-08 15:50:52 +02:00
THEMIScaleandGitHub 66d4fae8b3 numfmt: fix GNU compat issue #11653 & correct test cases (#11695) 2026-04-07 15:21:34 +02:00
Sim-huandGitHub dba549141c numfmt: fix zero-padding placement for negative numbers (#11694)
* numfmt: fix zero-padding placement before sign for negative numbers

When using zero-padded format (e.g. %018.2f), the sign character is now
placed before the padding zeros, matching C printf behavior.

Fixes #11664

* numfmt: simplify sign handling with combined strip_prefix
2026-04-07 13:26:40 +02:00
Sylvestre LedruandDorian Péron 32cf4cdf0c du, ls: add integration tests for block size env var behavior 2026-04-07 13:01:43 +02:00
Bipul LamsalandGitHub d2726f254a numfmt: apply prefix after scaling for --to-unit (#11684)
* numfmt: apply suffix after scaling

* test_numfmt: remove ignore from prefix selection test
2026-04-07 10:24:32 +02:00
Sylvestre LedruandDaniel Hofstetter c4093734e2 ci: install hu_HU.UTF-8 (and peers) for l10n cargo test job 2026-04-06 15:10:31 +02:00
MegaBrutalandDaniel Hofstetter 0a5c60f5cf Tests for Hungarian locale 2026-04-06 15:10:31 +02:00
Eshwar Singh RajaputanaandGitHub 79c90ff704 numfmt: preserve fractional digits when --from-unit is used without suffix and fixed String format (#11674)
* numfmt: preserve fractional digits when --from-unit is used without suffix and fixed String format

* numfmt: simplify redundant if branches caught by clippy

* numfmt: fix precision condition to only preserve decimals when input has no unit suffix
2026-04-06 10:58:18 +02:00
vishakha1411andDaniel Hofstetter 51094702d2 date: honor narrow width on wide default strftime fields 2026-04-06 10:16:00 +02:00
vishakha1411andDaniel Hofstetter b41d591cde date: fix %#P case-swap on lowercase am/pm 2026-04-06 09:48:18 +02:00
Ibrahim Burak YorulmazandGitHub db9a111c18 dd: do not show zero multiplier warning when zero is the multiplicand (#11673)
* dd: do not show zero multiplier warning when zero is the multiplicand

* tests/dd: test zero multiplier warning when zero is the multiplicand
2026-04-06 08:16:40 +02:00
Sylvestre Ledru 88fb82a4a7 date: add ignored tests for GNU compatibility gaps found by fuzz_date 2026-04-05 23:49:37 +02:00
Sylvestre Ledru 53c7d6fb9d numfmt: add failing test cases 2026-04-05 23:49:19 +02:00