1
0
mirror of https://github.com/uutils/coreutils synced 2024-07-09 04:06:02 +00:00
Commit Graph

13023 Commits

Author SHA1 Message Date
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
371ba28db7
Merge pull request #6498 from cakebaker/cargo_expensive_tests_feature
Cargo.toml: add "expensive_tests" feature
2024-06-28 11:27:27 +02:00
Sylvestre Ledru
7d77a3730c
Merge pull request #6502 from Its-Just-Nans/main
build all features on docs.rs
2024-06-28 11:16:41 +02:00
Daniel Hofstetter
4b0090b323
Merge pull request #6499 from sylvestre/b2sum2
hashsum/b2sum: when the checksum file is untagged, detect the size
2024-06-28 10:44:14 +02:00
n4n5
cc8a9f4c1b
build all features on docs.rs 2024-06-28 10:26:23 +02: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
11e8476456
Merge pull request #6501 from uutils/renovate/num-bigint-0.x-lockfile
chore(deps): update rust crate num-bigint to v0.4.6
2024-06-28 08:22:52 +02:00
renovate[bot]
2f0b37c7f4
chore(deps): update rust crate num-bigint to v0.4.6 2024-06-27 22:36:46 +00:00
Sylvestre Ledru
3b607f1c7c cksum: move the code where needed 2024-06-27 22:51:37 +02:00
Sylvestre Ledru
6a489f5ee7
Merge pull request #6500 from cakebaker/uucore_checksum_simplify_determine_regex
uucore/checksum: simplify `determine_regex()`
2024-06-27 14:11:36 +02:00
Daniel Hofstetter
710e999fc7 uucore/checksum: simplify determine_regex() 2024-06-27 12:46:32 +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
Sylvestre Ledru
212ddf7d8c Adjust identify_algo_name_and_length to return Option<(String, Option<usize>)> instead of (String, Option<usize>) 2024-06-27 00:01:09 +02:00
Daniel Hofstetter
b0716baeae Cargo.toml: add "expensive_tests" feature 2024-06-26 15:36:41 +02:00
Sylvestre Ledru
adcc548f7c cksum: Allow the indiv build 2024-06-25 19:05:28 +02:00
Sylvestre Ledru
2e704b8572 Address review comments 2024-06-25 19:01:04 +02:00
Sylvestre Ledru
ab2cc2f17a cksum base64: update the GNU test to manage our output 2024-06-25 19:00:23 +02:00
Sylvestre Ledru
6922e7f057 cksum/hashsum: Simplify the determine_regex function 2024-06-25 19:00:23 +02:00
Sylvestre Ledru
c2292a8da6 cksum/hashsum: Move the algo mgmt into a dedicated function 2024-06-25 19:00:23 +02:00
Sylvestre Ledru
e7898ab32a cksum/hashsum: Move the algo mgmt into a dedicated function 2024-06-25 19:00:23 +02:00
Sylvestre Ledru
520907e22b cksum/hashsum: Move the opening into a dedicated function 2024-06-25 19:00:23 +02:00
Sylvestre Ledru
a6bae64dde cksum/hashsum: use a struct to keep the results 2024-06-25 19:00:23 +02:00
Sylvestre Ledru
e6aad95055 cksum/hashsum: move the file mgmt into a function 2024-06-25 19:00:23 +02:00
Sylvestre Ledru
cc8bda5def cksum/hashsum: move to thiserror 2024-06-25 19:00:23 +02:00
Sylvestre Ledru
edae51d1a6 cksum/hashsum: move to quick-error 2024-06-25 19:00:23 +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
Sylvestre Ledru
9b11753e7c
Merge pull request #6490 from sylvestre/0.0.27
prepare version 0.0.27
2024-06-23 00:29:30 +02:00
Sylvestre Ledru
276bebcf14 prepare version 0.0.27 2024-06-23 00:24:02 +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
Daniel Hofstetter
7766257aee
Merge pull request #6489 from uutils/renovate/serde-monorepo
chore(deps): update rust crate serde to v1.0.203
2024-06-22 13:51:21 +02:00
renovate[bot]
3d9450afd6
chore(deps): update rust crate serde to v1.0.203 2024-06-22 11:07:23 +00: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
Sylvestre Ledru
32c5d23f91
Merge pull request #6485 from lcheylus/show_utils
show-utils.sh: fix jq query to get coreutils deps
2024-06-21 15:25:08 +02:00
Daniel Hofstetter
339fe0ec94
Merge pull request #6486 from uutils/renovate/proc-macro2-1.x-lockfile
fix(deps): update rust crate proc-macro2 to v1.0.86
2024-06-21 07:54:37 +02:00
renovate[bot]
753d110f9b
fix(deps): update rust crate proc-macro2 to v1.0.86 2024-06-21 02:23:06 +00:00
Laurent Cheylus
e50a3a4471
show-utils.sh: fix jq query to get coreutils deps
In jq query, the correct regex to select .id is ".*coreutils[ |@|#]\\d+\\.\\d+\\.\\d+"

With cargo <= v1.76, id = "coreutils 0.0.26 (path+file://<coreutils local directory>)"

With cargo >= v1.77,
- if local path == '<parent directory>/coreutils/', id = "path+file://<parent directory>/coreutils#0.0.26"
- if local path != '<parent directory>/coreutils/', id = "path+file://<coreutils local directory>#coreutils@0.0.26"

Fix uutils/coreutils#6479

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-06-19 17:35:45 +02:00
Daniel Hofstetter
c9f4742f3b
Merge pull request #6482 from lcheylus/numeric_constants
shuf: use usize::MAX instead of std::usize::MAX
2024-06-19 14:54:16 +02:00
Laurent Cheylus
a5e889c78d
shuf: use usize::MAX instead of std::usize::MAX
Fix warning from legacy_numeric_constants lint

Fix uutils/coreutils#6478

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-06-19 11:18:40 +02:00
Daniel Hofstetter
94295f9bd7 od: use u64::MAX instead of max_value()
to fix warning from legacy_numeric_constants lint
2024-06-18 03:10:33 +02:00
Daniel Hofstetter
80c6b14e05
Merge pull request #6473 from uutils/renovate/bigdecimal-0.x-lockfile
chore(deps): update rust crate bigdecimal to v0.4.5
2024-06-17 14:45:47 +02:00