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
zhitkoff
7b2a3e236e
split: r-chunk tests and infinite input
2023-11-25 11:12:08 -05:00
zhitkoff
440e7b1a59
split: r-chunk test compliance
2023-11-25 11:12:08 -05:00
zhitkoff
dc92a434ef
split: handling system limit on open files
2023-11-25 11:12:08 -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
Terts Diepraam
e95add7940
uucore/format: fix license headers and improve docs
2023-11-22 14:06:03 +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
Terts Diepraam
4b9fca8def
Merge branch 'printf-rewrite' of github.com:tertsdiepraam/coreutils into printf-rewrite
2023-11-21 16:49:24 +01:00
Terts Diepraam
0822511fdc
test/printf: ignoring rounding up to 2
...
This is a limitation of the current implementation, which should ultimately use "long double" precision instead of f64.
2023-11-21 16:49:20 +01: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
Terts Diepraam
da7c168f9d
all: reduce imports needed for show and show_if_err macros
2023-11-21 12:49:07 +01:00
Sylvestre Ledru
07aaf61aa1
Merge branch 'main' into printf-rewrite
2023-11-21 12:38:49 +01: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
Terts Diepraam
5c04283d6e
printf: address fmt, clippy, spelling and failing test
2023-11-21 00:42:02 +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
Terts Diepraam
6d2698b802
Merge branch 'main' into printf-rewrite
2023-11-20 13:53:11 +01:00
Terts Diepraam
68d036c9a2
printf: basic support for unicode escape sequences
2023-11-20 13:45:02 +01:00
Terts Diepraam
066d8ba73d
printf: coerce missing and invalid arguments to 0
2023-11-20 13:25:20 +01:00
Terts Diepraam
c43ee01d19
printf: allow precision in string
2023-11-20 12:38:26 +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
Daniel Hofstetter
8e796d3bb6
mv: fix issue with -T and dest ending with "/"
2023-11-19 15:10:28 +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
Terts Diepraam
5f2374b339
printf: fix negative hex argument parsing
2023-11-17 14:57:09 +01:00
Terts Diepraam
ce18e0ab97
printf: ignore hexadecimal floats test
...
This can be un-ignored when it is implemented
2023-11-17 14:47:41 +01:00
Terts Diepraam
fef84f7203
printf: add emoji character test
2023-11-17 14:47:08 +01:00
Terts Diepraam
955640aac8
printf: fix and test float formatting
2023-11-17 14:46:38 +01:00
Terts Diepraam
4aafb3f88b
printf: exit correctly on \c
2023-11-17 14:46:00 +01:00