Commit Graph
4262 Commits
Author SHA1 Message Date
Sylvestre Ledru 4cab890676 Merge pull request #8763 from bakanovskii/df-follow-symlinks
df: follow symlinks
2025-09-28 23:28:48 +02:00
Sylvestre Ledru bd7581fab2 Merge pull request #8671 from cakebaker/pinky_move_test
pinky: move unit test away from the integration tests
2025-09-28 22:47:46 +02:00
Alexander Bakanovskii d6985039c9 tests/df: test follow symlinks
Signed-off-by: Alexander Bakanovskii <skotttt228@gmail.com>
2025-09-28 23:06:31 +03:00
Alen Antony 52c71dcac9 Merge pull request #8747 from Anonymous-AAA/fix-recursive-cp-backslash
cp: fix recursive cp fails on files with trailing backslashes
2025-09-28 19:20:10 +02:00
Sylvestre Ledru cbccc9a456 realpath: implement -E 2025-09-28 10:34:56 +02:00
Sylvestre Ledru 32eef0687d Merge pull request #8749 from cakebaker/wc_fix_files0_from
wc: adapt error message to pass `wc-files0-from`
2025-09-26 18:18:39 +02:00
Daniel Hofstetter 905714ca79 wc: adapt error message to pass wc-files0-from 2025-09-26 17:46:59 +02:00
Daniel Hofstetter 7739598980 sort: adapt error message to pass sort-files0-from 2025-09-26 17:28:55 +02:00
eram 1e149b0fa4 id: added '-a' argument (#8733) 2025-09-24 21:14:51 +02:00
Ahmed hossam 12e875c0a2 Merge pull request #8538 from dekuu5/fix/stat-string-to-osstr
stat: fix mount point handling for non-UTF8 paths
2025-09-24 16:34:36 +02:00
Sylvestre Ledru a27a124eeb Merge pull request #8681 from cakebaker/seq_separator_non_utf8
seq: support non-utf8 for `--separator` & `--terminator`
2025-09-24 08:03:21 +02:00
Sylvestre LedruandDaniel Hofstetter 4a92c9b638 safe traversal: adjust chmod & chgrp to use it (#8632)
* chown: implement safe traversal

* uucore/safe_traversal: add secure chmod functions

* safe traversal: adjust chmod & chgrp to use it

* chmod dedup some code

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

* address review comments

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-09-23 09:28:15 +02:00
Andrew Twigg 542e4762f3 date: implement --resolution flag (#8686)
* date: implement --resolution flag

* date: add tests for --resolution flag

* date: add date source option conflicts

* fixup: fix type error on 32-bit platforms

* fixup: fix spelling issue in test

* fixup: use hardcoded resolution on redox os
2025-09-22 11:23:50 +02:00
AnarchistHoneybun 7bca02c38f hashsum: fix help text to show actual utility name (#8650)
Fix all hashsum utilities (md5sum, b2sum, sha256sum, etc.) to display
their actual name in help output instead of generic 'hashsum --<digest>'.

Override help_template and usage for specific utilities while preserving
the original hashsum behavior for the generic multicall case.

Add test to verify help output shows correct utility names and prevent
future regression.

Fixes #8614
2025-09-21 17:25:39 +02:00
Daniel Hofstetter 001ab890d5 seq: support non-utf8 for --terminator 2025-09-20 17:50:47 +02:00
Daniel Hofstetter 0d621f0e07 seq: support non-utf8 for --separator 2025-09-20 17:49:42 +02:00
Daniel Hofstetter d2125f5378 pinky: cleanup imports in test file 2025-09-19 17:26:22 +02:00
Daniel Hofstetter 5dc7b3d3f6 pinky: move unit test away from integration tests 2025-09-19 17:13:43 +02:00
Daniel Hofstetter 68a0369a45 Merge pull request #8669 from bakanovskii/add-pinky-lookup-flag
pinky: add --lookup flag
2025-09-19 16:57:42 +02:00
Alexander Bakanovskii 59bf18fd00 tests/pinky: add --lookup test 2025-09-19 16:21:09 +03:00
naoNao89 1afeb7a6e3 csplit: create final empty file with --suppress-matched to match GNU (fixes #7286)
Problem
- With , uutils csplit failed to create the final empty output file when the last split point consumed the trailing input.
- GNU csplit always creates a final segment after processing patterns; with , that empty final segment is elided.
- This broke the GNU test (tests/csplit/csplit-suppress-matched.pl) and the scenario:

Root cause
- Final-file creation was conditional on there being remaining input after pattern processing. If none remained, no final file was created, contrary to GNU semantics.

Fix (minimal, targeted)
- In , after :
  - If there is remaining input, always create a final split and copy the remainder, then finish.
  - Else, if all patterns were integer-based and  is set, create a final (possibly empty) split and finish;  elides it when  is set.

Tests (Rust integration)
- Added two Rust tests under  to lock down GNU-compatible behavior:
  -  (expects sizes 2,2,2,0 and a final empty )
  -  (final empty file is correctly elided)

Verification
- All  tests pass locally. The originally reported case now matches GNU.

Relation to PR #7806
- #7806 proposes a broader refactor to fix multiple issues, but remains a draft and notes remaining GNU suppress-matched differences.
- This PR provides a small, reviewable fix specifically for #7286, plus precise integration tests to safeguard behavior.

Fixes #7286
2025-09-18 00:29:55 +07:00
Sylvestre Ledru 80327e0dd0 Merge pull request #8602 from cakebaker/touch_simplify_some_tests
touch: simplify some tests by using `new_ucmd!()`
2025-09-15 11:56:32 +02:00
Daniel Hofstetter aa42a02459 Merge pull request #8606 from sylvestre/expr-multibyte
expr: fix some multibyte issues
2025-09-14 15:30:12 +02:00
Sylvestre LedruandDaniel Hofstetter 091db2babc expr: fix some multibyte issues and refactor a bit
Should make tests/expr/expr-multibyte pass

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-09-14 01:12:57 +02:00
yuankunzhang 88a7fa7adf date: use --reference=file to display the file modification time 2025-09-13 22:23:33 +08:00