Commit graph

12569 commits

Author SHA1 Message Date
renovate[bot] 4b605cb43f
chore(deps): update vmactions/freebsd-vm action to v1.0.7 2024-04-05 22:02:53 +00: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
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
Sylvestre Ledru c99e1c6813
Merge pull request #6025 from cre4ture/feature/dd_direct_progress
dd: handle SIGUSR1 directly. not just every 1sec
2024-03-30 22:36:03 +01:00
Ben Wiederhake 393feaf890
Merge pull request #6153 from cre4ture/fix/windows_ci_by_not_upgrading_all_packages
don't upgrade packages - msys2-runtime upgrade fails in CI
2024-03-30 19:55:39 +01:00
Ulrich Hornung 765e09e3c4
don't upgrade packages - msys2-runtime upgrade fails in CI 2024-03-30 18:33:05 +01:00
Michael Vogt 3a6bf34284
date: fix date -f dates.txt is failing (#6148)
* date: fix `date -f dates.txt is failing`

This commit is a trivial followup for:
https://github.com/uutils/coreutils/pull/4917
and
https://github.com/uutils/parse_datetime/pull/12

The functionality to parse the datetime was moved into the parse_datetime
crate and the only (tiny) piece left is to call it from `date`.

It also adds the test-case from the original issue. I did not include
the two tests from PR#4917 because they appear to work even without
this change. I am happy to include them of course if prefered.

Closes: #4657

Thanks to Ben Schofield

* tests: tweak changes to test_date.rs to be more idiomatic

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-03-30 15:17:10 +01:00
Daniel Hofstetter eca8bafcc1
Merge pull request #6147 from sylvestre/tail-pid
tail: allow multiple usage of --pid to match upstream (regression of …
2024-03-30 14:07:33 +01:00
Daniel Hofstetter 4a64337f52
Merge pull request #6149 from mvo5/fix-deprecated-timestamp_subsec_nanos
tests: fix deprecation warning `timestamp_subsec_nanos()`
2024-03-30 13:24:23 +01:00
Michael Vogt b703ec8795
tests: fix formating of test_touch.rs
Thanks to Sylvestre!

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-03-30 12:31:07 +01:00
Michael Vogt a2f8084d48 tests: fix deprecation warning timestamp_subsec_nanos()
When building coreutils I got the following deprecation warning:
```
warning: use of deprecated method `chrono::NaiveDateTime::timestamp_subsec_nanos`: use `.and_utc().timestamp_subsec_nanos()` instead
  --> tests/by-util/test_touch.rs:37:59
   |
37 | ..._utc().timestamp(), tm.timestamp_subsec_nanos())
   |                           ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: `coreutils` (test "tests") generated 1 warning
```
This commit fixes it.
2024-03-30 11:17:22 +01:00