Commit Graph

19245 Commits

Author SHA1 Message Date
Chris Denton a07879b8ab tty: support printing msys2 tty path 2026-04-30 11:12:22 +02:00
ksgk1 b3d8706a2c sort: fix inconsistent sort ordering under i18n-collator with equal sorting keys (#12013)
* sort: Fix inconsistent sort orderg under i18n-collator with equal sorting keys.

* Test cases for fix #11980

* Simplyfing fix for #11980

* Fix clippy lint and rename test files.

* Remove old test files

* Update tests/by-util/test_sort.rs

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

* Update tests/by-util/test_sort.rs

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

* Removing redundant test and swapping default order for sort to match sort's ordering.

* Comment for clarification.

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2026-04-30 10:33:48 +02:00
xtqqczze 3b2ff61d21 refactor(more): avoid Box<dyn Write> 2026-04-30 09:19:11 +02:00
xtqqczze 36595414b4 refactor: rename print methods to write for consistency 2026-04-30 09:09:57 +02:00
oech3 964610cb3a cat, windows.rs: simplify bool 2026-04-30 08:50:55 +02:00
xtqqczze 8754b0dcf9 refactor(buf_copy): remove unused code 2026-04-30 08:03:34 +02:00
xtqqczze 5316f58726 fix(fs): replace incorrect error handling with last_os_error 2026-04-29 16:58:31 +02:00
xtqqczze ead174fda3 refactor: rustix::io::Errno for CatError 2026-04-29 16:41:29 +02:00
oech3 e3b4b41247 tty: Build tty.wasm 2026-04-29 15:56:41 +02:00
oech3 282bcd8c13 tee: move aborted to MultiWriter 2026-04-29 15:09:43 +02:00
oech3 dd72eca93c tty: Build for Windows 2026-04-29 11:03:10 +02:00
Έλλεν Εμίλια Άννα Zscheile 77302dbc87 df: get rid of clone calls 2026-04-29 10:05:29 +02:00
renovate[bot] 91328849a2 chore(deps): update rust crate ctor to 0.11.0 2026-04-29 09:58:20 +02:00
xtqqczze 6b8a5a15b4 fix: refine feature checks for SELinux and SMACK support 2026-04-29 09:21:39 +02:00
renovate[bot] 1bbd10e002 chore(deps): update rust crate divan to v4.6.0 2026-04-29 09:12:09 +02:00
oech3 49a5dad39a who: remove unsafe 2026-04-29 09:04:25 +02:00
renovate[bot] 4a862fc502 chore(deps): update rust crate selinux to v0.6.2 2026-04-29 07:34:25 +02:00
oech3 5aade310be test_test.rs: remove unsafe 2026-04-28 14:24:49 +02:00
renovate[bot] 34e1d933a3 chore(deps): update dawidd6/action-download-artifact action to v21 2026-04-28 13:45:44 +02:00
oech3 90af16891f chroot: start removing unsafe (#12053) 2026-04-28 12:51:22 +02:00
oech3 ec72d08bf1 test_nohup.rs: remove unsafe (#12052) 2026-04-28 10:52:33 +02:00
xtqqczze c2acff22ee clippy: fix items_after_statements lint
https://rust-lang.github.io/rust-clippy/master/index.html#items_after_statements
2026-04-28 09:37:21 +02:00
xtqqczze ff6b2ef716 fix(id): refine feature checks for SELinux and SMACK support
Co-authored-by: naoNao89 <90588855+naoNao89@users.noreply.github.com>
2026-04-28 09:03:27 +02:00
oech3 c7e2957a0d test_tail.rs: remove unsafe 2026-04-28 08:35:40 +02:00
xtqqczze c121d2445c chore(deps): update rand crate to v0.8.6 2026-04-28 08:17:58 +02:00
oech3 3f6a73da62 test_ls.rs: remove unsafe (#12044) 2026-04-28 00:10:49 +02:00
oech3 670fb243fd test_nice.rs: remove unsafe (#12040) 2026-04-27 22:08:39 +02:00
renovate[bot] 843398fe62 chore(deps): update rust crate clap_complete to v4.6.3 2026-04-27 18:41:56 +02:00
hayato0909 7d3a3475b2 numfmt: fix rounding for small scaled values 2026-04-27 17:29:29 +02:00
hlsxx 35d0a1eb5c refactor(sync): DRY do_sync_with function 2026-04-27 16:32:01 +02:00
Lorenzo Rossi a8ca919dc4 du: propagate errors from --exclude-from instead of panicking (#11996)
* du: propagate errors from --exclude-from instead of panicking

* du: update test_du with --exclude-from failures

* du: fix expected stderr in exclude-from read-error test
2026-04-27 16:14:26 +02:00
Devel08 5fa0aba94d date: don't ignore width prefix in %N format specifier (#12010)
* do not ignore %N if specified width is smaller than default width

* add test for issue #12001

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

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

* cargo clippy

* truncate instead of popping in a loop

* Update format_modifiers.rs

* skip truncation if width is 0

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-04-27 14:59:09 +02:00
David Matos 82590984a5 ln: Improve to LnError and make public fns for nushell (#12009)
* ln: Improve to LnError and make public fns for nushell

* Fix lints for Windows/wasm

* Add comment explaining pub visibility

* Rename Err Variants
2026-04-27 14:58:41 +02:00
xtqqczze d926a67909 refactor(pinky): improve output handling
Co-authored-by: penelope zhong <penelope.zhong@proton.me>
2026-04-27 14:10:40 +02:00
oech3 cc74a62f08 head: catch I/O error with -c 1 2026-04-27 13:48:58 +02:00
Arnaud Larroque 5127cb8e78 Add sort_bench_merge benchmark for sort -m (merge) performance (#12022)
* Add sort_bench_merge benchmark for sort -m (merge) performance
2026-04-27 11:49:08 +02:00
oech3 afc0cdc29c safe_traversal.rs: remove 1 unsafe 2026-04-27 11:43:12 +02:00
oech3 e8c6c60190 paste: remove unsafe from test code 2026-04-27 11:34:53 +02:00
oech3 0d67e58523 cat: remove unsafe from test code 2026-04-27 11:31:19 +02:00
oech3 a1599dfad4 tail: remove ?Sized 2026-04-27 10:21:33 +02:00
oech3 9b87e00829 cat, splice.rs: replace if with match, add comment 2026-04-27 09:46:07 +02:00
renovate[bot] 34f6a1c734 chore(deps): update rust crate onig to v6.5.3 2026-04-27 09:26:06 +02:00
oech3 0ca9039fd7 tee: remove unsafe from test code 2026-04-27 09:16:56 +02:00
Cả thế giới là Rust 6b16cc9688 rm: fix path parsing for dot/dotdot protection (#11005)
Fixes #9749: rm -rf ./ and variants silently delete current directory
contents. The path_is_current_or_parent_directory() function did not
match paths like "./" after clean_trailing_slashes() collapsed them.

Rewrite the function to strip trailing separators, extract the last
component, and check if it is "." or "..".

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
Co-authored-by: naoNao89 <naoNao89@users.noreply.github.com>
2026-04-26 11:12:21 +02:00
renovate[bot] 8c7048a755 chore(deps): update rust crate zip to v8.6.0 2026-04-26 11:00:25 +02:00
oech3 0a80479a55 head: remove print(ln) macros 2026-04-26 09:47:04 +02:00
xtqqczze 57406ce4ae refactor(head): rename read functions to print for clarity 2026-04-26 09:45:25 +02:00
oech3 98cc5e30dd uucore, cat: move unbounded splice code 2026-04-26 09:44:44 +02:00
xtqqczze 17f1777ce1 chore(deps): update rust crate sha3 to 0.10.9 2026-04-25 19:20:30 +02:00
Devel08 c5bdff1816 numfmt: treat multibyte chars as a single character (#11992)
* treat multibyte chars as a single character

* add test for issue 11937
2026-04-25 18:51:57 +02:00