Daniel Hofstetter
55d931e853
Merge pull request #5582 from zhitkoff/wc-files
...
wc: pass GNU test wc-files0-from.pl
2023-11-27 06:57:43 +01:00
zhitkoff
16f6a13697
wc: change where to unwrap
2023-11-26 15:14:48 -05:00
Terts Diepraam
cd4f455a77
Merge pull request #5581 from GDYendell/hashsum-remove-crash
...
hashsum: Remove usage of crash! macro
2023-11-26 12:25:50 +01:00
Gary Yendell
b6553edfb7
hashsum: Remove usage of crash! macro
2023-11-26 10:38:01 +00:00
Daniel Hofstetter
8f22e01d63
Merge pull request #5583 from uutils/renovate/davidanson-markdownlint-cli2-action-14.x
...
chore(deps): update davidanson/markdownlint-cli2-action action to v14
2023-11-26 10:40:40 +01:00
renovate[bot]
04e568db73
chore(deps): update davidanson/markdownlint-cli2-action action to v14
2023-11-26 00:47:15 +00:00
zhitkoff
f8f6346126
wc: fix FilesDisabled error message
2023-11-25 18:16:34 -05:00
Clint Teece
84b5e6f0a1
du: start printing output immediately ( #5552 )
...
* du: very rough draft of continuously printing output
* du: clean up printing logic, still needs some polishing
* du: gracefully handle case where `du` returns no `Stat`s
* du: print output using separate thread
* du: clean up print thread implementation
* du: send ownership of `Stat`s to printing thread as soon as `du` is done with them
* du: add basic error handling for communication between threads, use `StatPrinter` to handle printing thread logic
* du: move printing grand total into `StatPrinter`, and move initialization of printing-related variables into `StatPrinter::new`
* du: clean up calculation of `convert_size` function, and separate printing a single stat our into its own method in `StatPrinter`
* du: have printing thread handle printing IO-related errors, to ensure error messages and regular output message are written one at a time
* du: add comment explaining print thread, remove outdated comments and clippy allows
* du: restore clippy allows for cognitive complexity
---------
Co-authored-by: clint <cteece3@gatech.edu>
2023-11-25 15:13:12 +01:00
Sylvestre Ledru
64d47730bc
Merge pull request #5555 from cakebaker/cp_adapt_omitting_dir_msg
...
cp: improve error msg if -r is not specified
2023-11-24 21:51:04 +01:00
Sylvestre Ledru
46811f11c3
Merge pull request #5567 from zhitkoff/split-l-chunk
...
split: pass GNU test l-chunk
2023-11-24 21:48:01 +01:00
zhitkoff
4dc46f10e9
split: pass GNU test l-chunk
2023-11-24 10:06:16 +01:00
Daniel Hofstetter
97d30bd486
Merge pull request #5577 from cobaweel/issue-5576
...
Fix issue 5576 (regex matching bug in expr)
2023-11-23 17:57:45 +01:00
zoze0
550f3b0c48
uucore: add support for loongarch64 ( #5574 )
...
* uucore: add support for loongarch64
* add loongarch
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2023-11-23 17:41:11 +01:00
Coba Weel
7efe33108a
Fix issue 5576 (regex matching bug in expr)
...
Issue 5576 reported a bug in expr, found by the fuzzer. The problem
turns out to be with the regex match operator `:`, which is defined in
POSIX and the GNU manual to match the pattern only when it occurs at
the beginning of the string, i.e., the regex has an implicit `^`
prepended to it. We hadn't been doing that.
2023-11-23 16:26:37 +01:00
Sylvestre Ledru
fff1302bdf
Merge pull request #5578 from cakebaker/expr_fix
...
expr: adapt error messages, revert most of #5559
2023-11-23 15:47:23 +01:00
Daniel Hofstetter
c2bfb6a465
expr: adapt error messages, revert most of #5559
2023-11-23 15:14:25 +01:00
Daniel Hofstetter
2e77d99dd4
expr: fail fast if there are no operands
2023-11-23 14:35:02 +01:00
Sylvestre Ledru
af021e0d4f
Merge pull request #5559 from pawelngei/expr-substr-error
...
expr: different stderr with `expr "56" "substr"`
2023-11-22 14:56:42 +01:00
Daniel Hofstetter
2fdc782699
Merge pull request #5568 from uutils/renovate/data-encoding-macro-0.x
...
fix(deps): update rust crate data-encoding-macro to 0.1.14
2023-11-22 08:47:20 +01:00
renovate[bot]
3425ee8d59
fix(deps): update rust crate data-encoding-macro to 0.1.14
2023-11-22 06:09:44 +00:00
Daniel Hofstetter
325d22defc
Merge pull request #5569 from uutils/renovate/data-encoding-2.x
...
fix(deps): update rust crate data-encoding to 2.5
2023-11-22 07:09:01 +01:00
renovate[bot]
18b5c22567
fix(deps): update rust crate data-encoding to 2.5
2023-11-21 22:24:11 +00:00
Daniel Hofstetter
dbb29ec400
Merge pull request #5566 from Luv-Ray/fix-expr-issue5560
...
`expr`: check prefix operation
2023-11-21 16:30:45 +01:00
Zhuoxun Yang
44702940d2
tests/expr: check prefix operation
2023-11-21 22:06:20 +08:00
Zhuoxun Yang
17d21d2d9c
expr: check prefix operation
2023-11-21 22:05:41 +08:00
Sylvestre Ledru
a0ac3dd229
fuzz printf ( #5556 )
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-11-21 12:38:12 +01:00
ALXD
8b650a7a9b
expr: add tests for precise error messages
2023-11-21 10:14:24 +01:00
ALXD
d2ede92736
expr: make error messages align with GNU expr
2023-11-21 10:14:24 +01:00
Sylvestre Ledru
e9bc1eeab5
Merge pull request #5564 from cakebaker/cargo_toml_zip_default_features
...
Cargo.toml: fix typo
2023-11-21 09:47:22 +01:00
Daniel Hofstetter
bd02fad612
Merge pull request #5563 from sylvestre/fuzz-should-pass
...
fuzzing: add a variable to state if we know it fails or not
2023-11-21 09:40:21 +01:00
Daniel Hofstetter
131c310bcb
Cargo.toml: default_features -> default-features
2023-11-21 09:10:58 +01:00
Sylvestre Ledru
90b61a8c5c
fuzzing: add a variable to state if we know it fails or not
2023-11-20 22:18:32 +01:00
clara swanson
58087df02a
stdbuf: remove crash macro ( #5549 )
...
* stdbuf: remove crash! macro
* stdbuf: change target_vendor back to apple
* tests/stdbuf: change stderr_only to usage_error in test_stdbuf_invalid_mode_fails
* stdbuf: add exit code to check_option
* stdbuf: remove set_exit_code line from error
2023-11-20 10:16:18 +01:00
Daniel Hofstetter
285e580b6e
cp: improve error msg if -r is not specified
2023-11-20 09:15:15 +01:00
Sylvestre Ledru
02dc6ee67e
Merge pull request #5535 from sylvestre/check-version
...
publishing: check if the current version is already there or not
2023-11-19 18:42:10 +01:00
Yury Zhytkou
eb00c195c6
split: pass GNU tests/b-chunk.sh ( #5475 )
...
---------
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Co-authored-by: Brandon Elam Barker <brandon.barker@gmail.com>
Co-authored-by: Kostiantyn Hryshchuk <statheres@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-17 17:19:10 +01:00
Daniel Hofstetter
a7e5af4770
Merge pull request #5540 from cswn/join-remove-crash-macro
...
join: remove crash! macro
2023-11-17 07:00:55 +01:00
Sylvestre Ledru
0a385ee7a5
Merge pull request #5548 from cakebaker/clippy_fix_warnings_rust_1_74
...
clippy: fix warnings introduced by Rust 1.74
2023-11-16 17:28:19 +01:00
Daniel Hofstetter
2f9fcf73fa
clippy: fix warnings introduced by Rust 1.74
2023-11-16 16:21:28 +01:00
cswn
65dc70b553
join: remove match in uumain and return exec result
2023-11-16 12:02:39 +01:00
Sylvestre Ledru
7ff4cb3f4e
update of the license file to make it generic ( #5545 )
2023-11-16 10:40:31 +01:00
Sylvestre Ledru
2588f988a7
Merge pull request #5547 from YDX-2147483647/link
...
doc: Fix a broken link
2023-11-16 09:51:41 +01:00
cswn
a064c88656
join: replace match with JoinError with map_err_context
2023-11-16 09:35:32 +01:00
Y.D.X.
212991cd53
doc: Fix a broken link
...
`/build.md` is absolute, so the link in https://uutils.github.io/coreutils/book/installation.html turns out to be https://uutils.github.io/build.html instead of https://uutils.github.io/coreutils/book/build.html .
Reference: [Links · Markdown - mdBook Documentation](https://rust-lang.github.io/mdBook/format/markdown.html#links )
2023-11-16 12:26:40 +08:00
Terts Diepraam
da84583b5d
Merge pull request #5543 from pawelngei/printf-x-incorrect-exit-code-when-invalid-value
...
printf: Fixing incorrect exit code when passing invalid value to %x
2023-11-15 21:20:58 +01:00
ALXD
3cdb0966ae
printf: add a test for %x with invalid value
2023-11-15 17:51:43 +01:00
ALXD
b3eae16fad
printf: intf: change warning and exit code
2023-11-15 17:50:34 +01:00
cswn
5dff5f2f73
join: rename f variable to file_buf
2023-11-15 13:52:01 +01:00
Daniel Hofstetter
c8b8509b00
Merge pull request #5539 from YDX-2147483647/patch-1
...
doc: Fix the markdown highlighting syntax
2023-11-15 13:39:41 +01:00
cswn
94f6702ba5
join: remove crash! macro
2023-11-15 13:20:22 +01:00