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

12956 Commits

Author SHA1 Message Date
renovate[bot]
51e7fbe1fd
chore(deps): update dawidd6/action-download-artifact action to v6 2024-06-12 13:59:13 +00: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
cc9c304843
Merge pull request #6458 from uutils/renovate/regex-1.x-lockfile
chore(deps): update rust crate regex to v1.10.5
2024-06-09 15:58:58 +02:00
renovate[bot]
26625aed56
chore(deps): update rust crate regex to v1.10.5 2024-06-09 13:19:52 +00:00
Daniel Hofstetter
6a4abcf862
Merge pull request #6454 from TO19/seq/benchmarking-doc-typo
seq: fix typo in benchmarking documentation file
2024-06-05 07:08:54 +02:00
TO19
303e1e9ae8 seq: fix typo in benchmarking documentation file 2024-06-05 00:31:26 +02:00
Daniel Hofstetter
06d5e95716
uucore: enable sum feature for checksum feature (#6450) 2024-06-04 15:29:55 +02:00
Daniel Hofstetter
978f14c4a8
Merge pull request #6449 from uutils/renovate/dawidd6-action-download-artifact-5.x
chore(deps): update dawidd6/action-download-artifact action to v5
2024-06-04 15:16:41 +02:00
renovate[bot]
edf6874a8c
chore(deps): update dawidd6/action-download-artifact action to v5 2024-06-04 12:48:36 +00: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
Daniel Hofstetter
47d0e204f3
Merge pull request #6447 from uutils/renovate/dawidd6-action-download-artifact-4.x
chore(deps): update dawidd6/action-download-artifact action to v4
2024-06-04 07:23:52 +02:00
renovate[bot]
68ef82d541
chore(deps): update dawidd6/action-download-artifact action to v4 2024-06-03 23:01:39 +00: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
Daniel Hofstetter
d03c48845d
Merge pull request #6443 from uutils/renovate/proc-macro2-1.x-lockfile
fix(deps): update rust crate proc-macro2 to v1.0.85
2024-06-02 11:01:20 +02:00
Daniel Hofstetter
cc90753a9d
Merge pull request #6441 from uutils/renovate/rstest-0.x
chore(deps): update rust crate rstest to 0.21.0
2024-06-02 10:58:37 +02:00
renovate[bot]
77ac330d7b
fix(deps): update rust crate proc-macro2 to v1.0.85 2024-06-02 04:04:50 +00:00
renovate[bot]
4c9a0e1e64
chore(deps): update rust crate rstest to 0.21.0 2024-06-01 18:41:24 +00:00
Sylvestre Ledru
b1b6f28b76 cksum/hashsum: add some words in the spell skip 2024-06-01 20:28:53 +02:00
sreehari prasad
8cac375ddd
cp: gnu test case preserve-mode fix (#6432) 2024-05-30 21:12:55 +02:00
Sylvestre Ledru
6e06c2a5ea cksum/hashsum: fix clippy warnings 2024-05-29 09:08:04 +02:00
Sylvestre Ledru
193a81bcc3 cksum/hashsum: create a new error type & use it 2024-05-29 09:08:04 +02:00
Sylvestre Ledru
bf8b0df22f cksum/hashsum: improve the display of errors 2024-05-29 09:08:04 +02:00
Sylvestre Ledru
1cf6700023 cksum/hashsum: manage the '*' start correctly 2024-05-29 09:08:04 +02:00
Sylvestre Ledru
84d90fcbdf cksum/hashsum: try to detect the format faster the first line 2024-05-29 09:08:04 +02:00
Sylvestre Ledru
2c83b28d18 hashsum: improve the file verification algo.
We have 3 different kinds of input:
* "algo (filename) = checksum"
  example: `BLAKE2 (a) = bedfbb90d858c2d67b7ee8f7523be3d3b54004ef9e4f02f2ad79a1d05bfdfe49b81e3c92ebf99b504102b6bf003fa342587f5b3124c205f55204e8c4b4ce7d7c`
* "checksum  filename"
  example: `60b725f10c9c85c70d97880dfe8191b3  a`
* "checksum filename"
  example: `60b725f10c9c85c70d97880dfe8191b3 a`

These algo/regexp are tricky as files can be called "a, " b", " ", or "*c".
We look at the first time to analyze the kind of input and reuse the same regexp then.
2024-05-29 09:08:04 +02:00
Sylvestre Ledru
6acc8e695f hashsum: Implement the quiet mode 2024-05-29 09:08:04 +02:00
Sylvestre Ledru
89b7a1a8fb hashsum: handle the case when md5sum is used but the file contains a different algo 2024-05-29 09:08:04 +02:00
Sylvestre Ledru
0882eea07c cksum/hashsum: factor the error structure and use it more 2024-05-29 09:08:04 +02:00
Sylvestre Ledru
dbe7a20e08 cksum/hashsum: refactor the common code.
Summary of the change:
* Move the common code into checksum
* Create a structure HashAlgorithm to handle the algorithm (instead of the 3 variables)
* Use the same function for cksum & hashsum for --check (perform_checksum_validation)
* Use the same for function for the hash generation (digest_reader)
* Add unit tests
* Add integration tests
* Fix some incorrect tests
2024-05-29 09:08:00 +02:00
Daniel Hofstetter
3523268936
Merge pull request #6438 from phedders/main
src/uucore/src/lib/features/fsext.rs: Add magic for bcachefs
2024-05-28 14:53:28 +02:00
Paul Hedderly
4824033385 src/uucore/src/lib/features/fsext.rs: Add magic for bcachefs
Enables stat to recogise a BcacheFS filesystem - for example:

  $ ./target/debug/stat -f /
  File: "/"
    ID: 64b40636928f3ee7 Namelen: 512     Type: bcachefs
  Block size: 512        Fundamental block size: 512
  Blocks: Total: 2044464374 Free: 295830135  Available: 291278902
  Inodes: Total: 2375400624 Free: 2366641080
2024-05-28 12:23:21 +01:00
Sylvestre Ledru
8adeb902ce
Merge pull request #6437 from cakebaker/df_fix_incorrect_test
df: fix incorrect test & add another test
2024-05-27 13:12:46 +02:00
Daniel Hofstetter
8d3181fed5 df: fix incorrect test & add another test 2024-05-27 11:53:12 +02:00
Daniel Hofstetter
22588a8bfb
Merge pull request #6433 from Qelxiros/df/size_padding
df: fix size column padding
2024-05-27 11:04:03 +02:00
Daniel Hofstetter
2769a5c82c
Merge pull request #6434 from uutils/renovate/proc-macro2-1.x-lockfile
fix(deps): update rust crate proc-macro2 to v1.0.84
2024-05-26 10:31:44 +02:00
renovate[bot]
5a357c61b7
fix(deps): update rust crate proc-macro2 to v1.0.84 2024-05-26 01:22:57 +00:00
Jeremy Smart
3bc4df4075
df: fix size column padding 2024-05-25 16:08:23 -04:00
Daniel Hofstetter
6adf07e934
Merge pull request #6430 from sylvestre/clippy-tests
tests: fix some clippy warnings
2024-05-25 13:39:57 +02:00
Sylvestre Ledru
09e53f3d2d tests: fix some clippy warnings 2024-05-25 09:06:16 +02:00
Daniel Hofstetter
5825c2b1b5
Merge pull request #6428 from uutils/renovate/reactivecircus-android-emulator-runner-2.x
chore(deps): update reactivecircus/android-emulator-runner action to v2.31.0
2024-05-25 08:04:45 +02:00
renovate[bot]
86de66f3e2
chore(deps): update reactivecircus/android-emulator-runner action to v2.31.0 2024-05-24 15:13:54 +00:00
Sylvestre Ledru
4534f359f2
Merge pull request #6427 from cakebaker/deny_toml_allow_bsl_1_0_as_license
deny.toml: allow BSL-1.0 as license
2024-05-24 10:32:52 +02:00
Daniel Hofstetter
05decd97ec deny.toml: allow BSL-1.0 as license 2024-05-24 09:48:36 +02:00
Daniel Hofstetter
51e8d100af
Merge pull request #6425 from thesayyn/patch-1
fix: macos-latest is now arm64
2024-05-24 08:59:36 +02:00
Christian von Elm
0d1bde2879 tr: disallow classes besides [:upper:]/[:lower:] in set2 when translating
Fixes issue #6342
2024-05-23 22:06:57 +02:00
Walid
ebcd86df07
env: adds --ignore-signal (#6377)
* env: adds --ignore-signal
This commit implement #6164.

* env: handle STOP signal and fix styling issue

* env: fix encoded bytes

* env: adds SAFETY comment and handle special signals in ignore_signal

* env: fix parsing to have compatible behaviour

* env: remove derive from Options

* env: changed safety comment, handle duplications after parsing and non-unix cfg

* env: adds tests for ignore-signal parsing and invalid and special signals

* env: change signal values to be non-constant

* env: adds testing for signal ignoring

* env: styling and remove unix specific derive

* test_env: add SIGSTOP to cspell workspace wordlist

* env: makes signal handling unix specific

* env: make ignore-signal function invocation unix specific

* test_env: make signal vector use slices ref instead of vec (linter)

* env: makes ignore-signal in options unix specific

* test_env: add unix specific import
2024-05-23 22:01:39 +02:00
Sahin Yort
ebba776695
fix: macos-latest is now arm64 2024-05-23 12:33:10 -07:00
Sylvestre Ledru
e2aa2c7440
Merge pull request #6421 from cakebaker/cargo_toml_enable_mode_feature
Cargo.toml: enable uucore's `mode` feature
2024-05-23 13:55:19 +02:00