Commit graph

10087 commits

Author SHA1 Message Date
Sylvestre Ledru
f8d02d2066
Merge pull request #4798 from niyaznigmatullin/ls_tests_dots_in_usernames
[tests/ls] Support user names containing dots
2023-04-27 21:18:41 +02:00
Niyaz Nigmatullin
467cbf30de [tests/ls] Support user names containing dots
- Fix regex's in tests for `ls -l`
2023-04-27 18:27:48 +03:00
Daniel Hofstetter
b79465a5e7
Merge pull request #4797 from m11o/stty-move-strings-to-md-file
stty: move help strings to markdown file
2023-04-27 16:59:47 +02:00
m11o
0391239273 fix cargo fmt 2023-04-27 22:17:37 +09:00
m11o
c49769865a stty: move help strings to markdown file 2023-04-27 22:14:52 +09:00
Sylvestre Ledru
eb8f353a2f
date usage help: Remove the examples in the description table
we have a new column with examples
2023-04-27 09:17:39 +02:00
Sylvestre Ledru
13ca3ad0b1
Merge pull request #4693 from miles170/ci-check-release-sizes
CI: warn if the size of the binary increases by more than 5%
2023-04-27 09:09:32 +02:00
Masahito Osako
746331cc65
stdbuf: move help strings to markdown file (#4792) 2023-04-27 08:13:46 +02:00
Daniel Hofstetter
dffd2f082e
Merge pull request #4789 from sylvestre/doc
Improve the date md page
2023-04-27 07:19:45 +02:00
Sylvestre Ledru
474d391eb1
Merge pull request #4790 from sylvestre/date_use_humantime_to_duration
date -d supports - 1 year ago, 2 second, etc
2023-04-26 23:54:49 +02:00
Sylvestre Ledru
360cbda0c5
Merge pull request #4782 from cakebaker/mv_no_clobber_behavior_change
mv: adapt -n behavior to GNU mv 9.3
2023-04-26 22:47:12 +02:00
Sylvestre Ledru
5a7eb5b3a3
Merge pull request #4783 from sunfishcode/sunfishcode/default-nice
Avoid spurious failures in the presence of non-zero default nice
2023-04-26 22:46:37 +02:00
Sylvestre Ledru
686ad2d6d2
Merge pull request #4784 from sunfishcode/sunfishcode/ls-order-time
Use `expected_result` in test_ls to avoid spurious failures
2023-04-26 22:46:06 +02:00
Sylvestre Ledru
111723aa84 rename date-usage.mkd => date-usage.md 2023-04-26 22:43:48 +02:00
Sylvestre Ledru
825d240ef0 date -d supports - 1 year ago, 2 second, etc 2023-04-26 22:14:15 +02:00
Sylvestre Ledru
cf33a6642d
Merge pull request #4791 from cakebaker/build_gnu_always_update_path
build-gnu.sh: always update PATH in Makefile
2023-04-26 18:45:04 +02:00
Sylvestre Ledru
0f268428fe
Merge pull request #4379 from ZauJulio/hotfix-mktemp
mktemp: fix PrefixContainsDirSeparator verification
2023-04-26 18:28:56 +02:00
Daniel Hofstetter
eb45666bb6 docs: mention UU_MAKE_PROFILE in CONTRIBUTING.md 2023-04-26 17:07:18 +02:00
Daniel Hofstetter
9b67ad05b8 build-gnu.sh: always update PATH in Makefile 2023-04-26 17:07:18 +02:00
Sylvestre Ledru
583a247d9d Improve the date md page 2023-04-26 08:48:13 +02:00
Sylvestre Ledru
4997851d5b
Merge pull request #4787 from shinhs0506/mv-verbose
mv: add 'renamed " in the beginning of the message when verbose flag is set
2023-04-26 08:34:42 +02:00
Daniel Hofstetter
621acfd12d
Merge pull request #4785 from m11o/split-move-strings-to-md-file
split: move help strings to markdown file
2023-04-26 07:44:44 +02:00
Daniel Hofstetter
4c6e420ba2
Merge pull request #4788 from uutils/renovate/davidanson-markdownlint-cli2-action-10.x
chore(deps): update davidanson/markdownlint-cli2-action action to v10
2023-04-26 07:41:19 +02:00
renovate[bot]
31578ea18d
chore(deps): update davidanson/markdownlint-cli2-action action to v10 2023-04-26 04:41:44 +00:00
John Shin
d4630c83b4 mv: add 'renamed ' in the beginning when verbose flag is set 2023-04-25 21:27:52 -07:00
Dan Gohman
12686c478e Avoid spurious failures in the presence of non-zero default nice
Make `test_get_current_niceness` query the libc nice value instead of
hard-coding a value of zero. This avoids a spurious failure on systems
which have a non-zero default nice value.

This fixes spurious failures on my machine.
2023-04-25 14:39:37 -07: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
m11o
0b84aa52f3 fix check-spell 2023-04-25 22:26:47 +09:00
m11o
869614d343 fix cargo fmt 2023-04-25 22:01:10 +09:00
m11o
98dd31c00d split: move help strings to markdown file 2023-04-25 22:00:22 +09:00
Dan Gohman
eba000ddcc Use expected_result in test_ls to avoid spurious failures
As the existing comment says, the expected output here is dependent on
the platform, so use the `expected_result` utility to avoid hard-coding
specific results for each platform.

This fixes spurious failures on my machine.
2023-04-25 05:40:37 -07:00
Daniel Hofstetter
804274dbf4 mv: adapt -n behavior to GNU mv 9.3 2023-04-25 11:33:48 +02: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