Commit graph

12174 commits

Author SHA1 Message Date
Sudhakar Verma
2aa8a3502f printf : no infinite loop 2024-01-12 16:08:47 +05:30
Sylvestre Ledru
edb77b8d59
Merge pull request #5827 from samueltardieu/issue-5826
printf: %c prints the first byte of its argument
2024-01-12 00:25:32 +01:00
Daniel Hofstetter
5b860cb428
Merge pull request #5828 from samueltardieu/printf-double-quote
printf: output of double-quote should not be escaped
2024-01-11 08:52:51 +01:00
Samuel Tardieu
47e908bc6c printf: output of double-quote should not be escaped
This is obtained by escaping the sequence `\"` as `"`.
2024-01-10 19:17:42 +01:00
Sylvestre Ledru
19a9380089
Merge pull request #5803 from D9nni/cksum
cksum: Add --raw argument
2024-01-10 18:36:08 +01:00
Samuel Tardieu
7d32e49fb9 printf: %c prints the first byte of its argument 2024-01-10 18:19:56 +01:00
Daniel Hofstetter
e948d2e8e5 ci: install mingw-w64-x86_64-gcc for windows-gnu 2024-01-10 17:54:58 +01:00
Marras Antoine
0648321d97 printf: 0x not shown anymore in front of 0 while in alternative mode 2024-01-10 16:55:04 +01:00
Marras Antoine
3b884966ac printf: added failing tests on alternative hex form 2024-01-10 16:55:03 +01:00
Terts Diepraam
0071442cba
Merge pull request #5783 from samueltardieu/printf-compatibility
printf compatibility
2024-01-10 16:33:37 +01:00
D9nni
9a76997b0a cksum: fixed clippy and fmt errors 2024-01-10 16:49:52 +02:00
Samuel Tardieu
a85a792c88 format: use the new number parser and fix the error messages
The error messages are more compliant with GNU coreutils.
Also, floating hexadecimal numbers are now supported in
`printf`.
2024-01-10 14:34:43 +01:00
Samuel Tardieu
00cd6fa347 format: new dedicated number parser
The parser can parse integral and floating point numbers as expected by
the coreutils `printf` command.
2024-01-10 14:34:43 +01:00
D9nni
911df1d76c cksum: code improvements for cksum --raw --algorithm 2024-01-10 15:15:23 +02:00
D9nni
c7b15ddce9 cksum: fixed cksum --raw --algorithm 2024-01-10 15:04:19 +02:00
Terts Diepraam
aafdf10dc8 CI: test uucore with coreutils to run it with the proper features 2024-01-10 14:03:53 +01:00
Daniel Hofstetter
4754e071d4 deny.toml: update comment for windows-sys 2024-01-10 10:48:50 +01:00
Daniel Hofstetter
d29adfcb09 Bump mio from 0.8.6 to 0.8.10 2024-01-10 10:47:20 +01:00
Daniel Hofstetter
0fe5f39b74 Bump console from 0.15.7 to 0.15.8 2024-01-10 10:46:03 +01:00
D9nni
96271ffa3c cksum: added tests for --raw with each algorithm, not working for crc, sysv, bsd 2024-01-09 23:12:40 +02:00
Daniel Hofstetter
f400a07dc6 pathchk: remove useless comments 2024-01-09 15:19:22 +01:00
Daniel Hofstetter
49154669a6 pathchk: simplify and rename test 2024-01-09 15:17:15 +01:00
Daniel Hofstetter
cd9863dd29
Merge pull request #5808 from tertsdiepraam/printf-octal-prefix
`printf`: use 0 instead of 0o as octal prefix
2024-01-09 13:38:19 +01:00
Terts Diepraam
9858fef20e printf: use 0 instead of 0o as octal prefix 2024-01-09 10:34:08 +01:00
Samuel Tardieu
5dfeca9ff2 format: %c prints the first character of a string 2024-01-09 00:13:54 +01:00
Sylvestre Ledru
7dc4afb5cc
Merge pull request #5814 from cakebaker/android
ci: set -no-window in Android workflow
2024-01-08 19:50:55 +01:00
Sylvestre Ledru
294a0abb9c
Merge pull request #5812 from cakebaker/ln_fix_unused_import_on_android
ln: fix "unused import" warning on Android
2024-01-08 18:05:10 +01:00
Sylvestre Ledru
3552b4af61
Merge pull request #5813 from cakebaker/head_disable_tests_on_android
head: disable some tests on Android
2024-01-08 18:01:51 +01:00
Daniel Hofstetter
e29afdc0df head: disable some tests on Android 2024-01-08 17:29:34 +01:00
Daniel Hofstetter
62dffc3250 ln: fix "unused import" warning on Android 2024-01-08 17:17:43 +01:00
Daniel Hofstetter
833c1a0d3f ci: set -no-window in Android workflow 2024-01-08 16:19:43 +01:00
D9nni
28b5224725 cksum: fixed test for --raw on single file 2024-01-08 15:50:25 +02:00
Daniel Hofstetter
1c6bf6991c nl: don't exit if input is directory 2024-01-08 11:01:07 +01:00
Sylvestre Ledru
d72343bc64
Merge branch 'main' into cksum 2024-01-08 09:02:11 +01:00
Daniel Hofstetter
8e83b347c6
Merge pull request #5804 from Ato2207/cksum_error
Made cksum return an error if the algorithm blake2b is used on a directory.
2024-01-08 08:38:48 +01:00
D9nni
f03ef79bc8 cksum: added tests for --raw and fixed fmt whitespace error 2024-01-08 08:51:06 +02:00
Atomei Alexandru Constantin
0bfd4bbdf7 Added test to validate that it now generates the error for an arbitrary directory 2024-01-08 00:08:24 +02:00
Atomei Alexandru Constantin
288ad97878 Made cksum to return an error if the algorithm blake2b is used on a directory 2024-01-07 23:39:33 +02:00
D9nni
8c1fc8b287 Added --raw argument, with error for multiple files 2024-01-07 21:43:31 +02:00
Daniel Hofstetter
f1499d0e79
Merge pull request #5802 from uutils/renovate/libc-0.x
chore(deps): update rust crate libc to 0.2.152
2024-01-07 17:29:54 +01:00
renovate[bot]
f612546ff7
chore(deps): update rust crate libc to 0.2.152 2024-01-07 15:21:27 +00:00
Daniel Hofstetter
7b34e3e4bb
Merge pull request #5800 from sylvestre/remove-wa
Remove the tests/cp/link-heap.sh workaround
2024-01-07 13:14:07 +01:00
Sylvestre Ledru
724305e64f Remove the tests/cp/link-heap.sh workaround
No longer needed since github.com/uutils/coreutils/pull/5789 landed
2024-01-06 23:33:32 +01:00
Sylvestre Ledru
a60c3420d5
Merge pull request #5789 from samueltardieu/issue-5766
Fix seq output
2024-01-06 23:33:02 +01:00
Sylvestre Ledru
b309d64e78
Merge branch 'main' into issue-5766 2024-01-06 22:55:54 +01:00
Kostiantyn Hryshchuk
c867d6bfb1
shred: implemented "--remove" arg (#5790) 2024-01-06 22:50:21 +01:00
Sylvestre Ledru
247f2e55bd
seq: adjust some error messages. GNU's are better (#5798)
* seq: adjust some error messages. GNU's are better
tested by tests/seq/seq.pl

* uucore: remove todo

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-06 16:54:29 +01:00
Daniel Hofstetter
d158f1a396
Merge pull request #5799 from ffontaine/main
uucore: add support for sparc64
2024-01-06 14:29:46 +01:00
Fabrice Fontaine
9f4330f94c uucore: add support for sparc64
Add support for sparc64 in uucore to avoid the following build failure
with nushell:

error[E0308]: mismatched types
   --> /home/autobuild/autobuild/instance-7/output-1/build/nushell-0.85.0/VENDOR/uucore/src/lib/features/fs.rs:121:16
    |
111 |     pub fn number_of_links(&self) -> u64 {
    |                                      --- expected `u64` because of return type
...
121 |         return self.0.st_nlink;
    |                ^^^^^^^^^^^^^^^ expected `u64`, found `u32`
    |
help: you can convert a `u32` to a `u64`
    |
121 |         return self.0.st_nlink.into();
    |                               +++++++

For more information about this error, try `rustc --explain E0308`.
error: could not compile `uucore` (lib) due to previous error

Fixes:
 - http://autobuild.buildroot.org/results/f9f0287a8e39c65895014ca513ed25071f020add

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2024-01-06 10:26:54 +01:00
Daniel Hofstetter
a44845d5f7
Merge pull request #5796 from michel-slm/add-homepage-and-repo
uuhelp_parser: add links to homepage and repo
2024-01-06 07:10:30 +01:00