Commit graph

3001 commits

Author SHA1 Message Date
Chen Chen
a5867bdf34 install: create destination file with safer modes before copy 2024-12-04 10:02:16 +01:00
andreistan26
5b087e9624
Fix cut when lines dont end with specified delim (#5844)
Print lines without delimiters only when they end with specified line terminator('\n' by default or `\0` if `-s`)

Signed-off-by: Andrei Stan <andreistan2003@gmail.com>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-12-04 00:04:55 +01:00
Sylvestre Ledru
843c0c2c0f
Merge pull request #6119 from hamflx/fix/invalid-backup-numbered-path
mv: fix invalid numbered backup path
2024-12-03 23:13:39 +01:00
Anirban Halder
a16630fded
rm: fix the usage of '/..' '/.' with -rf options
fix the test tests/rm/r-4

---------

Co-authored-by: Julian Beltz <MJayBeltz@gmail.com>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-12-03 22:51:03 +01:00
Sylvestre Ledru
9877085702
Revert "mv: show "same file" error for mv d/f d" 2024-12-02 20:39:39 +01:00
Sylvestre Ledru
527bb6fad8
Merge pull request #5788 from cakebaker/mv_same_file
mv: show "same file" error for `mv d/f d`
2024-12-02 20:37:41 +01:00
Julian
2799b288e3
tail: fix issue #6543 (--pid when reading from stdin) (#6582)
---------

Co-authored-by: just-an-engineer <Julian.Beltz@zetier.com>
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-12-02 19:04:36 +01:00
Daniel Hofstetter
2e4b7c8cb7 mv: show "same file" error for "mv d/f d" 2024-12-02 10:27:10 +01:00
hamflx
6b32c30d57 mv: fix invalid numbered backup path 2024-12-02 10:22:55 +01:00
Daniel Hofstetter
6a7c0112cb
Merge pull request #6853 from sylvestre/comm
comm: generate an error if the input is a directory
2024-11-30 10:55:14 +01:00
Sylvestre Ledru
2ad3c45230
tr: generate an error if the input is a directory (#6855)
* tr: generate an error if the input is a directory

tested by tests/misc/read-errors

* tr: improve the test

* tr: take the commentinto account
2024-11-30 10:38:46 +01:00
Sylvestre Ledru
0cae322dfa comm: generate an error if the input is a directory
tested by tests/misc/read-errors
2024-11-30 10:26:34 +01:00
Sylvestre Ledru
95bd50e09a du: deduplicate the input
Should fix:
tests/du/hard-link.sh
2024-11-29 10:26:27 +01:00
Sylvestre Ledru
8df608cf97 clippy: used underscore-prefixed item 2024-11-29 08:36:54 +01:00
Sylvestre Ledru
c0840dd43f clippy: unneeded 'return' statement 2024-11-29 08:36:54 +01:00
Sylvestre Ledru
a3a4457a44 clippy: spawned process is never 'wait()'ed on 2024-11-28 22:10:28 +01:00
Peng Zijun
75de5a0613
tr: Add ambiguous octal escape warning (#6886)
* tr: Add ambiguous octal escape warning, issue #6821

* tr: Make code cleaner
2024-11-28 09:14:16 +01:00
Daniel Hofstetter
ab9e5cb8a7 env: add missing cfg attributes to tests 2024-11-27 09:29:22 +01:00
Daniel Hofstetter
c8b0c8b612 cp: remove some sleep() calls in tests 2024-11-26 10:35:13 +01:00
Dorian Péron
8c4f595f24 test(cksum): rework test for improperly formatted keeps processing 2024-11-26 01:47:10 +01:00
Dorian Péron
20dfe2dc10 test(cksum): remove duplicate testcase 2024-11-26 01:47:10 +01:00
Daniel Hofstetter
9f07bf8809 mv: remove "sleep" in tests 2024-11-21 16:32:17 +01:00
Daniel Hofstetter
881044aef0
Merge pull request #6861 from sylvestre/dup-source
mv: fix the output of an error message
2024-11-21 16:26:33 +01:00
Daniel Hofstetter
e37d2f2a2b
Merge pull request #6878 from sylvestre/du
du: fix the display with --inodes
2024-11-21 10:42:48 +01:00
Sylvestre Ledru
1b2778b819 du: fix the size display with --inodes 2024-11-20 16:13:54 -05:00
Sylvestre Ledru
76d14ed484 du: fix the count with --inodes 2024-11-20 16:13:52 -05:00
steinwand6
c986fb7d2e
seq: add overflow checks when parsing exponents (#6858)
* seq: remove ignore flag from test_invalid_float_point_fail_properly(#6235)

* seq: prevent overflow in parse_exponent_no_decimal

* seq: add tests for invalid floating point arguments

* seq: add overflow checks when parsing decimal with exponent

* seq: add overflow checks
2024-11-20 16:11:04 +01:00
Sylvestre Ledru
7ffe3d49ef mv: fix the output of an error message
+ adjust a GNU test

Should make tests/mv/dup-source.sh pass
2024-11-20 08:03:40 -05:00
Daniel Hofstetter
19a19f004f
Merge pull request #6854 from sylvestre/fmt
fmt: generate an error if the input is a directory
2024-11-18 16:18:41 +01:00
Daniel Hofstetter
3281d3ef55 tee: fix warning from ref_as_ptr lint in test 2024-11-18 09:45:44 +01:00
Dorian Péron
0bc22e8d18 test(cksum): add multiple tests
test(cksum): add test for blake length gessing
test(cksum): add test for hexa/base64 confusion
test(cksum): add test for error handling on incorrectly formatted checksum
test(cksum): add test for trailing spaces making a line improperly formatted
test(cksum): Re-implement GNU test 'cksum-base64' in the testsuite
2024-11-16 22:44:08 +01:00
Sylvestre Ledru
ab77eaea45 fmt: generate an error if the input is a directory
tested by tests/misc/read-errors
2024-11-16 19:49:44 +01:00
Daniel Hofstetter
27fc9f614f
Merge pull request #6837 from matrixhead/dup-source
mv: gnu test `dup-src` compatibilty
2024-11-01 09:34:43 +01:00
mhead
2c528cfcb5 mv: fix error message when one of the multiple src doesn't exist 2024-11-01 13:35:47 +05:30
Daniel Hofstetter
d1f2534811
Merge pull request #6825 from matrixhead/dup-source
cp: normalize path when checking for duplicate source
2024-10-31 11:26:35 +01:00
Daniel Hofstetter
e947c713c8
cp: separate tests with empty line 2024-10-31 10:55:22 +01:00
mhead
ff586b47d4 cp: Duplicate source error message specify the type of file. 2024-10-31 11:49:29 +05:30
Daringcuteseal
8cecebc050
tests/mkdir: check for multiple --parent arguments 2024-10-31 05:10:31 +07:00
Sylvestre Ledru
bf6de81a1f
Merge pull request #6806 from Ecordonnier/eco/signal-handler
uucore: disable default signal-handlers added by Rust
2024-10-30 08:36:01 +01:00
mhead
4d5bf4205f cp: skip duplicate source check when --backup is given 2024-10-27 14:18:20 +05:30
mhead
74cd797c8a cp: normalize path when checking for duplicate source 2024-10-26 12:09:38 +05:30
Etienne Cordonnier
8ab99d4bfe test(sleep): add test for signal handling 2024-10-25 16:47:40 +02:00
Andrew Liebenow
186d749e94 Replace commented-out code with TODO comments 2024-10-24 13:12:38 -05:00
Dorian Péron
6030ad9bc9 test(cksum): add tests for non-utf-8 handling in checksum files 2024-10-24 11:43:52 +02:00
Dorian Péron
1c41a12fb5 test(cksum): add test for trailing spaces making an error 2024-10-24 11:43:52 +02:00
Dorian Péron
e9cf31451e test(cksum): add tests for -z/--zero 2024-10-24 00:29:45 +02:00
Terts Diepraam
6850be2539
Merge pull request #6810 from cakebaker/echo_remove_double_negation
echo: remove double negation
2024-10-23 10:24:26 +02:00
Pistonight
ca6d0eda3d hashsum: Windows: check in binary mode by default and allow --binary/--text whcn checking 2024-10-22 11:55:49 -07:00
Daniel Hofstetter
c4160f2dd7
Merge pull request #6801 from Luv-Ray/cksum_error_handling
cksum: fix error handling
2024-10-22 16:35:36 +02:00
Daniel Hofstetter
b0fa702e90 echo: remove unnecessary no_stderr() call in test 2024-10-22 14:32:20 +02:00