Commit graph

10040 commits

Author SHA1 Message Date
Sylvestre Ledru
111723aa84 rename date-usage.mkd => date-usage.md 2023-04-26 22:43:48 +02:00
Sylvestre Ledru
583a247d9d Improve the date md page 2023-04-26 08:48:13 +02:00
Sylvestre Ledru
6f0e4ece9d
Merge pull request #4786 from uutils/renovate/humantime_to_duration-0.x
chore(deps): update rust crate humantime_to_duration to 0.1.3
2023-04-25 15:59:20 +02:00
renovate[bot]
1f3ea00d33
chore(deps): update rust crate humantime_to_duration to 0.1.3 2023-04-25 13:40:07 +00:00
Daniel Hofstetter
0984097103
Merge pull request #4757 from uutils/renovate/regex-1.x
chore(deps): update rust crate regex to 1.8.1
2023-04-25 08:27:11 +02:00
Sylvestre Ledru
6115af6386
Merge pull request #4769 from sylvestre/touch
touch: improve support for dangling link
2023-04-25 08:26:23 +02:00
Sylvestre Ledru
d3fc670f65
Merge pull request #4781 from sunfishcode/sunfishcode/fix-warning
Fix a warning in upstream code on Rust nightly.
2023-04-25 07:57:02 +02:00
renovate[bot]
54deb3043c
chore(deps): update rust crate regex to 1.8.1 2023-04-25 05:29:58 +00:00
Daniel Hofstetter
714206dd25
Merge pull request #4778 from sylvestre/use_humantime_to_duration
Use the humantime_to_duration crate
2023-04-25 07:05:03 +02:00
Dan Gohman
f187a5ccff Fix a warning in upstream code on Rust nightly.
Rust nightly recently [started] issuing the following warning when
compiling coreutils:

[started]: https://github.com/rust-lang/rust/pull/109944

```
warning: getting the inner pointer of a temporary `CString`
   --> src/uucore/src/lib/features/entries.rs:324:67
    |
324 |                         let data = $fnam(CString::new(k).unwrap().as_ptr());
    |                                          ------------------------ ^^^^^^ this pointer will be invalid
    |                                          |
    |                                          this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
...
340 | f!(getpwnam, getpwuid, uid_t, Passwd);
    | ------------------------------------- in this macro invocation
    |
    = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
    = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
    = note: `#[warn(temporary_cstring_as_ptr)]` on by default
    = note: this warning originates in the macro `f` (in Nightly builds, run with -Z macro-backtrace for more info)
```

There doesn't seem to be an actual problem in this case, as the pointer is
only used within the statement.
2023-04-24 14:31:05 -07:00
Sylvestre Ledru
b9f5fc4b7c Ignore the duplicate declaration for aho-corasick
error[duplicate]: found 2 duplicate entries for crate 'aho-corasick'
  ┌─ /github/workspace/Cargo.lock:4:1
  │
4 │ ╭ aho-corasick 0.7.19 registry+https://github.com/rust-lang/crates.io-index
5 │ │ aho-corasick 1.0.1 registry+https://github.com/rust-lang/crates.io-index
  │ ╰────────────────────────────────────────────────────────────────────────^ lock entries
  │
  = aho-corasick v0.7.19
    └── cpp_macros v0.5.7
        └── cpp v0.5.7
            └── uu_stdbuf_libstdbuf v0.0.18
                └── (build) uu_stdbuf v0.0.18
                    └── coreutils v0.0.18
  = aho-corasick v1.0.1
    └── regex v1.8.1
        ├── bindgen v0.63.0
        │   ├── (build) fts-sys v0.2.4
        │   │   └── uu_chcon v0.0.18
        │   │       └── coreutils v0.0.18
        │   └── (build) selinux-sys v0.6.2
        │       └── selinux v0.4.0
2023-04-24 22:23:11 +02:00
Sylvestre Ledru
d1aa1ac963 Use the humantime_to_duration crate 2023-04-24 22:23:07 +02:00
Sylvestre Ledru
b8d70ec4a4
Merge pull request #4779 from m11o/seq-move-help-strings-to-md-file
seq: move help strings to markdown file
2023-04-24 20:44:34 +02:00
m11o
dd89ec709b remove todo comment
`-f` option is implemented in #2918
2023-04-24 23:44:28 +09:00
m11o
1cb0a673a0 change static keyword to const keyword 2023-04-24 23:38:45 +09:00
m11o
fd02bd13a1 seq: move help strings to md file 2023-04-24 23:35:52 +09:00
Sylvestre Ledru
c262fa936c Improve the doc and simplify the code
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-04-24 12:03:21 +02:00
Sylvestre Ledru
84e0610487 touch: don't generate an error on 'touch -h -' 2023-04-24 12:03:21 +02:00
Sylvestre Ledru
aaea758b6a touch: -h should not fail when running on broken symlink
Fixes more of tests/touch/no-dereference.sh
2023-04-24 12:03:21 +02:00
Sylvestre Ledru
c3656e561c touch: -h -r should not fail when running on broken symlink
Fixes the beginning of:
tests/touch/no-dereference.sh
2023-04-24 12:03:21 +02:00
Sylvestre Ledru
afa5c15581 gnu test: don't sync the po files
We aren't testing the locale yet.
2023-04-24 12:03:21 +02:00
Sylvestre Ledru
417d238bba
Merge pull request #4773 from cakebaker/mv_fix_issue_4724
mv: show no error if overwriting is declined in interactive mode
2023-04-24 08:58:21 +02:00
Daniel Hofstetter
f9b60c4232
Merge pull request #4776 from vikiminki/factor_flush
Add flush after calculating factor
2023-04-24 08:09:17 +02:00
Masahito Osako
d18ccc6a2a
runcon: move help strings to markdown file (#4774) 2023-04-24 08:01:28 +02:00
vix
f9b7423eef Add flush after calculating factor 2023-04-23 20:35:13 +02:00
Daniel Hofstetter
e94f1d8eb7 mv: -i show no error if overwriting is declined 2023-04-23 15:27:24 +02:00
Terts Diepraam
698bdf5f9a
Merge pull request #4770 from m11o/readlink-move-strings-to-md-file
readlink: move help strings to markdown file
2023-04-22 12:49:12 +02:00
m11o
31c1d9c956 fix format 2023-04-22 16:33:58 +09:00
m11o
b84a94b889 refactor: use override_help instead of override_usage 2023-04-22 16:11:36 +09:00
m11o
e82ba6e707 readlink: move help strings to markdown file 2023-04-22 16:10:26 +09:00
Sylvestre Ledru
32d313cdc7
Merge pull request #4765 from cakebaker/du_fix_clippy_warning_in_test
du: fix clippy warning in test
2023-04-21 23:17:27 +02:00
Daniel Hofstetter
7730c8171d du: fix clippy warning in test 2023-04-21 17:01:40 +02:00
Sylvestre Ledru
48f9786164
Merge pull request #4761 from cakebaker/uudoc_fix_clippy_warnings
uudoc: fix clippy warnings
2023-04-21 15:52:19 +02:00
Daniel Hofstetter
3272d14fab uudoc: fix clippy warnings 2023-04-21 10:14:44 +02:00
Sylvestre Ledru
fe7dd4071d
Merge pull request #4760 from cakebaker/test_wc_use_variables_directly_in_format_strings
test,wc: use vars directly in format! strings
2023-04-21 10:11:22 +02:00
Sylvestre Ledru
caaa09c183
Merge branch 'main' into test_wc_use_variables_directly_in_format_strings 2023-04-21 10:11:18 +02:00
Sylvestre Ledru
bef5dca40a
Merge pull request #4745 from Joining7943/ci-android-speed-up-build-and-test
ci/android: speed up build and test
2023-04-21 09:36:15 +02:00
Sylvestre Ledru
20a1ed735d
Merge pull request #4748 from cakebaker/docs_document_fmt_in_gnu_extensions
docs: document fmt in GNU extensions
2023-04-21 09:34:26 +02:00
Daniel Hofstetter
98fb8fa144 test,wc: use vars directly in format! strings 2023-04-21 08:33:56 +02:00
Daniel Hofstetter
5666980a13
Merge pull request #4755 from uutils/renovate/libc-0.x
fix(deps): update rust crate libc to 0.2.142
2023-04-21 07:53:23 +02:00
renovate[bot]
790958e4f3
fix(deps): update rust crate libc to 0.2.142 2023-04-20 17:09:10 +00:00
Sylvestre Ledru
89d6b8dfea
Merge pull request #4754 from cakebaker/gnu_coreutils_update_reference_to_9_3
GNU/coreutils: update reference to 9.3
2023-04-20 18:06:06 +02:00
Sylvestre Ledru
ab22f49feb
Merge pull request #4753 from cakebaker/fmt_cleanup_tests
fmt: cleanup tests
2023-04-20 17:55:55 +02:00
Joining7943
ad5d33f1a9 ci/android: Fix and improve caching. Fix and improve android-commands.sh 2023-04-20 17:36:25 +02:00
Joining7943
56d8b5a617 ci/android: Remove caching with Swatinem/rust-cache and sccache. 2023-04-20 16:48:25 +02:00
Joining7943
f155185df6 util/android-commands: Fix shellcheck warnings. Reformat file. 2023-04-20 16:48:15 +02:00
Daniel Hofstetter
c571a31405 GNU/coreutils: update reference to 9.3 2023-04-20 16:44:50 +02:00
Daniel Hofstetter
72041568e7 fmt: cleanup tests 2023-04-20 15:22:26 +02:00
Terts Diepraam
19add3a4bd
Merge pull request #4398 from cakebaker/uudoc_simplify_about_text_generation
uudoc, uucore_procs: move markdown parsing to HelpParser
2023-04-20 11:29:16 +02:00
Sylvestre Ledru
744529381d
Merge pull request #4740 from Joining7943/ci-use-nextest-as-test-runner
`ci`: Run tests with nextest
2023-04-20 09:50:42 +02:00