Commit Graph
4925 Commits
Author SHA1 Message Date
Sylvestre Ledru 864e95a253 numfmt: buffer output in non-abort invalid modes and re-enable GNU tests
Buffer formatted output so that --invalid=fail does not duplicate lines
on error, and --invalid=abort streams directly for partial output.

Fixes GNU numfmt.pl test: field-3. Re-enables the full numfmt.pl test
suite by removing the skip list added earlier in the stack.
2026-04-04 23:24:46 +02:00
Sylvestre Ledru d68ff519b5 numfmt: add --grouping flag, debug diagnostics, and stricter number validation
Fixes GNU numfmt.pl tests: grp-1, grp-2, debug-2, fmt-err-9,
fmt-err-11.
2026-04-04 23:24:46 +02:00
Sylvestre Ledru 64a003040a numfmt: support explicit --unit-separator for suffix parsing 2026-04-04 23:24:46 +02:00
Sylvestre LedruandGitHub 8c100daa66 ls: fall back to "." metadata for ".." on WASI (#11633)
* ls: fall back to "." metadata for ".." on WASI

On WASI the sandbox blocks access to the parent directory at the
preopened root, causing ls -a to show an error and display ".."
with question marks. Fall back to the current directory metadata
so the entry appears with valid information.
2026-04-04 22:21:07 +02:00
Michel LindandSylvestre Ledru e406cef5bb uutests: add LICENSE
Symlink LICENSE from the project root so it gets picked up when packaging

```
coreutils/tests/uutests on uutests-add-license
$ cargo package --allow-dirty --list | grep LICENSE

coreutils/tests/uutests on uutests-add-license
$ ln -s ../../LICENSE .

coreutils/tests/uutests on uutests-add-license
$ cargo package --allow-dirty --list | grep LICENSE
LICENSE
```

Signed-off-by: Michel Lind <salimma@fedoraproject.org>
2026-04-04 10:36:37 +02:00
can1357andSylvestre Ledru 8e050539a2 od: default -t f to double precision 2026-04-03 21:55:15 +02:00
Sylvestre Ledru 2b3b9365db echo: add multibyte unicode test cases 2026-04-03 18:57:24 +02:00
d2b9550fe8 split: preserve non-UTF-8 bytes in output filename generation (#11397)
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2026-04-03 12:20:47 +02:00
76b2f7877f expr: fix eager evaluation of parenthesized dead branches (#11395)
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2026-04-03 12:13:24 +02:00
90c7896d23 sync: fall back to full sync when --file-system has no operands (#11393)
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2026-04-03 11:07:58 +02:00
dd2bcea76d timeout: return timed-out status after kill grace period (#11392)
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2026-04-03 11:06:43 +02:00
oech3andSylvestre Ledru 531991d344 tee: fix < . message and strip errno 2026-04-01 22:24:50 +02:00
Sylvestre LedruandDaniel Hofstetter ffa088d467 tests: deduplicate locale availability checks into shared is_locale_available() 2026-04-01 14:36:58 +02:00
Sylvestre LedruandDaniel Hofstetter 1658fc8f3d sort: add locale-aware month sorting (-M)
fix: tests/sort/sort-month.sh
2026-04-01 14:36:58 +02:00
oech3andSylvestre Ledru 0beca7cb84 dd: catch OOM 2026-03-31 22:18:15 +02:00
6e18efb218 uucore: support realtime signals (RTMIN/RTMAX) in signal_by_name_or_value
`signal_by_name_or_value()` only looked up signals from the static
ALL_SIGNALS array, which doesn't include realtime signals. This caused
`timeout -s RTMAX`, `kill -s RTMIN`, and `env --default-signal=RTMAX`
to reject valid signal names.

Extend the function to fall back to realtime_signal_bounds() for both
name lookups and numeric values in the realtime range, matching the
behavior already present in signal_list_value_by_name_or_number().

Also fix timeout's report_if_verbose() to use signal_list_name_by_value
instead of signal_name_by_value, so verbose output doesn't panic for
realtime signal numbers.

Fixes GNU test: tests/env/env-signal-handler.sh

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-31 14:48:50 +02:00
Eyüp Can AkmanandDaniel Hofstetter f6451c7d20 chown: warn when '.' is used as owner:group separator
When the spec contains '.' but no ':', emit a warning matching GNU
coreutils behavior and re-parse with '.' as separator so both owner
and group are applied.

Closes #11352
2026-03-31 10:29:24 +02:00
Alvaro GuimaraesandGitHub d8688183ff head: fix error message when input is a directory (#11541)
* head: fix error message when input is a directory

* head: check for directory before trying to open
2026-03-30 16:54:50 +02:00
oech3andDaniel Hofstetter aab0ddac47 pathchk: build for Windows 2026-03-30 15:32:39 +02:00
oech3andDaniel Hofstetter 93157b7ebe ls: Fix error message for ls file/missing-file 2026-03-30 10:29:13 +02:00
Dorian PéronandDaniel Hofstetter 812eb64c50 test(cksum): Add multiple tests on check length digest validation 2026-03-27 16:02:02 +01:00
97e69f0055 head: reset stale partial line state on reused buffers (#11407)
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2026-03-27 15:05:01 +01:00
oech3andGitHub 2b05f2fa8c Remove duplicated features (#11510) 2026-03-27 09:52:28 +01:00
Vincent WhitchurchandDaniel Hofstetter b0d504c32e sort: fix infinite loop on --files0-from read error
If the read from the `--files0-from` file results in a permanent error,
we end up in an infinite loop.
2026-03-26 16:44:38 +01:00
358063f336 tr: fix graph/print character class mapping (#11405)
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2026-03-26 16:21:28 +01:00