1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-16 02:01:05 +00:00
Commit graph

7312 commits

Author SHA1 Message Date
Sylvestre Ledru
39bfa40acf
Merge pull request #5930 from cakebaker/test_fix_unused_import_on_redox
test: fix "unused imports" warning on Redox
2024-09-17 11:27:39 +02:00
Daniel Hofstetter
6aadfeaec5 uucore: fix "unused import" warning on redox 2024-09-14 16:14:31 +02:00
Daniel Hofstetter
4fb68119a8 test: fix "unused imports" warning on Redox 2024-09-14 09:36:18 +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
Daniel Hofstetter
f0b983ba8f bin/coreutils: add --list to help output 2024-09-12 14:55:05 +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
5b1d4d9bdc fix: add arg count for cp 2024-09-10 00:12:59 +02:00
Samuel Tardieu
dd9e7ad363 cp: treat an empty file name as a non-existing file 2024-09-08 13:27:24 +02:00
Sylvestre Ledru
22401f827b
Merge pull request #6681 from cakebaker/bump_windows_sys
Bump `windows-sys` & adapt `tail` to API change
2024-09-08 09:55:59 +02:00
Samuel Tardieu
d627952fc8 mkdir: do not change mode of existing directories 2024-09-07 21:09:55 +02:00
Daniel Hofstetter
4229771108 tail: adapt to windows-sys API change 2024-09-07 16:49:25 +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
Anirban Halder
e4749381f9
`ls: Changed unwrap_or and or option handling to lazy evaluated unwrap_or_else and or_else` (#6609)
* Changed unwrap_or and option handling to lazy evaluation

* Clippy fixes
2024-09-07 15:05:54 +02:00
Sylvestre Ledru
66e0989526
Merge pull request #6680 from cakebaker/runcon_adapt_error_message
runcon: improve sentence in help
2024-09-06 17:58:39 +02:00
Daniel Hofstetter
b374b941e2 runcon: improve sentence in help 2024-09-06 17:05:29 +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
Daniel Hofstetter
9fcf3ee48b yes: adapt to API changes of uucore/pipes 2024-08-14 17:38:56 +02:00
Daniel Hofstetter
563e3cefd0 wc: adapt to API changes of uucore/pipes 2024-08-14 17:19:37 +02:00
Daniel Hofstetter
5342bae38d cat: adapt to API changes of uucore/pipes 2024-08-14 17:15:53 +02:00
Daniel Hofstetter
612ae271d3 uucore: use AsFd instead AsRawFw in pipes API
to match changes in the API of nix
2024-08-14 16:54:42 +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
565a36a88b df: use "workspace = true" for tempfile 2024-07-30 15:21:52 +02:00
Daniel Hofstetter
dafbd4bd6f uucore: use "workspace = true" for dns-lookup 2024-07-30 14:55:32 +02:00
Daniel Hofstetter
9fbfb2925f
Merge pull request #6575 from BenWiederhake/dev-cksum-nonutf8-filename
cksum: accept non-UTF-8 filenames
2024-07-30 14:31:46 +02:00
Krysztal Huang
bc0b4880e0
uucore: add getsid for process.rs (#6600)
* uucore: Add `getsid` for `process.rs`

* uucore: Changing the return type of the `getsid` function to `Result`

From the manpage of `getsid` we can find that the syscall may failed and set errno, so we have to process those case.

* uucore: Drop support of `getsid` for RedoxOS

* uucore: Add `getpid` for get pid of calling process.

* uucore: Add tests for `getsid` and `getpid`

* uucore: Fix tests failure for `test_getsid`

uucore: Fix tests failure for `test_getsid`

uucore: Fix tests failure for `test_getsid`

* uucore: Fix tests failure on FreeBSD

* uucore: Apply suggestions for `process.rs::tests::test_getsid`

Suggestions from @BenWiederhake , very thanks!
2024-07-29 22:09:12 +02:00
Krysztal Huang
c0081d33b7
uucore: Remove mut of ProcessInformation::tty 2024-07-29 01:04:40 +08:00
Krysztal Huang
eafed7ede4
uucore: Refactor ProcessInformation::tty 2024-07-29 00:17:30 +08:00
Krysztal Huang
3494acc304
uucore: Fix proc-info feature's dependency. 2024-07-29 00:02:23 +08:00
Ben Wiederhake
1fcff25edc uucore: mark comment as rustdoc 2024-07-27 01:29:01 +02:00
Ben Wiederhake
6af9fd784e cksum: correctly output non-utf8 filename 2024-07-27 01:29:01 +02:00
Ben Wiederhake
244634b5c6 cksum: accept non-UTF-8 filenames
Fixes #6574.
2024-07-27 01:09:37 +02:00
Sylvestre Ledru
a55d9b359d
Merge pull request #6588 from matrixhead/part-symlink
cp: gnu test case `part-symlink` compatibility
2024-07-26 08:50:45 +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
Krysztal Huang
4bca4898f4 uucore: Move tests for Teletypeto tty.rs 2024-07-26 00:49:03 +02:00
Krysztal Huang
58d0fb6fb2 uucore: Split tty from proc_info
And renamed `TerminalType` to `Teletype` for better naming because of Terminal contains graphic terminal but the current implementation only support `Teletype`.
2024-07-26 00:49:03 +02:00
Sylvestre Ledru
12eacd1cf2
Merge pull request #6497 from cakebaker/cargo_cfg_fuzzing
Cargo.toml: allow "fuzzing" as `cfg` condition name
2024-07-26 00:48:18 +02:00
Daniel Hofstetter
587efd1d4b clippy: fix warnings introduced by Rust 1.80 2024-07-25 16:34:02 +02:00
Daniel Hofstetter
ef68d9778f seq: allow "fuzzing" as cfg condition name
in Cargo.toml
2024-07-23 15:58:57 +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
Yang Hau
e5d765f46c hashsum: Return err when only --strict or --quiet is given 2024-07-19 16:05:30 +08:00
Ben Wiederhake
76af976e48 uucore: add missing import
No idea why this is only caught by clippy nightly.
See also https://github.com/uutils/coreutils/pull/6483
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
Dorian Péron
e7f965d6a8 cut: move os_string_as_bytes utility to uucore 2024-07-18 13:00:32 +02:00