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
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
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
Sylvestre Ledru
bc51b8d216
cut: allow the same option to be passed multiple times
2024-01-13 15:09:16 +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
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
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
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
Samuel Tardieu
5dfeca9ff2
format: %c prints the first character of a string
2024-01-09 00:13:54 +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
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
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
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
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
e13f0d80ee
Merge pull request #5778 from RenjiSann/main
...
ls: Support QUOTING_STYLE environment variable
2024-01-05 15:55:23 +01:00
Samuel Tardieu
32f0256d7d
uucore/num_format: properly display 10ᵖ where p is the precision
...
`seq --format %.2g 10 10` would display `1` because the precision would
not allow room for the decimal point, and the `0` in `10` would be
trimmed as an insignificant trailing `0`.
This has been fixed by only trimming trailing `0` in the presence of a
decimal point.
2024-01-05 15:40:20 +01:00
Dorian Péron
4372908e84
fix: cargo fmt + fix spelling mistake
2024-01-05 13:55:47 +01:00
Sylvestre Ledru
aabf5fa577
cp: manages target with trailing '/'
2024-01-05 12:56:27 +01:00
Sylvestre Ledru
4c698d58e0
mv: support the case mkdir a && mv a e/
2024-01-05 12:56:24 +01:00
Dorian Péron
c58575edaa
tests/ls: Add tests to ensure env var is used as a last resort
2024-01-05 02:10:33 +01:00
cre4ture
9b3cc5437c
head: head_backwards for non-seekable files like /proc/* or fifos (named pipes) ( #5732 )
...
* implement head_backwards for non-seekable files like /proc/* or pipes
Signed-off-by: Ulrich Hornung <hornunguli@gmx.de>
2024-01-05 00:25:59 +01:00
Daniel Hofstetter
e4fbc31714
du: ignore duplicate names with --files0-from
2024-01-03 09:39:16 +01:00
Daniel Hofstetter
239e5426e6
du: show error for nul names with --files0-from
2024-01-02 16:06:41 +01:00
Daniel Hofstetter
5673f32c63
cp: show error if source & dest are same file
2023-12-31 16:01:34 +01:00
Sylvestre Ledru
193bcf86b7
cp: Disable a test failing on freebsd
2023-12-30 17:00:44 +01:00
Vardhan Patil
1fc6a760f3
tests/cksum: fix formatting
2023-12-30 20:31:52 +05:30
Vardhan Patil
e1863ac64e
tests/cksum: test when the --length argument is 0 or >512
2023-12-30 20:14:30 +05:30
Vardhan Patil
09ef150085
tests/cksum: add tests for the length argument
2023-12-30 16:01:22 +05:30
Daniel Hofstetter
7025619325
cp: adapt warning if source is used more than once
2023-12-29 10:24:08 +01:00
Daniel Hofstetter
9bb725cefc
clippy: fix warnings introduced by Rust 1.75
2023-12-28 18:17:06 +01:00
Sylvestre Ledru
d82ee771aa
install: Add a test to cover recent changes
2023-12-28 16:34:09 +01:00
Sylvestre Ledru
764ea34c37
dd/chroot: improve the skip message (not root)
2023-12-28 00:44:19 +01:00
Daniel Hofstetter
0701f535ac
cp: fix backup of destination symlink
2023-12-27 15:39:54 +01:00
Matei Mantu
bf26eda786
install: remove / from end of path if it exists so as not to mess with .exists() ( #5730 )
...
* remove / from end of path if it exists so as not to mess with .exists()
* install: fix / removal from path
* Fix clippy warnings
* Add test for install target ends with /
2023-12-27 13:37:17 +01:00