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
Samuel Tardieu
7332151d1e
tests: do not elide named lifetimes
...
Eliding named lifetimes elicits a warning in Rust 1.83+.
2024-09-06 01:00:41 +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
584d91f8b5
test: fix indentation that fails clippy nightly
...
See also https://rust-lang.github.io/rust-clippy/master/index.html#doc_lazy_continuation
2024-07-18 15:59:37 +02: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
mhead
84f8b7a98b
proper error message when inter-partition copying fails with test
2024-07-18 13:11:34 +02:00
mhead
ff12e6ee87
mv: gnu test case to-symlink
fix
2024-07-18 13:11:34 +02:00
Dorian Péron
9ab7fa9806
tr: accept non utf8 arguments for sets
2024-07-18 13:00:32 +02:00
Ben Wiederhake
6818bbe5d7
uptime: relax error message due to different errno on MacOS
...
Fixes #6569 .
2024-07-15 21:49:42 +02:00
Dorian Péron
128335a24b
tr: Raise error if set2 is too big on complemented class
2024-07-15 17:55:40 +02:00
kf zheng
a77848fb83
printf: Fix extra padding ( #6548 )
2024-07-13 10:19:01 +02:00
Dorian Péron
e4f89761a7
tests(date): Add tests for #6392
...
These tests check that days and month with a single digit are correctly handled.
2024-07-10 14:42:44 +02:00
Sylvestre Ledru
c90b69398f
Merge pull request #6382 from BenWiederhake/dev-signal-casing
...
uucore+timeout: accept signals of any casing
2024-07-09 23:18:25 +02:00
Laurent Cheylus
4b3e039118
hostname: enable test test_hostname_ip for FreeBSD and OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-09 22:44:16 +02:00
Laurent Cheylus
f731b4e779
tests: disable common::util::tests::test_altering_umask on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:45:10 +02:00
Laurent Cheylus
008dd38a0d
tests: fix warnings on OpenBSD for unused imports in by-util/test_*
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:45:10 +02:00
Laurent Cheylus
c25ba39ce6
tests: disable failed tests for touch on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:29:20 +02:00
Laurent Cheylus
de4d91beda
tests: disable failed tests for test on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:29:19 +02:00
Laurent Cheylus
de742e905b
tests: disable failed tests for tail on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:29:19 +02:00
Laurent Cheylus
c96e639f2f
tests: disable failed tests for stdbuf on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:29:19 +02:00
Laurent Cheylus
6bce1626b3
tests: disable failed tests for stat on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:29:18 +02:00
Laurent Cheylus
26da94687f
tests: disable failed tests for split on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:29:18 +02:00
Laurent Cheylus
00cca34a9c
tests: disable failed tests for ls on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:29:17 +02:00
Laurent Cheylus
a425da0a12
tests: disable failed tests for install on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:29:16 +02:00
Laurent Cheylus
643f93be2f
tests: disable failed tests for head on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:29:16 +02:00
Laurent Cheylus
584a9d290f
tests: disable failed tests for du on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:29:16 +02:00
Laurent Cheylus
91f5533bc5
tests: disable failed tests for cp on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:29:14 +02:00
Laurent Cheylus
62ec71d6fa
tests: disable failed tests for chown on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:29:12 +02:00
Laurent Cheylus
b69070fdff
tests: disable failed tests for cat on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:29:12 +02:00
Daniel Hofstetter
8cc129cff8
Merge pull request #6528 from sylvestre/cf
...
ls: when -CF is passed, use a tab. closes : #5396
2024-07-05 10:38:31 +02:00
Pyokyeong Son
ea478c2bb6
ls: fixed dired option (-D) not outputting datetime and parent dir byte offsets ( #6538 )
...
Closes #6522
2024-07-05 09:59:41 +02:00
Daniel Hofstetter
b774000351
Merge pull request #6535 from sylvestre/sort
...
sort: improve the error mgmt with --batch-size
2024-07-05 09:45:54 +02:00
Mengsheng Wu
1e80d3e3b2
ls: fix error sub dir output ( #6521 )
...
Closes #6492
2024-07-05 08:16:16 +02:00
Sylvestre Ledru
fd2c4a14b8
ls: when -CF is passed, use a tab. closes : #5396
2024-07-04 23:39:03 +02:00
Sylvestre Ledru
e2c66ea092
sort: improve the error mgmt with --batch-size
...
should make the gnu test tests/sort/sort-merge.pl pass
2024-07-04 22:16:46 +02:00
Daniel Hofstetter
a18c132994
Merge pull request #6524 from sylvestre/cksum-3
...
cksum: read the next file when the first is missing or invalid
2024-07-03 09:48:08 +02:00
Sylvestre Ledru
14230e3c68
Merge pull request #6526 from Its-Just-Nans/add-test-date
...
date: add test
2024-07-03 08:10:20 +02:00
Ben Wiederhake
8f6eb57856
common: permit signal names of any casing in tests
2024-07-03 04:15:52 +02:00
Ben Wiederhake
449c685675
uucore+timeout: accept signals of any casing
2024-07-03 04:15:52 +02:00
n4n5
e506927f1f
ls: add test
2024-07-02 22:40:06 +02:00
Sylvestre Ledru
a6c5ee576a
cksum: read the next file when the first is missing or invalid
2024-07-02 20:48:28 +02:00
n4n5
9846af40e5
add date test
2024-07-02 20:07:06 +02:00
Sylvestre Ledru
4720f8a076
Merge pull request #6513 from cvonelm/main
...
tr: correctly detected matched [:upper:]
2024-07-01 17:24:42 +02:00
kf zheng
e6b6b2761b
printf: Check precision before writing into stdout ( #6511 )
...
* Add a new error type InvalidPrecision
* check if the precision is valid before writing to stdout when it is signedInt, unsigned, or float
* add tests for invalid precision check
* add tests for invalid precision check
* fix possible cross-platform issue that code failing to pass on some tests
* uucore/format: inline var in format string
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-07-01 15:15:32 +02:00
Sylvestre Ledru
96fa8e9480
Merge pull request #6514 from lcheylus/openbsd-uptime
...
uptime: add support for OpenBSD using utmp
2024-06-30 21:27:48 +02:00
Sylvestre Ledru
9013265e47
Merge pull request #6506 from Its-Just-Nans/touch-directory
...
`touch`: change message when directory
2024-06-30 20:54:48 +02:00
n4n5
635ad16c63
touch: change message when trailing slash
2024-06-30 19:00:54 +02:00
Sylvestre Ledru
9c0f2f84ab
Merge pull request #6505 from Its-Just-Nans/fix-clippy-errors
...
Fix clippy errors
2024-06-30 18:55:51 +02:00
n4n5
ab67947321
fix clippy tests
2024-06-30 16:27:08 +02:00
Laurent Cheylus
c0a3662b63
tests: enable tests for uptime on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-06-30 16:17:04 +02:00
Christian von Elm
866366a874
tr: correctly detected matched [:upper:]
...
tr detects if a class in set2 is matched by a class at the correct position in set1 after it has expanded everything before the class in both sets:
So
tr 'abcd[:upper:]' 'a-d[:lower:]'
should not fail
2024-06-30 14:24:00 +02:00
Sylvestre Ledru
e08c43ade2
Merge pull request #6496 from djedi23/6267-cp-preserved-hardlinks-are-not-reported-in--verbose
...
cp: fix preserved hardlinks are not reported in --verbose
2024-06-29 10:46:31 +02:00
sreehari prasad
dbeae9f444
ls: gnu color-clear-to-eol
fix ( #6507 )
...
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-06-29 10:06:00 +02:00
Daniel Hofstetter
f451714d26
Merge pull request #6406 from jadijadi/users-openbsd
...
users: support OpenBSD using utmp
2024-06-29 07:52:10 +02:00
Jadi
576341bb93
users: support OpenBS using utmp
...
OpenBSD uses the original utmp file format so the general `users` does not
work there. By using the `utmp-classic` lib, we cna process the current users
on the system from the /var/run/utmp and show the list.
fixes #5665
2024-06-29 08:19:24 +03:30
Daniel Hofstetter
69b603bfe7
Merge pull request #6503 from CausingBrick/issue-6495
...
date: fix date get timezone error while set utc time (#6495 )
2024-06-28 16:15:56 +02:00
MengshengWu
e4ec608781
date: fix date get timezone error while set utc time ( #6495 )
2024-06-28 22:01:00 +08:00
Sylvestre Ledru
0ecc18fb5b
hashsum/b2sum: when the checksum file is untagged, detect the size
...
Should fix tests/cksum/b2sum.sh
2024-06-28 10:15:27 +02:00
Daniel Hofstetter
9b3b9e8407
Merge pull request #6452 from sylvestre/base64
...
cksum/hashsum: add support of --check with base64 + other improvs
2024-06-27 09:47:52 +02:00
Moïse Valvassori
2e223dfdfc
cp: fix preserved hardlinks are not reported in --verbose
2024-06-26 06:44:55 +02:00
Sylvestre Ledru
66ccb1a479
cksum/hashsum: add support of --check with base64
2024-06-25 19:00:23 +02:00
sreehari prasad
92665144c9
ls: gnu color-norm
test fix ( #6481 )
2024-06-24 21:38:10 +02:00
Daniel Hofstetter
92c3de5387
Merge pull request #6144 from sylvestre/dired
...
ls --dired: adjust our code after GNU v9.5
2024-06-24 13:41:11 +02:00
Sylvestre Ledru
ececddd672
ls: If we have --dired --hyperlink, we don't show dired but we still want to see the
...
long format
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-06-24 10:27:37 +02:00
Sylvestre Ledru
4d705621e6
ls: --format will override the --dired option
...
Closes : #6488
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-06-23 21:13:37 +02:00
Christian von Elm
0ae6d43536
Refuse to translate if set2 contains more than one unique characters and set1 contains a character class ( #6472 )
...
* Refuse to translate if set2 contains > 1 unique characters
2024-06-22 19:30:39 +02:00
Anirban Halder
2774274cc2
`uptime
`: Support files in uptime ( #6400 )
2024-06-22 13:06:03 +02:00
Sylvestre Ledru
cd44a3d1fd
ls --dired: v9.5 --hyperlink is ignored if passed first
...
Manages cases like:
$ ls -R --dired --hyperlink a2
will show hyperlink
$ ls -R --hyperlink --dired a2
won't
2024-06-22 09:32:21 +02:00
Sylvestre Ledru
da11981026
ls --dired: v9.5 automatically set --format=long
2024-06-21 23:32:20 +02:00
sreehari prasad
e46ad30434
gnu cp-parents
test case ( #6446 )
2024-06-17 11:16:26 +02:00
Christian von Elm
a46e4fd290
Refuse to translate if set1 is longer than set2 and set2 ends in a character class
...
tr [:lower:]a [:upper:]
fails in GNU tr, so print an error for tr too.
2024-06-15 12:38:19 +02:00
Daniel Hofstetter
97c1633b5e
clippy: fix warnings introduced by Rust 1.79
2024-06-14 07:55:31 +02:00
Daniel Hofstetter
38344edacf
Merge pull request #6445 from cvonelm/6341-tr-unaligned-upper
...
tr: A [:lower:]/[:upper:] in set2 must be matched in set1
2024-06-10 10:52:08 +02:00
Daniel Hofstetter
f56e121eb0
Merge pull request #6431 from sylvestre/refactor-hashsum-cksum
...
cksum/hashsum: refactor the common code.
2024-06-04 09:06:35 +02:00
Sylvestre Ledru
1cbb4d9752
cksum/hashsum: improve the tests and wording
2024-06-03 19:43:20 +02:00
Sylvestre Ledru
773d8cfbc6
cksum/hashsum: fix the windows tests + improve some
2024-06-02 15:46:55 +02:00
Christian von Elm
7e8aaa8ad4
tr: A [:lower:]/[:upper:] in set2 must be matched in set1
...
If there is a [:lower:] or [:upper:] in set2, then there must be a [:lower:] or [:upper:] at the
same logical position in set1
So
tr -t [:upper:] [:lower:] works
tr -t 1[:upper:] [:lower:] doesnt
2024-06-02 14:22:17 +02:00
sreehari prasad
8cac375ddd
cp: gnu test case preserve-mode fix ( #6432 )
2024-05-30 21:12:55 +02:00