Commit graph

11668 commits

Author SHA1 Message Date
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
Terts Diepraam
76eca8d999 uucore/format: fix doctests 2023-11-17 14:43:25 +01:00
Terts Diepraam
f3da0817a5 printf: support precision for integers 2023-11-17 14:42:52 +01:00
Terts Diepraam
f83e0d1b04 printf: accept multiple length parameters 2023-11-17 14:41:42 +01:00
Terts Diepraam
cd0c24af07 printf: implement %b 2023-11-17 14:41:14 +01:00
Terts Diepraam
a45ff8ca73 printf: more flexible parsing of unparsed arguments 2023-11-17 14:39:39 +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
Terts Diepraam
eaf5006379 printf: parse arguments and handle escape codes 2023-11-16 17:00:41 +01:00
Daniel Hofstetter
2f9fcf73fa clippy: fix warnings introduced by Rust 1.74 2023-11-16 16:21:28 +01:00
Terts Diepraam
e7d58f673f seq: simplify and use new printf implementation 2023-11-16 14:29:49 +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
Y.D.X
3f177ef97f
doc: Fix the markdown highlighting syntax
There should be a new line after `[!WARNING]`, according to [community · Discussion #16925](https://github.com/orgs/community/discussions/16925).
2023-11-15 19:09:46 +08:00