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
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
Sylvestre Ledru
e26f4c7f36
Merge pull request #5727 from cakebaker/du_simplify_file_creation_in_tests
...
du: simplify file creation in tests
2023-12-26 16:12:52 +01:00
Sylvestre Ledru
167acb5147
Merge pull request #5484 from cakebaker/cp_l_with_dest_hardlink_to_source
...
cp --link: don't fail if destination is hardlink to source
2023-12-26 16:12:15 +01:00
Daniel Hofstetter
2d260ded58
du: use concat! to improve readability in tests
2023-12-26 15:19:45 +01:00
Daniel Hofstetter
37c83ec480
du: simplify file creation in tests
2023-12-26 15:15:02 +01:00
Sylvestre Ledru
30eb77ac79
du: implement files0-from ( #5721 )
...
* du: implement files0-from
Should make tests/du/files0-from-dir pass
* du: prepare tests/du/files0-from.pl
* fix the build on Windows
* add testfile to the ignore list
* remove useless comment
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* mkdir is enough
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* address review comments
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-12-26 14:40:31 +01:00
Sylvestre Ledru
6d2486c096
Merge pull request #5503 from cakebaker/du_unused_du_basics
...
du: call unused _du_basics() in test_du_basics()
2023-12-25 22:38:27 +01:00
Sylvestre Ledru
0fb4d8843c
Merge pull request #5455 from n1000/freebsd_fixes_push_3
...
tests/test: Ensure the test fixture files have the expected gid
2023-12-25 22:03:15 +01:00
Sylvestre Ledru
db9f4cc315
Merge pull request #5483 from cakebaker/mv_fix_5481
...
mv: fix subdir detection
2023-12-25 22:02:23 +01:00
Sylvestre Ledru
628819701d
Merge pull request #5530 from cakebaker/du_test_posixly_correct
...
du: test behavior with POSIXLY_CORRECT set
2023-12-25 22:01:25 +01:00
Daniel Hofstetter
f10c6f1d56
Merge pull request #5699 from sylvestre/mv-cp-seen
...
cp/mv/ln: add support for the "will not overwrite just-created"
2023-12-25 14:58:50 +01:00
Daniel Hofstetter
030fd3d4d2
du: test behavior with POSIXLY_CORRECT set
2023-12-25 13:17:17 +01:00
Daniel Hofstetter
03f1b8aa3a
mv: fix subdir detection
2023-12-25 13:12:18 +01:00
Nathan Houghton
1915e3c438
tests/test: Ensure the test fixture files have the expected gid
...
On some platforms (mostly the BSDs) the test fixture files copied to the
/tmp directory will have a different gid than the current egid (due to
the sticky bit set on the /tmp directory). Fix this before running the
"test" command.
2023-12-25 13:10:22 +01:00
Daniel Hofstetter
4946478409
cp: -l don't fail if dest is hardlink to source
2023-12-25 13:03:11 +01:00
Sylvestre Ledru
356023b055
Merge pull request #5431 from cakebaker/cp_remove_destination_shouldnt_fail_hardlink
...
cp --remove-destination: don't fail if destination is hardlink to source
2023-12-25 13:02:50 +01:00
Daniel Hofstetter
863c022352
Merge pull request #5723 from sylvestre/tee-warning
...
tee test: fix a warning on not(linux)
2023-12-25 11:47:13 +01:00
Sylvestre Ledru
6ce9d84232
Merge pull request #5532 from cakebaker/df_fix_5531
...
df: fix rounding issue in test
2023-12-25 11:23:48 +01:00
Sylvestre Ledru
60d71e3f2a
ln: disable a test on android
2023-12-25 11:22:04 +01:00
Sylvestre Ledru
f86e314f46
Fix some obvious comment
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-12-25 11:17:04 +01:00
Sylvestre Ledru
840a5bf083
Merge pull request #5700 from cakebaker/ls_block_size_with_k
...
ls: set correct block size when -k is provided
2023-12-25 11:14:09 +01:00
Sylvestre Ledru
853f73b7c9
tee test: fix a warning on not(linux)
...
warning: unused import: `std::fmt::Write`
2023-12-25 11:06:24 +01:00
Daniel Hofstetter
270ac90cc1
ls: set correct block size when -k is provided
2023-12-24 16:35:49 +01:00