Commit graph

12155 commits

Author SHA1 Message Date
Sylvestre Ledru
4557821adf
Merge branch 'main' into fix-printf-hex-alternate-zero 2024-01-15 10:41:09 +01:00
Sylvestre Ledru
e340d8177e
Merge pull request #5842 from cakebaker/uucore_fix_clippy_warning
uucore: fix clippy warning from if_not_else lint
2024-01-15 10:40:23 +01:00
Daniel Hofstetter
e91540fc07 uucore: fix clippy warning from if_not_else lint 2024-01-15 10:27:59 +01:00
Biplab Mochan Gartia
076b905513
cksum: stops when one of given files doesn't exist #5809 (#5820)
* cksum: stops when one of given files doesn't exist #5809

* removed printld  cksum: stops when one of given files doesn't exist #5809

* formatting the code cksum: stops when one of given files doesn't exist #5809

* formatting the code cksum: stops when one of given files doesn't exist #5809

* set exist status cksum: stops when one of given files doesn't exist #5809

* code quality formatting issue cksum: stops when one of given files doesn't exist #5809

* tertsdiepraam idea cksum: stops when one of given files doesn't exist #5809

* one new test case and deleted duplicate show cksum: stops when one of given files doesn't exist #5809

* formatting the test cases cksum: stops when one of given files doesn't exist #5809

* Revert "formatting the test cases cksum: stops when one of given files doesn't exist #5809"

This reverts commit 8c382f1e8f.

* reverting the changes and committing again due to a mistake cksum: stops when one of given files doesn't exist #5809

---------

Co-authored-by: biplab5464 <biplab5464@outlook.com>
2024-01-15 09:37:56 +01:00
Daniel Hofstetter
6d5f2e4129
Merge pull request #5841 from uutils/renovate/xattr-1.x
chore(deps): update rust crate xattr to 1.3.1
2024-01-15 07:00:54 +01:00
renovate[bot]
7914f22cfe
chore(deps): update rust crate xattr to 1.3.1 2024-01-15 03:14:26 +00:00
Sylvestre Ledru
67992be245
Merge pull request #5658 from cakebaker/bump_redox_syscall
Bump redox_syscall to 0.4.1
2024-01-14 23:42:34 +01:00
Sylvestre Ledru
36039a819d
Merge pull request #5739 from cakebaker/cp_backup_with_symlink_to_source
cp: backup dest symlink linking to source
2024-01-14 23:30:06 +01:00
Sylvestre Ledru
e3beda08ac
Merge pull request #5762 from cakebaker/cp_link_same_file
cp: show no "same file" error for `--link a a`
2024-01-14 23:29:33 +01:00
Sylvestre Ledru
ef03a4625f
Merge pull request #5806 from cakebaker/nl_is_a_directory
nl: don't exit if input is directory
2024-01-14 23:29:05 +01:00
Sylvestre Ledru
ae279c9961
Merge pull request #5818 from cakebaker/pathchk_no_args
pathchk: simplify and rename test
2024-01-14 23:28:42 +01:00
Sylvestre Ledru
3d356d47b3 expand: avoid an infinite loop 2024-01-14 23:27:00 +01:00
Sylvestre Ledru
8d24036f5c basenc: handle '--base32 .' arg 2024-01-14 23:27:00 +01:00
Sylvestre Ledru
4f33a375cd factor: handle the '< .' arg 2024-01-14 23:26:57 +01:00
Sylvestre Ledru
22a7173305
Merge pull request #5838 from cakebaker/head_fix_clippy_warnings_in_tests
head: fix clippy warnings in tests
2024-01-14 16:23:05 +01:00
Sylvestre Ledru
e01d5f75f7
ls: if acl are used, show the + in the perms (#5816)
* ls: if acl are used, show the + in the perms

Tested by tests/mkdir/p-acl.sh

* CICD.yml: fix small formatting issue

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-14 15:57:22 +01:00
Daniel Hofstetter
aeee56b3c3 head: fix clippy warnings in tests 2024-01-14 15:23:24 +01:00
Daniel Hofstetter
dc41ed2aeb
Merge pull request #5836 from uutils/renovate/smallvec-1.x
chore(deps): update rust crate smallvec to 1.12
2024-01-14 12:48:49 +01:00
renovate[bot]
e860b32a82
chore(deps): update rust crate smallvec to 1.12 2024-01-14 00:28:34 +00:00
Daniel Hofstetter
ac27b6c4b0
Merge pull request #5833 from sylvestre/cut-multiple
cut: allow the same option to be passed multiple times
2024-01-13 16:58:04 +01:00
Daniel Hofstetter
30ab8382aa
Merge pull request #5832 from sylvestre/fuzz-pipe-stderr
fuzz: with pipe, also capture stderr
2024-01-13 16:53:17 +01:00
Daniel Hofstetter
cc01c5e64c
Merge pull request #5736 from uutils/renovate/tempfile-3.x
chore(deps): update rust crate tempfile to 3.9.0
2024-01-13 16:00:04 +01:00
Sylvestre Ledru
bc51b8d216 cut: allow the same option to be passed multiple times 2024-01-13 15:09:16 +01:00
Daniel Hofstetter
e0abb76c0f Bump redox_syscall to 0.4.1
redox_syscall from 0.3.5 & 0.4.0 -> 0.4.1
filetime from 0.2.22 -> 0.2.23
parking_lot_core from 0.9.8 -> 0.9.9
2024-01-13 14:58:36 +01:00
renovate[bot]
c63b5b2a5d
chore(deps): update rust crate tempfile to 3.9.0 2024-01-13 13:57:26 +00:00
Sylvestre Ledru
2d0ab708cc
Merge pull request #5824 from cakebaker/bump_console_and_mio
Bump console and mio
2024-01-13 14:55:09 +01:00
Atomei Alexandru
563df4b79d
Made cksum return an error if used on a directory. (#5822)
* Made cksum to return an error if it is used on a directory regardless of the algorithm

* Added one more test for cksum on folders and deleted an old one that expected it to succeed instead of fail

* Made cksum work on more than one item if it fails and added a test for this case
2024-01-13 14:43:36 +01:00
Sylvestre Ledru
19e1f26e3d fuzz: with pipe, also capture stderr 2024-01-13 14:08:48 +01:00
Daniel Hofstetter
7e3f4d8358
Merge pull request #5830 from sudhackar/printf-infinite-loop
printf : no infinite loop
2024-01-12 14:50:19 +01:00
Sudhakar Verma
cd4568f5d9 printf: simplify loop 2024-01-12 17:12:30 +05:30
Sudhakar Verma
4e5a65ee41 printf: fix clippy warnings 2024-01-12 16:23:38 +05:30
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