Commit graph

12755 commits

Author SHA1 Message Date
Krysztal112233
a61761f090
util: fix compile failed on Windows.
Use  `std::path::MAIN_SEPARATOR_STR` instead of `std::path::MAIN_SEPARATOR`
2024-03-23 17:13:07 +08:00
Krysztal112233
6f5dfa3c46
lint: fix unused_imports of util.rs 2024-03-23 17:02:32 +08:00
Krysztal112233
1484d06887
lint: fix clippy::manual_main_separator_str for util.rs on Windows cfg. 2024-03-23 16:56:43 +08:00
Krysztal112233
d21dc125d0
lint: fix clippy::suspicious_open_options of project. 2024-03-23 16:49:35 +08:00
Ulrich Hornung
30d61d8a97
extract more functions for run_env() 2024-03-22 23:06:35 +01:00
Ulrich Hornung
59df0b8fb8
replace comment with extracted function 2024-03-22 22:36:57 +01:00
Ulrich Hornung
4c1e68c9f4
replace comment with extracted function 2024-03-22 22:34:05 +01:00
Ulrich Hornung
526cc8846c
extract functions blocks to reduce cognitive complexity 2024-03-22 22:17:48 +01:00
Daniel Hofstetter
5e6fa49ef5 more: fix incorrect tests 2024-03-22 15:13:53 +01:00
Krysztal112233
ef8c379370
lint: fix clippy::redundant_clone of test_dd.rs test_cp.rs 2024-03-22 17:38:54 +08:00
Krysztal112233
35c39a65e5
Merge branch 'uutils:main' into main 2024-03-22 16:48:47 +08:00
Sylvestre Ledru
d9b2fec43d
Merge pull request #6101 from hanbings/main
add 0xDE flag to support zfs file system.
2024-03-21 19:21:25 +01:00
Krysztal112233
48e376e1e0
lint: allow clippy::suspicious_open_options in sort.rs 2024-03-22 00:42:33 +08:00
Krysztal112233
2b5e7caf8b
lint: fix clippy::manual_str_repeat in parse_glob.rs 2024-03-22 00:02:04 +08:00
Krysztal112233
fd3640482b
lint: fix clippy::unnecessary_to_owned in test_cksum.rs 2024-03-21 23:56:40 +08:00
Krysztal112233
ee09f276a4
lint: fix clippy::useless_format in test_cksum.rs 2024-03-21 23:55:36 +08:00
Krysztal112233
eb3fac3567
lint: fix clippy::needless_borrows_for_generic_args in perms.rs 2024-03-21 23:54:37 +08:00
Krysztal112233
b66d6dffcf
lint: fix clippy::needless_borrows_for_generic_args in perms.rs 2024-03-21 23:53:32 +08:00
Krysztal112233
72b7266f71
lint: allow clippy::needless_borrow in perms.rs 2024-03-21 23:50:23 +08:00
Krysztal112233
0bb179311d
lint: fix clippy::bool_assert_comparison in perms.rs 2024-03-21 23:47:57 +08:00
Krysztal112233
63d92cdbda
lint: fix clippy::useless_vec in unit_tests.rs 2024-03-21 23:46:24 +08:00
Krysztal112233
21d6eab847
lint: fix lint clippy::suspicious_open_options 2024-03-21 23:36:48 +08:00
hanbings
c35c96f127
Merge branch 'main' into main 2024-03-21 22:57:20 +08:00
hanbings
30452ced73
Add 0xDE flag to to support zfs file system. 2024-03-21 22:20:31 +08:00
Daniel Hofstetter
77a67559eb
Merge pull request #5966 from Ideflop/more-implement-argument-pattern
More implement argument pattern
2024-03-21 10:51:31 +01:00
Sylvestre Ledru
f14aa8108b
Merge pull request #6099 from cre4ture/fix/android_od_test_f16
test_od - re-enable f16 test with newer AVD system image
2024-03-21 08:45:47 +01:00
Ulrich Hornung
89110abe97
test_od - re-enable f16 test with newer AVD system image 2024-03-20 23:33:06 +01:00
Sylvestre Ledru
ee1740e78d
Merge pull request #6098 from thesayfulla/main
added shebang to run python scripts
2024-03-20 17:50:41 +01:00
thesayfulla
9cfdf401d0 added shebang to run python scripts 2024-03-20 19:41:00 +05:00
Sylvestre Ledru
597a29be46
Merge pull request #6095 from cakebaker/cksum_enable_encoding_feature
cksum: enable encoding feature
2024-03-20 11:10:59 +01:00
Sylvestre Ledru
a3ff7b7719
Merge pull request #6096 from cakebaker/fmt_fail_if_goal_bigger_than_default_width
fmt: fail if goal is bigger than default width
2024-03-20 11:10:48 +01:00
Daniel Hofstetter
3ad226cf54 fmt: show error if goal > default width 2024-03-20 10:26:11 +01:00
Daniel Hofstetter
45bdca9f16 fmt: replace two magic numbers with consts 2024-03-20 10:23:33 +01:00
sreehari prasad
660014e532
dd: misc gnu test (#6084)
* dd: check file is a dir for iflag directory

* Improve english

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

* dd: stderr output checking for "iflag directory" testcase

* dd: replace #[cfg(unix)] with #[test]

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-03-20 06:55:54 +01:00
Sylvestre Ledru
08172c28c0
Merge pull request #5801 from cre4ture/feature/env_string_args_try_with_shell_words
env: support string args by "-S", "-vS" or "--split-strings"
2024-03-19 19:32:04 +01:00
Daniel Hofstetter
7c8dfca4a7
Merge pull request #6094 from sargas/fmt-small-widths
fmt: Make sure goal is always positive
2024-03-19 16:55:10 +01:00
Joseph Jon Booker
f456b9531f fmt: Make sure goal is always positive
A debug assertion was added to enforce "width >= goal" to catch
that case before a panic in linebreak.rs. A few warnings in linebreak.rs
were addressed as well, and some isize's that should always be positive
(if there's no width/goal bugs) were changed to usizes to catch bugs
earlier.

test_fmt_width is updated to test for the same result as GNU fmt
2024-03-19 08:52:04 -05:00
Daniel Hofstetter
2b4cfcc8b8 cksum: enable encoding feature 2024-03-19 09:29:41 +01:00
Ulrich Hornung
c62ba559d0 env: support string args by "-S", "-vS" or "--split-strings" 2024-03-19 00:45:05 +01:00
Sylvestre Ledru
6f95d058a2
Merge pull request #6041 from BenWiederhake/dev-cksum-repeat-and-flags
cksum: permit repeated flags, handle overrides correctly, implement base64 output
2024-03-18 21:34:37 +01:00
Ben Wiederhake
133cdde885 cksum: implement and test --base64 output method 2024-03-18 20:59:59 +01:00
Ben Wiederhake
7b219aee63 cksum: implement trivial --tag flag 2024-03-18 20:59:59 +01:00
Ben Wiederhake
edb1eb0a76 cksum: allow repeated flags and arguments 2024-03-18 20:59:59 +01:00
Sylvestre Ledru
e1788f4be8
Adjust the link to the doc 2024-03-18 17:10:06 +01:00
Ulrich Hornung
32b5591736
df: switch from u64 to u128 to handle fs with large inodes nr (#6071) 2024-03-18 17:03:23 +01:00
Daniel Hofstetter
c9922ba3da
Merge pull request #6092 from Krysztal112233/main
tr: lazily generate the character mapping as necessary
2024-03-18 14:35:11 +01:00
Daniel Hofstetter
05731d13af
tr: remove fixed todo 2024-03-18 13:56:49 +01:00
Krysztal112233
4712015e61 tr: lazily generate the character mapping as necessary 2024-03-18 18:33:07 +08:00
Daniel Hofstetter
727101ccf3
Merge pull request #6087 from sylvestre/pr2
pr: relax some error messages
2024-03-18 10:30:41 +01:00
Sylvestre Ledru
7819cb3cb5
Merge pull request #6091 from cakebaker/csplit_remove_crate_name_attribute
csplit: remove `crate_name` attribute
2024-03-18 10:21:47 +01:00