Stefin
4c1c9ebf89
rm: change InteractiveMode::Default to InteractiveMode::PromptProtected
...
Signed-off-by: Stefin <stefin@pm.me>
2022-08-27 19:38:10 +05:30
Stefin
ad4eac867f
rm: added test for rm_prompt_write_protected
...
Signed-off-by: Stefin <stefin@pm.me>
2022-08-23 21:17:48 +05:30
Stefin
a8326d7f3f
rm: added new InteractiveMode InteractiveMode::Never
...
Signed-off-by: Stefin <stefin@pm.me>
2022-08-23 19:33:34 +05:30
Stefin
9ffb00cd51
rm: added write-protected check for files
...
Signed-off-by: Stefin <stefin@pm.me>
2022-08-20 18:38:10 +05:30
Sylvestre Ledru
aef96083d7
Merge pull request #3833 from uutils/dependabot/cargo/libc-0.2.132
...
build(deps): bump libc from 0.2.131 to 0.2.132
2022-08-19 19:09:26 +02:00
Sylvestre Ledru
5d148bbb9f
Merge pull request #3843 from uutils/dependabot/cargo/lscolors-0.12.0
...
build(deps): bump lscolors from 0.11.1 to 0.12.0
2022-08-19 19:09:03 +02:00
Sylvestre Ledru
fe93c8906e
Merge pull request #3847 from tertsdiepraam/remove-examples-folder
...
maintenance: remove redundant examples folder
2022-08-19 18:02:07 +02:00
Terts Diepraam
80b1ed13e5
maintenance: remove redundant examples folder
...
These examples only duplicated the multicall binary via an include
and are therefore not necessary.
2022-08-19 14:33:01 +02:00
dependabot[bot]
6193cdbba8
build(deps): bump libc from 0.2.131 to 0.2.132
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.131 to 0.2.132.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.131...0.2.132 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-19 12:22:35 +00:00
Sylvestre Ledru
2d6c87c1ee
Merge pull request #3846 from niyaznigmatullin/exclude_winapi_dependency_on_non-windows
...
dependencies: make `winapi` dependency only for Windows
2022-08-19 14:19:58 +02:00
Sylvestre Ledru
563de8bab3
Merge pull request #3830 from niyaznigmatullin/fix_descriptor_vs_rename
...
tail: reuse opened file --follow=descriptor and renamed
2022-08-19 12:14:55 +02:00
Niyaz Nigmatullin
67ae68a6cf
dependecies: make winapi dependency only for windows, bump platform-info
...
crate version dependency
2022-08-19 12:28:13 +03:00
Sylvestre Ledru
b7ea400861
Merge pull request #3837 from tertsdiepraam/remove-more-error-macros
...
`uucore` & `cp`: remove `show_error_custom_description` macros `show_usage_error`
2022-08-19 10:01:49 +02:00
Sylvestre Ledru
a3e3542602
Merge pull request #3838 from tertsdiepraam/tty-nix
...
`tty`: move from `libc` to `nix`
2022-08-19 10:01:27 +02:00
Sylvestre Ledru
fb4ddd5310
Merge pull request #3844 from tertsdiepraam/ranges-refactor
...
`uucore::ranges`: Refactor, document and test
2022-08-19 09:02:35 +02:00
Sylvestre Ledru
8c0e076ca1
Merge pull request #3836 from niyaznigmatullin/hashbrown_remove_skipped_duplicate_check
...
deny: removed hashbrown from exceptions on checking duplicate crates
2022-08-19 09:01:48 +02:00
Niyaz Nigmatullin
f0cd3a0599
deny: removed hashbrown from checking duplicate crates, indexmap
...
requires new version of hashbrown as well
2022-08-19 07:36:14 +03:00
Terts Diepraam
003b483705
uucore/ranges: refactor and test complement
2022-08-18 21:27:32 +02:00
Terts Diepraam
7890228f82
uucore/ranges: document and test merge operation
2022-08-18 19:45:56 +02:00
Terts Diepraam
e9e9a8166f
uucore/ranges: refactor FromStr impl
2022-08-18 19:45:18 +02:00
dependabot[bot]
20809db439
build(deps): bump lscolors from 0.11.1 to 0.12.0
...
Bumps [lscolors](https://github.com/sharkdp/lscolors ) from 0.11.1 to 0.12.0.
- [Release notes](https://github.com/sharkdp/lscolors/releases )
- [Commits](https://github.com/sharkdp/lscolors/compare/v0.11.1...v0.12.0 )
---
updated-dependencies:
- dependency-name: lscolors
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-18 11:38:09 +00:00
Sylvestre Ledru
88261f36dd
Merge pull request #3834 from uutils/dependabot/cargo/once_cell-1.13.1
...
build(deps): bump once_cell from 1.13.0 to 1.13.1
2022-08-18 13:35:59 +02:00
Sylvestre Ledru
73f7b87458
Merge pull request #3839 from niyaznigmatullin/freebsd_android_CI_timeout
...
CI: add timeout to freebsd and android tests
2022-08-18 11:39:01 +02:00
Sylvestre Ledru
f35dbd112b
Merge pull request #3840 from tertsdiepraam/dir-vdir-fix-docs
...
`dir` & `vdir`: fix docs not showing up on the documentation website
2022-08-18 11:38:11 +02:00
Terts Diepraam
b983355bc4
uucore & cp: remove show_error_custom_description
macros show_usage_error
2022-08-18 10:44:59 +02:00
Terts Diepraam
791fb98dcc
tty: move from libc to nix
...
This moves the unsafe from our responsibility to nix and makes
the code a bit cleaner.
2022-08-18 00:59:27 +02:00
Terts Diepraam
f255c0cae8
dir & vdir: fix docs not showing up on the website
...
uudoc was getting a dummy clap app to generate documentation from. Now the app from ls is returned instead, so that it actually shows something.
2022-08-17 22:33:32 +02:00
Niyaz Nigmatullin
37b7375dae
CI: add timeout to freebsd and android tests, since it sometimes hangs
2022-08-17 22:09:56 +03:00
Sylvestre Ledru
87e3899477
Merge pull request #3832 from tertsdiepraam/simplify-encoding-handling
...
Simplify invalid encoding handling
2022-08-17 18:59:59 +02:00
dependabot[bot]
e465d0520f
build(deps): bump once_cell from 1.13.0 to 1.13.1
...
Bumps [once_cell](https://github.com/matklad/once_cell ) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/matklad/once_cell/releases )
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.13.0...v1.13.1 )
---
updated-dependencies:
- dependency-name: once_cell
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-17 16:20:25 +00:00
Terts Diepraam
383291f5b4
Merge pull request #3829 from niyaznigmatullin/cargo-lock-update
...
cargo +1.56.1 update
2022-08-17 15:58:48 +02:00
Terts Diepraam
ba713b6365
Simplify invalid encoding handling into two small methods of Args
...
The previous encoding handling was unnecessarily complex. This commit removes the enum that specifies the handling and instead has two separate methods to collect the strings either with lossy conversion or by ignoring invalidly encoded strings.
2022-08-17 15:20:20 +02:00
Terts Diepraam
5621502a95
all: remove accept_{any, complete, lossy}
and ConversionResult
...
Outside of tests, only `accept_any` was used, meaning that this unnecessarily complicated the code. The behaviour of `accept_any` is now the default (and only) option.
2022-08-17 14:57:28 +02:00
Terts Diepraam
0ed8b97a3f
uucore: remove panic encoding handling
...
We never want utilities to panic on invalid input and it is not currently in use, so it can be removed safely.
2022-08-17 14:29:53 +02:00
Niyaz Nigmatullin
cdc664305e
tail: reuse opened file with the same descriptor when
...
--follow=descriptor and renamed
2022-08-17 13:14:32 +03:00
Niyaz Nigmatullin
ec23d02b19
update unicode-ident to 1.0.3, allow Unicode-DFS-2016 License
2022-08-17 13:13:27 +03:00
Niyaz Nigmatullin
dc12639995
Fix completion with a clap update
2022-08-17 13:13:27 +03:00
Niyaz Nigmatullin
52d767ed5a
test_pr: follow clippy advice
2022-08-17 13:13:27 +03:00
Niyaz Nigmatullin
33ba5cbc93
downgrade unicode-ident to 1.0.0
2022-08-17 13:13:27 +03:00
Niyaz Nigmatullin
9cd898b885
remove nix 0.24.2 dependency
2022-08-17 13:13:27 +03:00
Niyaz Nigmatullin
f4df7ea4a0
cargo +1.56.1 update
2022-08-17 13:13:27 +03:00
Przemysław Fuchs
3acbd1c048
dd: Error message of invalid args is matched with GNU ( #3831 )
2022-08-17 11:40:42 +02:00
Owen Anderson
9fad6fde35
Fix a bug in split where chunking would be skipped when the chunk size ( #3800 )
...
* Fix a bug in split where chunking would be skipped when the chunk size
happened to be an exact divisor of the buffer size used to read the
input stream.
The issue here was that file was being split byte-wise in chunks of 1G.
The input stream was being read in chunks of 8KB, which evenly divides
the chunk size. Because the check to allocate the next output chunk was
done at the bottom of the loop previously, it would never occur because
the current input chunk was fully consumed at that point. By moving the
check to the top of the loop (but still late enough that we know we have
bytes to write) we resolve this issue.
This scenario is unfortunately hard to write a test for, since we don't
explicitly control the input chunk size.
Fixes https://github.com/uutils/coreutils/issues/3790
2022-08-16 11:02:52 +02:00
Terts Diepraam
5ecabb8467
Merge pull request #3784 from jarkonik/main
...
Use `clap::ArgAction` in `true` and `false`
2022-08-16 10:50:32 +02:00
Sylvestre Ledru
c03b3c4a18
Merge pull request #3826 from niyaznigmatullin/canonicalize_trailing_slash
...
readlink: GNU compatibility
2022-08-16 09:24:19 +02:00
Niyaz Nigmatullin
0db17196ca
readlink: follow clippy advice, add semicolon
2022-08-16 08:30:47 +03:00
Niyaz Nigmatullin
9c97b700ec
readlink: reformat using rustfmt
2022-08-16 08:25:02 +03:00
Niyaz Nigmatullin
5d4ad4de13
tests/readlink: add test for delimiters usage
2022-08-16 08:21:43 +03:00
Niyaz Nigmatullin
391143fe5b
readlink: fix -n and -z no delimiter at the end
2022-08-16 08:21:12 +03:00
Niyaz Nigmatullin
6879ed7b34
tests/readlink: refactor added tests
2022-08-15 23:33:41 +03:00