Commit graph

2946 commits

Author SHA1 Message Date
Andrew Liebenow
80b63931a4 mkdir: emit error when path is empty 2024-10-20 10:45:46 -05:00
Sylvestre Ledru
5b881a0766
Merge pull request #6790 from sgvictorino/require-mkdir-rmdir-args
mkdir/rmdir: require arguments
2024-10-20 17:15:25 +02:00
Dorian Péron
b34730dda3 test(hashsum): add tests for comment in checksum files 2024-10-18 11:58:03 +02:00
Dorian Péron
90d49c9403 test(cksum): add tests for comment in checksum files 2024-10-18 11:57:59 +02:00
Solomon Victorino
fe234164f4 rmdir: require argument 2024-10-18 08:30:18 +02:00
Solomon Victorino
6ad07a4fb3 mkdir: require argument 2024-10-18 08:30:18 +02:00
Luv-Ray
85b0ef132b
cp: fix symlink-overwrite error-priority (#6586) 2024-10-16 08:55:43 +02:00
Dorian Péron
758b103c70 test(ls): Add test for #6554 2024-10-15 11:11:23 +02:00
Andrew Liebenow
c41c601b45
paste: permit the delimiter list to be empty (#6714)
* paste: permit the delimiter list to be empty

Also: refactored the delimiter processing logic

* Extract duplicated code into function

* Address PR comments. Improve code structure.

* Fix additional paste bugs

* Fix additional paste bugs

* Simplify backslash delimiter validation

* Fix Clippy violations
2024-10-10 15:36:30 +02:00
Justin Tracey
a51a731704
join: add support for multibyte separators (#6736)
* join: add test for multibyte separators

* join: implement support for multibyte separators

* join: use a trait instead of an enum for separator

* join: test whitespace merging
2024-10-06 11:48:08 +02:00
GiM
d8eb4e2214
cat: fix #5186 by adding explicit flush. (#5256)
* fix #5186 by adding explicit flush.
* make test machine-independent

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-10-06 11:31:31 +02:00
Andrew Liebenow
32e1c54c78 Fix "coreutils manpage base64" bug 2024-10-05 08:17:10 -05:00
Andrew Liebenow
ea7a543bfe Fix two bugs. Add property testing. 2024-09-24 19:25:29 -05:00
Andrew Liebenow
4f19c0e9ff Address PR comments. Simplify structure. 2024-09-24 07:49:28 -05:00
Andrew Liebenow
cdebd24733 Finish fast decode/encode by folding in Z85 2024-09-22 08:28:20 -05:00
Andrew Liebenow
eaf74cd1f6 Fix spelling warning 2024-09-20 16:23:13 -05:00
Andrew Liebenow
167586f6fb Fix compilation error and spelling warning 2024-09-20 15:40:22 -05:00
Andrew Liebenow
846cf06272 basenc: perform faster, streaming encoding
Improve the performance, both in memory and time, of the encoding
performed by the basenc (except in --z85 mode), base32, and base64
programs.

These programs now perform encoding in a buffered/streaming manner,
so encoding is not constrained by the amount of available memory.
2024-09-20 14:34:18 -05:00
Peng Zijun
382e787d1c
cat: handle CRLF delimiters correctly (#6763)
* fix issue #6248

* add test to cat for the case of issue #6248
2024-10-02 15:15:06 +02:00
Ben Wiederhake
576374d0c6 tr: enable ignored tests that have already been fixed
Specifically:
- check_against_gnu_tr_tests_e: Yes, the test is about octal interpretation.
- check_against_gnu_tr_tests_ross_0a: Yes, the [Y*] generates multiple Y's, which causes conflicting replacements, which is why the operation is rejected.
- check_against_gnu_tr_tests_ross_0b: Same, plus a newline character was accidentally forgotten.
- check_against_gnu_tr_tests_fowler_1: Apparently the problem was fixed at some point.
2024-10-01 00:57:53 +02:00
Sylvestre Ledru
892e9a4bc0
Merge pull request #6748 from dcampbell24/fix-clippy-reduced-commits-try-try-again
Clippy Pedantic Acceptable Commits Try Again
2024-09-30 09:34:10 +02:00
Daniel Hofstetter
c6f29407b1 tr: enable ignored test on unix 2024-09-25 15:31:03 +02:00
Ben Wiederhake
a8b9e042e1 tr: properly determine trailing backslash
Fixes #6729.
2024-09-24 02:23:58 +02:00
David Campbell
353eb53367
Fix clippy::uninlined_format_args . 2024-09-19 17:56:27 -04:00
Andrew Liebenow
08992ec6b3 tr: fix unescaped trailing backslash warning
This warning is being emitted whenever the input string ends with a
backslash, even if the backslash is escaped.
2024-09-18 17:29:11 -05:00
Andrew Liebenow
b8150f5ba5
cp: show mode if target does not have S_IWUSR (PR #6696) (#6700)
* cp: show mode if target does not have S_IWUSR

If the target exists, and does not have the user write bit (S_IWUSR)
set, additional information should be added to the overwrite
confirmation prompt.

This should get the "i-2" test to pass. See
https://github.com/uutils/coreutils/issues/6658.

* cp: with -i, delete destination if needed

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-09-18 10:23:54 +02:00
Jans Heikkinen
564dd47297
ln: allow final destination directory when using -nf (#5975)
Closes: #5974
2024-09-17 11:28:34 +02:00
sreehari prasad
8a9fb84a8e
mv: gnu test case mv-n compatibility (#6599)
* uucore: add update control `none-fail`

* uucore: show suggestion when parse errors occurs because of an ambiguous value

* added tests for fail-none and ambiguous parse error

* uucore: ambiguous value code refractor

* cp: no-clobber fail silently and outputs skipped message in debug

* mv: add --debug support

* minor changes

---------

Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-09-14 09:11:17 +02:00
Anirban Halder
7430856575
`mkdir: added acl` permissions inheritance for subdirectories (#6676)
Mostly for linux for now
2024-09-11 21:35:25 +02:00
LoricAndre
399384062d chore: add non-regression tests for cp arg count 2024-09-10 12:20:47 +02:00
Samuel Tardieu
af86aee6b8 cp: look for specific error messages in tests 2024-09-08 13:27:24 +02:00
Samuel Tardieu
dd9e7ad363 cp: treat an empty file name as a non-existing file 2024-09-08 13:27:24 +02:00
Samuel Tardieu
d627952fc8 mkdir: do not change mode of existing directories 2024-09-07 21:09:55 +02:00
Julian
b89a6255a9
dd: fix issue #5905 (different error msg from GNU) (#6622)
* Changed dd parsing error message to be in line with GNU dd

* Correct logic to make dd incorrect number error message fully compatible with GNU. Add test

---------

Co-authored-by: just-an-engineer <Julian.Beltz@zetier.com>
2024-09-07 15:34:03 +02:00
Daniel Hofstetter
f9e7645b96
Merge pull request #6657 from sylvestre/invalid-opt
adjust error for runcon & stdbuf to make tests/misc/invalid-opt.pl pass
2024-09-06 17:00:11 +02:00
Andrew Liebenow
04cd36f022 od: do not panic on empty address radix 2024-09-01 07:59:19 -05:00
Andrew Liebenow
5ca995b21f od: allow trailing characters in address radix 2024-08-31 14:13:31 -05:00
Sylvestre Ledru
001b97f445 adjust error for runcon & stdbuf to make tests/misc/invalid-opt.pl pass 2024-08-20 22:28:16 +02:00
sreehari prasad
7887b76dab
ls: bump lscolors version (#6537)
when one suffix is specified more than once with different cases and with different styles, then ls would only do a case-sensitive matching.
2024-08-19 18:07:28 +02:00
Sylvestre Ledru
6b70dc232e
test: -o arg should trigger an error (#6642)
* test: -o arg should trigger an error

Should fix tests/test/test-diag.pl

* test: use var directly in string

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-08-13 11:05:35 +02:00
Ben Wiederhake
9eb7c85ab2 dircolors+join+sleep: optimize int and string ops as required by clippy nightly 2024-08-11 23:56:30 +02:00
Daniel Hofstetter
32c88b4b96 basename,realpath: update spell-checker:ignore 2024-08-09 14:58:12 +02:00
Ben Wiederhake
6af9fd784e cksum: correctly output non-utf8 filename 2024-07-27 01:29:01 +02:00
mhead
36237a2568 cp: fix cp throwing error when dest is symlink and options backup and --rem is given 2024-07-26 00:49:34 +02:00
Daniel Hofstetter
79d7158aac
Merge pull request #6584 from howjmay/checksum-no-check
hashsum: Return err when only --strict or --quiet is given
2024-07-23 15:20:35 +02:00
sreehari prasad
5baf382f7e
mv: use read_to_string and write when testing inter-partition copying (#6583)
* mv: inter partition copying test code cleanup

* mv: inter partition copying use of read_to_string and write

* Update tests/by-util/test_mv.rs

Co-authored-by: Ben Wiederhake <BenWiederhake.GitHub@gmx.de>

---------

Co-authored-by: Ben Wiederhake <BenWiederhake.GitHub@gmx.de>
2024-07-19 19:03:20 +02:00
Yang Hau
e5d765f46c hashsum: Return err when only --strict or --quiet is given 2024-07-19 16:05:30 +08:00
Ben Wiederhake
c8d10ea69e clippy: simplify code according to nightly 'manual_unwrap_or_default' lint
https://rust-lang.github.io/rust-clippy/master/index.html#/manual_unwrap_or_default
2024-07-18 15:59:37 +02:00
Ben Wiederhake
42b3baf32f clippy: simplify code according to nightly 'needless_borrows_for_generic_args' lint
https://rust-lang.github.io/rust-clippy/master/index.html#/needless_borrows_for_generic_args
2024-07-18 15:59:36 +02:00
Ben Wiederhake
471f047a64 clippy: simplify code according to nightly 'byte_char_slices' lint
https://rust-lang.github.io/rust-clippy/master/index.html#/byte_char_slices
2024-07-18 15:59:36 +02:00