Commit graph

12727 commits

Author SHA1 Message Date
Ulrich Hornung
eca8130a4a feature: env argv0 overwrite (unix only) 2024-04-07 01:27:30 +02:00
Daniel Hofstetter
56e59da558
Merge pull request #6196 from uutils/renovate/vmactions-freebsd-vm-1.x
chore(deps): update vmactions/freebsd-vm action to v1.0.7
2024-04-06 07:06:46 +02:00
Jadi
5d17bf7d78 head: two new tests. Improves function coverage from 38 to 75 2024-04-06 05:40:26 +02:00
renovate[bot]
4b605cb43f
chore(deps): update vmactions/freebsd-vm action to v1.0.7 2024-04-05 22:02:53 +00:00
maxer137
538f5ba6c2
Merge branch 'main' into main 2024-04-05 20:43:02 +00:00
maxer137
0fdefc3767 seq: remove zero padding from parse_decimal_and_exponent
This adds the same fix applied to `parse_exponent_no_decimal`.
This way we don't need to create large strings
2024-04-05 15:01:18 +02:00
Terts Diepraam
415de28fed
Merge pull request #6192 from cakebaker/cksum_fix_formatting
cksum: fix code formatting
2024-04-05 09:43:43 +02:00
Daniel Hofstetter
ac12957307 cksum: fix code formatting 2024-04-05 07:14:37 +02:00
Sylvestre Ledru
a370d15906
Merge pull request #6191 from jadijadi/cut-two-new-tests
cut: two new tests; -d conflict & no arg
2024-04-04 23:14:27 +02:00
Jadi
1137d9a62d cut: two new tests; -d conflict & no arg 2024-04-04 21:33:22 +03:30
Daniel Hofstetter
d11878403c Readme: fix links to docs 2024-04-04 17:23:47 +02:00
Daniel Hofstetter
082528d6de
Merge pull request #6187 from jadijadi/cksum-base64-short-option
cksum: adding -b as the short form of --base64
2024-04-04 15:36:40 +02:00
Jadi
4312f3c43e cksum: adding -b as the short form for --base64
closes #5706
2024-04-04 15:09:17 +03:30
maxer137
cdfcae4d4f seq: Reverted change in is_minus_zero check
I had made the mistake of not running all the tests. This is indeed needed. However, you still need to add the exponent if it's positive for 0 numbers.
This way, 0 numbers (such as 0e+5) will be counted as having a width of 5.

This change also removes the memory allocation needed for the previous implementation. Where the string itself would be padded with zeros on the right side. Creating large numbers this method would cause large allocations in memory.

This does not seem to fix issue #6182.
2024-04-03 19:20:27 +02:00
maxer137
362deeca84 seq: remove exponent exponent less than 0 check.
When exponent is greater than 0 we previously created a new string causing us to create a new string with a much larger size.
This would the get passed to the BigDecimal crate which would get stuck.
2024-04-03 16:07:31 +02:00
maxer137
efd7b6116c seq: remove is_minus_zero_float check on parse_exponent_no_decimal 2024-04-03 16:07:04 +02:00
Daniel Hofstetter
874c4f23c0
Merge pull request #6184 from sylvestre/match_bool
Fix clippy warning match_bool
2024-04-03 09:59:49 +02:00
Sylvestre Ledru
0a0a7b9ba1 clippy: enable match_bool 2024-04-03 09:28:26 +02:00
Sylvestre Ledru
2fe5dc874e Fix clippy warning match_bool 2024-04-03 09:28:22 +02:00
Sylvestre Ledru
d7434d4198
Merge pull request #6181 from tertsdiepraam/lets-fix-this-bleeping-release
CI: change publish step condition
2024-04-02 18:05:42 +02:00
Terts Diepraam
da0b580504 CI: change publish step condition
Hopefully, this fixes our release artifact problems.
2024-04-02 14:24:03 +02:00
Sylvestre Ledru
076710d288
Merge pull request #6167 from sylvestre/fuzz_env
add env & tr fuzzers + small improvs
2024-04-02 09:10:33 +02:00
Sylvestre Ledru
14ef1a204c fuzz: run the new fuzzers in the CI 2024-04-01 23:19:04 +02:00
Sylvestre Ledru
7919b4e3cd fuzz: start fuzzing env & tr 2024-04-01 23:19:02 +02:00
Sylvestre Ledru
1a87618015
Merge pull request #6173 from BenWiederhake/dev-ls-exit-code
ls: compute the correct exit code
2024-04-01 23:16:37 +02:00
Ben Wiederhake
714b4ff589 ls: fix exit code for --time-style when used 2024-04-01 22:57:18 +02:00
Ben Wiederhake
4a1bd78f48 ls: compute correct exit code on error
Note in particular that this seems to be the only tool where invalid
stringly-enum values cause a different exit code than invalid arguments.
2024-04-01 22:57:18 +02:00
Sylvestre Ledru
8f791da213
Merge pull request #6176 from BenWiederhake/dev-fuzz-emptystring
fuzz: also generate the empty string sometimes
2024-04-01 22:21:44 +02:00
Ben Wiederhake
58aab48ab2 fuzz: also generate the empty string sometimes
Inspired by #6167, #6175, and the observation that 'echo hello "" world | hd' outputs extra spaces.
2024-04-01 21:02:08 +02:00
renovate[bot]
cac7155fba chore(deps): update rust crate hostname to 0.4 2024-04-01 17:10:02 +02:00
Carbrex
49c7e65f5d Use time-style only if time is provided 2024-04-01 17:09:59 +02:00
renovate[bot]
ffda2a4b40 chore(deps): update nick-fields/retry action to v3 2024-04-01 17:09:59 +02:00
Sylvestre Ledru
4482a6248f
Merge pull request #6157 from BenWiederhake/dev-tee-fail-open
tee: Correctly handle read-only files, avoid unnecessary wrapping
2024-04-01 01:41:40 +02:00
Sylvestre Ledru
d30952ed84
Merge pull request #6156 from cre4ture/fix/macos_ci_instability_on_clippy_with_retry
fix macos ci instability on clippy with retry
2024-04-01 01:41:23 +02:00
Sylvestre Ledru
08f324bf40 Silent some clippy warnings 2024-04-01 01:06:17 +02:00
Sylvestre Ledru
39b6059910 rustfmt the expr fuzzer 2024-04-01 01:06:17 +02:00
Ben Wiederhake
fb0c904b07
Merge pull request #6161 from paolobarbolini/drop-conv
chore(deps): drop conv dev-dependency
2024-03-31 23:39:49 +02:00
Paolo Barbolini
9e040a3df1 chore(deps): drop conv dev-dependency 2024-03-31 22:51:24 +02:00
Ben Wiederhake
dab6003b52
Merge pull request #6160 from mvo5/date-from-stdin
date: support `-f -` to read from stdin
2024-03-31 22:36:19 +02:00
Michael Vogt
af0ba86657 date: support -f - to read from stdin
So far `date -f -` was not reading from stdin. This commit fixes
this.

Closes: #6058
2024-03-31 22:05:47 +02:00
Ben Wiederhake
675dd9404a tee: avoid unnecessarily cloning argument list 2024-03-31 18:47:32 +02:00
Ben Wiederhake
8ab825c49f tee: correctly handle writing to read-only files 2024-03-31 18:47:32 +02:00
Ulrich Hornung
1c0adba1ca
fix macos ci instability on clippy with retry 2024-03-31 17:46:52 +02:00
Ben Wiederhake
5c36ed92b8 tee: remove unnecessary memory indirection
This removes two layers of Box<NamedWriter<...>>.
The indirection appears to be unintentional, and makes it harder to
understand and change the code.
2024-03-31 17:01:49 +02:00
Daniel Hofstetter
0ef06bd82d
Merge pull request #6131 from sylvestre/0.0.26
Try to release 0.0.26 to see if the artifacts are generated
2024-03-31 12:47:55 +02:00
Sylvestre Ledru
b869c67d6a
Merge pull request #6150 from BenWiederhake/dev-dircolors-repeated
dircolors: accept repeated flags
2024-03-31 12:08:55 +02:00
Sylvestre Ledru
7be6e9a53b
Merge pull request #6151 from BenWiederhake/dev-dirnames-repeated
dirname: accept repeated flag
2024-03-31 09:27:08 +02:00
Sylvestre Ledru
01ea23ba21 Try to release 0.0.26 to see if the artifacts are generated 2024-03-30 22:51:24 +01:00
Ben Wiederhake
8e794d0654 dircolors: accept repeated flags 2024-03-30 22:50:57 +01:00
Ben Wiederhake
9dbf2c362d dirname: accept repeated flag 2024-03-30 22:50:52 +01:00