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 Teletype
to 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
Justin Tracey
5882304dcd
Fix Android CI ( #6580 )
...
* android CI: get termux user from emulator
* stat: fix android builds
2024-07-18 09:45:00 +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
Daniel Hofstetter
6b4d0779fe
uucore/proc_info: ignore spelling of some words
2024-07-11 09:35:47 +02:00
Krysztal Huang
7cf5f5c2f7
uucore: Move pgrep/process.rs
to uucore
( #6483 )
...
needed for https://github.com/uutils/procps/
2024-07-10 11:30:11 +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
Yash Thakur
3aee28ef3e
Expose touch for Nushell ( #5946 )
...
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-07-09 23:10:58 +02:00
Laurent Cheylus
6e236a4a72
hostname: use dns-lookup crate to get the network address(es) of the host
...
- on OpenBSD and FreeBSD, unable to get the network address(es) of the host with DNS request for
hostname + ":1"
- use dns-lookup crate for this request with lookup_host function
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-09 22:44:16 +02:00
n4n5
aac09b8a8f
doc: add and change documentation of uucore ( #6551 )
2024-07-09 19:43:51 +02:00
kf zheng
4faf9c08d6
replace crash! with UResult in fsext and modify related files: df, stat, and filesystem
2024-07-07 20:56:22 +08:00
n4n5
fb48e7d280
Fix spelling, update comments, and add documentation for improved code clarity
...
fixes #5066
2024-07-07 12:20:41 +02:00
kf zheng
d868743616
replace crash! with UResult in sync
2024-07-07 12:18:21 +02:00
Laurent Cheylus
2f7c8cc18f
tests: disable tests for features/fsxattr on OpenBSD
...
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-06 22:45:10 +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
Ben Wiederhake
449c685675
uucore+timeout: accept signals of any casing
2024-07-03 04:15:52 +02:00
n4n5
0c67aa8e03
ls: remove useless clippy
2024-07-02 22:40:15 +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
Sylvestre Ledru
63250a6aa1
Merge pull request #6516 from Its-Just-Nans/documention-functions
...
documents functions - #5069
2024-07-01 23:57:32 +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
n4n5
29f99d3cda
documents functions
2024-06-30 23:00:47 +02:00
n4n5
8605170628
document uucore::Args #5068
2024-06-30 22:51:19 +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
81de2be5ab
fix clippy src/
2024-06-30 16:27:00 +02:00
Laurent Cheylus
920d29f703
uptime: add support for OpenBSD using utmp
...
OpenBSD uses the original utmp file format when the other OS use utmpx
format to get infos for boot time and logged users.
By using the `utmp-classic` crate, we can process the logged users
on system from the /var/run/utmp file.
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