Commit Graph

4827 Commits

Author SHA1 Message Date
Sylvestre Ledru cf75720e1c mv,cp: fix xattr and symlink handling in cross-device operations 2026-03-16 22:52:53 +01:00
Sylvestre Ledru 92f1739a25 split: fix I/O error handling for device full conditions
Should fix tests/split/split-io-err.sh
2026-03-08 21:46:36 +01:00
karanabe 005cf50a1a kill: fix GNU compatibility tests for RTMIN and RTMAX (#11224)
* kill: list Linux realtime signals correctly

Add list-specific signal helpers for RTMIN/RTMAX and unnamed
signal numbers, and use them in kill and env range iteration.
Keep send-oriented signal parsing unchanged for signal delivery.

* document low-byte signal decoding in list mode
2026-03-08 09:25:53 +01:00
xtqqczze f00a050106 clippy: fix nightly lints (#11232) 2026-03-08 09:13:23 +01:00
cerdelen a6b0276966 date: extend tz abbreviation lookup 2026-03-07 16:46:48 +01:00
Dominykas Vozgirdas 852c6a94b0 tests/tail: reduce delays in multiple tests to speed up execution (#11206)
Co-authored-by: Dominykas Vozgirdas <dominykas.vozgirdase@gmail.com>
2026-03-06 09:41:25 +01:00
Sylvestre Ledru 9654e4abaf mv: preserve symlinks during cross-device moves instead of expanding them
closes: #10009
2026-03-05 15:23:36 +01:00
oech3 60b4d1b58f shuf: try vec first and fallback to HashMap if it cause OOM (#11169) 2026-03-05 13:05:30 +01:00
Sylvestre Ledru 1124685d8c Revert "nohup: Succeed in creating ~/nohup.out for non-UTF8 HOME" 2026-03-05 09:38:56 +01:00
Victor Prokhorov e6a3bb596f cp: handle special files (#11163) 2026-03-05 00:01:52 +01:00
mattsu 0f2821e75f paste: avoid unbounded buffering for single input (#11060) 2026-03-04 23:54:04 +01:00
aweinstock 3edbb2d7f5 nohup: Succeed in creating ~/nohup.out for non-UTF8 HOME 2026-03-04 13:04:05 -05:00
akervald 9bbb58b746 cut: fix -s flag for newline delimiter and improve performance
- Fixed the -s flag incorrectly suppressing output when the delimiter is a newline.
- Improved performance in cut_fields_newline_char_delim.
- Updated tests to match GNU cut behavior for newline delimiters.
2026-03-04 11:05:25 +01:00
Yotam Medini f52e3e800b factor: trim also null-chars (#11182)
* fix bug #11097: factor: trim also null-chars

* for factor: add test_trim_null_chars

* test_factor: pipe_in instead of pipe_in_fixture
2026-03-04 09:54:17 +01:00
FidelSch dd6b88b264 fix(numfmt): format output on error messages 2026-03-04 09:28:11 +01:00
FidelSch 995c6dcdcd fix(numfmt): update line termination handling for consistency with GNU behavior 2026-03-02 10:34:17 +01:00
FidelSch 8a7a7788e7 format test_numfmt 2026-03-02 10:34:17 +01:00
FidelSch f197618f7d fix(numfmt): Read lines only up to null byte (as GNU does) 2026-03-02 10:34:17 +01:00
hlsxx 2fba53315a sort: add locale_failed_to_set for unix (#11137)
* sort: locale_failed_to_set unix check

* sort(test): failed to set locale

* sort(test): fix test for android

* sort(test): bypass other than gnu and linux
2026-02-28 17:14:43 +01:00
Avi Weinstock 313c546e2e uucore: Disallow slashes in determine_backup_suffix (#11149)
* uucore: Disallow slashes in determine_backup_suffix; use ln's OsStr-compatible implementations of *_backup_path.

* ln: Add test for backup suffix containing slashes.

---------

Co-authored-by: aweinstock <avi@zellic.io>
2026-02-28 09:35:30 +01:00
Avi Weinstock 2a81c11344 Merge pull request #11148 from Zellic/cp-fix-nonutf8-panic
cp: Fix panic when recursively copying a directory with a non-UTF8 name
2026-02-28 09:26:02 +01:00
Sylvestre Ledru 12b284ca50 Merge pull request #11135 from Zellic/ls-nonutf8-hidden
ls: Treat paths starting with a dot as hidden even if they contain invalid UTF-8.
2026-02-27 09:24:48 +01:00
Cả thế giới là Rust 2c3eab9440 date: fix %+ and %_ modifier edge cases (#10999)
* date: fix %+ and %_ modifier edge cases

Fixes #10957:

1. %+ without explicit width now correctly omits sign for years
   with <= 4 digits. Sign is only added when explicit width is
   provided or year exceeds default width.

2. %_ without explicit width now correctly pads to the specifier's
   default width (e.g., %_m produces " 6" instead of "6").

Changes:
- Add get_default_width() function mapping specifiers to POSIX
  default widths
- Modify apply_modifiers() to accept explicit_width parameter
- Update tests for new behavior

Test results:
- date -d '1999-06-01' '+%+Y' -> "1999" (was "+1999")
- date -d '1999-06-01' '+%_m' -> " 6" (was "6")
2026-02-27 09:13:59 +01:00
aweinstock 85c9f25c35 ls: Treat paths starting with a dot as hidden even if they contain invalid UTF-8. 2026-02-26 18:25:03 -05:00
Avi Weinstock 38ba3663ca ln: Interactive and Force override each other instead of defaulting to Force if both are specified (#11129)
* ln: Interactive and Force override each other instead of defaulting to Force if both are specified.

* ln: Add tests for `-i -f` and `-f -i` overrides.

---------

Co-authored-by: aweinstock <avi@zellic.io>
2026-02-26 22:10:56 +01:00