Commit graph

10289 commits

Author SHA1 Message Date
Sylvestre Ledru
3e7594632b ls: when facing an invalid utf-8, don't panic
Fails with
```
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "invalid-\xE0-"', src/uu/ls/src/ls.rs:1932:53
```
2023-05-14 22:11:44 +02:00
Sylvestre Ledru
49c16a2f11
Merge pull request #4860 from cakebaker/cksum_implement_untagged
cksum: implement --untagged
2023-05-14 19:42:53 +02:00
Daniel Hofstetter
690fff2fc9 cksum: implement --untagged 2023-05-14 16:43:14 +02:00
Sylvestre Ledru
24e0bef781
Merge pull request #4859 from shinhs0506/cp-perm
cp: preserve permissions on -r -p --parents
2023-05-14 10:28:12 +02:00
John Shin
a817186e10 cp: preserve permissions on -r -p --parents 2023-05-12 11:34:51 -07:00
Daniel Hofstetter
1d0b3553c0
Merge pull request #4858 from uutils/renovate/humantime_to_duration-0.x
chore(deps): update rust crate humantime_to_duration to 0.2.1
2023-05-12 17:47:26 +02:00
renovate[bot]
9415c6c8cc
chore(deps): update rust crate humantime_to_duration to 0.2.1 2023-05-12 14:50:22 +00:00
Sylvestre Ledru
64c49de0cc
Merge pull request #4432 from jfinkels/dd-nocache
dd: support the [io]flag=nocache option
2023-05-12 09:53:57 +02:00
Daniel Hofstetter
98fa941250
Merge pull request #4759 from sylvestre/clippy4
fix some clippy warnings in tests
2023-05-12 07:15:44 +02:00
Sylvestre Ledru
2b2215532f
Merge pull request #4857 from uutils/renovate/humantime_to_duration-0.x
chore(deps): update rust crate humantime_to_duration to 0.2.0
2023-05-11 19:57:21 +02:00
renovate[bot]
133ff41d81
chore(deps): update rust crate humantime_to_duration to 0.2.0 2023-05-11 16:56:57 +00:00
Sylvestre Ledru
d98293bdaa
bring back the empty line 2023-05-11 18:20:28 +02:00
Sylvestre Ledru
536d12d20d
simplify code
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-05-11 18:19:49 +02:00
Sylvestre Ledru
22a7f98a47
Merge pull request #4856 from cakebaker/cksum_fix_algorithm_output
cksum: fix output of --algorithm
2023-05-11 18:18:24 +02:00
John Shin
7a31d841ba
cp: preserve permission on -p --parents (#4853) 2023-05-11 16:44:23 +02:00
Daniel Hofstetter
0781ad0a65 cksum: fix output of --algorithm
for the algorithms md5, sha[1,224,256,384,512], blake2b, and sm3 from

<digest> <filesize> <filename>

to

<algo name> (<filename>) = <digest>

to use the same format as GNU cksum
2023-05-11 14:24:43 +02:00
SteveLauC
452be5a220
ls: device number for BSDs and solarishOS (#4841) 2023-05-11 12:58:36 +02:00
leone
d8f1f1c16c
date: bugfix test_date_for_no_permission_file (#4544) 2023-05-10 18:40:58 +02:00
Sylvestre Ledru
af58532d8a
Merge pull request #4854 from cakebaker/cksum_split_test_function
cksum: split test function into two
2023-05-10 11:14:26 +02:00
Daniel Hofstetter
ba6eb392aa cksum: split test function into two 2023-05-10 09:48:32 +02:00
Daniel Hofstetter
96a16cf272
Merge pull request #4852 from uutils/renovate/memmap2-0.x
fix(deps): update rust crate memmap2 to 0.6
2023-05-10 07:08:53 +02:00
renovate[bot]
7983e23d53
fix(deps): update rust crate memmap2 to 0.6 2023-05-09 18:00:46 +00:00
Sylvestre Ledru
eb2655a2fc
Merge pull request #4851 from cakebaker/docs_add_extension
docs: add extension (short options with args)
2023-05-09 11:46:02 +02:00
Sylvestre Ledru
f901f953fd
Merge pull request #4850 from cakebaker/basenc_add_help_texts
basenc: add help texts for options
2023-05-09 11:44:47 +02:00
Daniel Hofstetter
6247986a52 docs: add extension (short options with args) 2023-05-09 10:25:04 +02:00
Daniel Hofstetter
3f40ec4db7 basenc: add help texts for options 2023-05-09 09:44:48 +02:00
Daniel Hofstetter
49fd7c5697
Merge pull request #4847 from sylvestre/boc
doc: show a warning when no tldr example
2023-05-09 08:07:53 +02:00
Daniel Hofstetter
71eb52fe46
Merge pull request #4848 from uutils/renovate/libc-0.x
fix(deps): update rust crate libc to 0.2.144
2023-05-09 07:03:48 +02:00
renovate[bot]
30c166ad40
fix(deps): update rust crate libc to 0.2.144 2023-05-08 16:28:38 +00:00
Sylvestre Ledru
caf9bfcadc doc: show a warning when no tldr example 2023-05-08 17:48:23 +02:00
Daniel Hofstetter
d769871374
Merge pull request #4831 from sylvestre/mv-hardlink
mv: 'mv source hardlink' should fail
2023-05-08 16:12:23 +02:00
Sylvestre Ledru
48b8cfa595 mv: adjust the tests - duplicate code + android
According to:
https://stackoverflow.com/questions/44913985/creating-hardlinks-and-symlinks-in-android
hardlink aren't expected to work on android + fat
2023-05-08 15:24:47 +02:00
Sylvestre Ledru
594f81a88a mv --backup=simple a b on hard links should not fail
touch a
ln a b
./target/debug/coreutils mv --backup=simple a b

GNU: tests/mv/hard-4.sh
2023-05-08 13:08:20 +02:00
Sylvestre Ledru
51da8bf7b3
Merge pull request #4843 from cakebaker/dd_remove_unused_imports
dd: fix "unused imports" warning in tests
2023-05-08 13:07:34 +02:00
Daniel Hofstetter
560ac3d6fb dd: fix "unused imports" warning in tests 2023-05-08 07:59:56 +02:00
Daniel Hofstetter
f9536e9914
Merge pull request #4842 from sylvestre/aze
dd: fix some clippy warnings 'variable does not need to be mutable'
2023-05-08 07:44:55 +02:00
Sylvestre Ledru
1b99376d95 mv: split exec into smaller functions 2023-05-07 23:08:44 +02:00
Sylvestre Ledru
a5a39b6ba8 mv: 'mv source hardlink' should fail
fixes: tests/mv/force.sh
2023-05-07 23:08:41 +02:00
Sylvestre Ledru
b7cf825887 uucore::fs add an hardlink detection 2023-05-07 23:04:52 +02:00
Jeffrey Finkelstein
4ff318aee1 fixup! dd: support the [io]flag=nocache option 2023-05-07 16:33:21 -04:00
Sylvestre Ledru
916f014ef0 dd: fix some clippy warnings 'variable does not need to be mutable' 2023-05-07 18:46:08 +02:00
Jeffrey Finkelstein
bd18a2a344 dd: support the [io]flag=nocache option
Add support for the `iflag=nocache` and `oflag=nocache` to make `dd`
discard the filesystem cache for the processed portion of the input or
output file.
2023-05-07 11:43:13 -04:00
Jeffrey Finkelstein
cc2f97ba0d dd: add discard_cache() funcs for Input, Output
Add the `Input::discard_cache()` and `Output::discard_cache()`
functions. These allow discarding the filesystem cache when `dd` no
longer needs to access a specified portion of the input or output
file, respectively.
2023-05-07 11:43:13 -04:00
Jeffrey Finkelstein
12e4acaec3 dd: add bytes_total to ReadStat
Add the `bytes_total` field to the `ReadStat` struct. This lets the
main loop of `dd` keep track of the total number of bytes read.
2023-05-07 11:43:13 -04:00
Sylvestre Ledru
00e1bbea33
Merge pull request #4839 from sylvestre/clippy
Fix some semicolon_if_nothing_returned
2023-05-07 09:55:29 +02:00
Sylvestre Ledru
aed607f443
Merge pull request #4838 from uutils/renovate/zip-0.x
chore(deps): update rust crate zip to 0.6.5
2023-05-06 23:17:23 +02:00
Sylvestre Ledru
e23bad1d4a
Merge pull request #4840 from uutils/renovate/libc-0.x
fix(deps): update rust crate libc to 0.2.143
2023-05-06 23:16:51 +02:00
renovate[bot]
214c027cfa
fix(deps): update rust crate libc to 0.2.143 2023-05-06 19:01:14 +00:00
Sylvestre Ledru
9dc8bc83a6
Merge pull request #4837 from m11o/tty-move-strings-to-md-file
tty: move help strings to markdown file
2023-05-06 19:51:23 +02:00
Sylvestre Ledru
b94d10f080 Fix some semicolon_if_nothing_returned 2023-05-06 19:35:44 +02:00