Commit graph

12224 commits

Author SHA1 Message Date
Sylvestre Ledru
08f07f9bfd
Merge pull request #5901 from jfinkels/dd-parse-big-numbers
dd: parse big numbers and return u64::MAX
2024-01-28 21:12:14 +01:00
Sylvestre Ledru
247306b7c9
Merge pull request #5899 from cakebaker/bump_wild
Bump wild from 2.2.0 to 2.2.1
2024-01-28 21:10:59 +01:00
Jeffrey Finkelstein
d782fd1bd3 dd: parse big numbers and return u64::MAX
Change the behavior of `dd` so that it parses numbers that would be too
big and instead treats them as `u64::MAX`. This allows `dd` to run
without error on

    dd count=00x9999999999999999999999999999999999999999999999999999999999999

This matches the behavior of GNU `dd`.
2024-01-28 13:41:34 -05:00
Daniel Hofstetter
74bcfff3e8 rm: add test for "rm .\dir\ -rf" on Windows
https://github.com/uutils/coreutils/issues/3200
2024-01-28 16:36:55 +01:00
Daniel Hofstetter
929ceb89f4 Bump wild from 2.2.0 to 2.2.1 2024-01-28 13:09:52 +01:00
Sylvestre Ledru
3362d8abf2
Merge pull request #5895 from kralo/clippy-suggestions
Clippy suggestions
2024-01-28 10:43:30 +01:00
kralo
43212c6d89 ci: include more clippy complaints 2024-01-28 09:42:40 +01:00
kralo
ee7f99aad0 cp: use inclusive range
as suggested by clippy::range-plus-one
2024-01-28 09:42:40 +01:00
kralo
d046d33bee split: use inclusive range
as suggested by clippy::range-plus-one
2024-01-28 09:42:40 +01:00
kralo
9906e66096 uucore: remove unneccessary closues
This adresses only those where the fix has less letters than the
original and is "trivial" (There are possibly a lot of std::string::ToString::to_string
and those may only be shortened with additional imports).

Found with clippy::redundant-closure-for-method-calls
2024-01-28 09:42:40 +01:00
kralo
bd43a7ed99 nl: fix redundant clone (clippy warning) 2024-01-28 09:42:40 +01:00
Sylvestre Ledru
8772eb66b1
Merge pull request #5894 from kralo/android-buildscript
util: android disable mirror selection
2024-01-28 09:42:16 +01:00
Sylvestre Ledru
7fa4b389a9
Merge pull request #5892 from kralo/fix-5883
factor: rename input parameter
2024-01-28 09:28:36 +01:00
Sylvestre Ledru
ab3a72332b
Merge pull request #5889 from cakebaker/fuzzing_sort_lc_all
fuzzing: use LC_ALL instead of LC_COLLATE
2024-01-28 09:28:12 +01:00
kralo
5dccfc2441 cp: test_cp_preserve_xattr_fails_on_android disabled as its now failing to fail 2024-01-28 08:56:08 +01:00
kralo
9ae5cc741b util: disable mirror selection by Variable 2024-01-28 08:56:08 +01:00
kralo
9adceb4f65 factor: rename input parameter
Closes: #5883
2024-01-28 08:24:16 +01:00
Sylvestre Ledru
1b88c3edee
Merge pull request #5891 from kralo/fix-5885
cp: remove lint exceptions
2024-01-28 08:21:07 +01:00
kralo
12dd1e4d7d cp: remove lint exceptions
Could not even reproduce what they would complain for.
Closes: #5885
2024-01-27 19:21:05 +01:00
Sylvestre Ledru
6e09cbaefd
Merge pull request #5890 from kralo/fix-5884
factor: remove clippy exceptions by reformatting "unreadable literals"
2024-01-27 18:56:01 +01:00
kralo
3eba95728c factor: remove clippy exceptions by reformatting "unreadable literals"
Closes: #5884
2024-01-27 17:23:44 +01:00
Daniel Hofstetter
12f0972df4 fuzzing: use LC_ALL instead of LC_COLLATE 2024-01-27 15:04:12 +01:00
Sylvestre Ledru
ae5f2bc0d0
Merge pull request #5875 from cakebaker/expand_make_tab_explicit_in_test
expand: make tab explicit in test
2024-01-26 14:36:48 +01:00
Sylvestre Ledru
e580627506
Merge pull request #5886 from cakebaker/cut_set_exit_code
cut: set exit code to 1 if directory is specified
2024-01-26 14:36:28 +01:00
Daniel Hofstetter
79ac89e3f2
Merge pull request #5887 from uutils/renovate/vmactions-freebsd-vm-1.x
chore(deps): update vmactions/freebsd-vm action to v1.0.6
2024-01-26 13:26:12 +01:00
renovate[bot]
7f1f08c8bc
chore(deps): update vmactions/freebsd-vm action to v1.0.6 2024-01-26 10:17:43 +00:00
Daniel Hofstetter
c8cd355708 cut: set exit code to 1 if dir is specified 2024-01-26 10:18:44 +01:00
Daniel Hofstetter
5bd00eb791 cut: split test function into two functions 2024-01-26 10:09:28 +01:00
Daniel Hofstetter
3318e16608
Merge pull request #5880 from uutils/renovate/chrono-0.x
chore(deps): update rust crate chrono to ^0.4.33
2024-01-25 16:15:47 +01:00
renovate[bot]
51fd22e41b
chore(deps): update rust crate chrono to ^0.4.33 2024-01-25 14:27:17 +00:00
Daniel Lungu
61c730d1b3
expand: Continue work when one of given files doesn't exist (#5873)
* expand: continues work when one of given files doesn't exist

* fixed test for nonexisting file
2024-01-25 09:10:59 +01:00
Sylvestre Ledru
1693640446 whoami: add missing feature 2024-01-24 21:33:25 +01:00
Biplab Mochan Gartia
150b287fe8
unexpand: allow multiple files & show error message if a directory is specified
* unexpand: should allow multiple files #5852 and unexpand: show error message if a directory is specified #5845

* test file added for #5845 #5852

* test case test_multiple_files improve

* cakebaker suggestion for a better code #5845 #5852

---------

Co-authored-by: biplab5464 <biplab5464@outlook.com>
2024-01-24 16:01:26 +01:00
Daniel Hofstetter
8c4c6a53ec expand: make tab explicit in test 2024-01-24 09:46:27 +01:00
Daniel Hofstetter
60d9151c3d Bump smallvec from 1.13.0 to 1.13.1 2024-01-24 08:28:40 +01:00
Daniel Hofstetter
5e26898731 Bump shlex from 1.1.0 to 1.3.0 2024-01-23 07:11:56 +01:00
Daniel Hofstetter
f790349ffb
Merge pull request #5870 from uutils/renovate/chrono-0.x
chore(deps): update rust crate chrono to ^0.4.32
2024-01-23 07:02:54 +01:00
renovate[bot]
e050fa9c8c
chore(deps): update rust crate chrono to ^0.4.32 2024-01-22 23:21:22 +00:00
Sylvestre Ledru
8493800d4f
fuzzing: print the diff in case of issue (#5866)
* fuzzing: print the diff in case of issue

* Simplify the code

* fuzz: remove unused import similar::ChangeTag

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-22 08:06:13 +01:00
Daniel Hofstetter
5f28b5005e
Merge pull request #5867 from uutils/renovate/regex-1.x
chore(deps): update rust crate regex to 1.10.3
2024-01-22 07:09:00 +01:00
renovate[bot]
5006db2e92
chore(deps): update rust crate regex to 1.10.3 2024-01-21 16:53:53 +00:00
Daniel Hofstetter
d690e8fb99
Merge pull request #5752 from sylvestre/0.0.24
0.0.23 => 0.0.24
2024-01-21 13:35:10 +01:00
Daniel Hofstetter
f124910226
Merge pull request #5865 from sylvestre/md5sum-escape
hashsum: when the filename contains some special chars, escape them
2024-01-21 12:55:08 +01:00
Sylvestre Ledru
dd5c6c2d00 0.0.23 => 0.0.24 2024-01-20 20:12:19 +01:00
Sylvestre Ledru
cfb8e5919c
Merge pull request #5863 from lcheylus/openbsd-tests
tests: disable tests for tools unsupported on OpenBSD
2024-01-20 19:59:47 +01:00
Sylvestre Ledru
5e29c60b26 hashsum: when the filename contains some special chars, escape them
Should fix tests/cksum/md5sum-newline.pl
2024-01-20 19:27:45 +01:00
Laurent Cheylus
4589f637ee tests: disable tests for tools unsupported on OpenBSD
pinky, uptime and who are not supported on OpenBSD (no support of utmpx feature) => disable tests
for these tools on OpenBSD with conditional compilation

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-01-19 17:37:45 +01:00
SaHHiiLL
746a7b14d0
tsort: returns error when input is dir - same as GNU tsort (#5860)
* fix: return error when input is dir

* test: when tsort is given a dir

* fix: do not need to mention tsort in error message

* test: using concrete directory name

* tsort: fix formatting in test

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-19 15:39:00 +01:00
Daniel Hofstetter
63ef7e4fdf
Merge pull request #5859 from uutils/renovate/davidanson-markdownlint-cli2-action-15.x
chore(deps): update davidanson/markdownlint-cli2-action action to v15
2024-01-19 11:10:32 +01:00
Daniel Hofstetter
ec0ea959fb
Merge pull request #5862 from uutils/renovate/smallvec-1.x
chore(deps): update rust crate smallvec to 1.13
2024-01-19 10:54:40 +01:00