Commit graph

12788 commits

Author SHA1 Message Date
Vikrant2691
9b9c0cc237 cp: handle update prompt with and without interactive mode enabled 2024-04-09 15:14:33 +02:00
Sylvestre Ledru
aeafabd23f
Merge pull request #6185 from maxer137/main
seq: Removed zero-padding of string when parsing with parse_exponent_no_decimal
2024-04-08 09:14:42 +02:00
Daniel Hofstetter
b6f325bc0a
Merge pull request #6205 from uutils/renovate/davidanson-markdownlint-cli2-action-16.x
chore(deps): update davidanson/markdownlint-cli2-action action to v16
2024-04-08 07:04:47 +02:00
renovate[bot]
997cef0c5c
chore(deps): update davidanson/markdownlint-cli2-action action to v16 2024-04-08 03:05:26 +00:00
Haisham
843407faf8 kill: removed unnecessary calls to print in print_signals 2024-04-07 22:48:15 +02:00
Haisham
6e4c9119fb kill: print signals vertically 2024-04-07 22:48:15 +02:00
Ben Wiederhake
0375bc98a6 dd: fix flaky test_null_stats
If the first four decimal digits are zero, GNU dd elides them altogether.
Therefore, this test just contained an overly-strict regex.

See also ede944e1f8.
2024-04-07 22:45:35 +02:00
Sylvestre Ledru
a75b8a0f67
Merge pull request #6199 from BenWiederhake/dev-wc-ascii-control-is-word
wc: count ASCII control characters as word characters
2024-04-07 08:51:12 +02:00
Ben Wiederhake
d5e7f9a4a4 wc: count ASCII control characters as word characters 2024-04-07 02:12:22 +02:00
Ben Wiederhake
de37baaf83 tests: test multi-call logic
Thankfully, this revealed no bugs. Let's prevent regressions!
2024-04-07 01:35:57 +02:00
Ulrich Hornung
abdeead005 add sleep explicitly to makefile 2024-04-07 01:27:30 +02:00
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