coreutils
coreutils copied to clipboard
Cross-platform Rust rewrite of the GNU coreutils
GNU `stty` can list and change special terminal characters. This consists of two parts: printing and changing them. Printing is done in the following format: ``` intr = ^C; quit...
GNU `stty` has several "combination settings" that are shortcuts for multiple flags. We need to support these too. ``` Combination settings: * [-]LCASE same as [-]lcase cbreak same as -icanon...
`stty` currently can read a couple of "special settings" (like cols, rows, speed), but cannot currently change them. The following arguments should change these settings: ``` Special settings: N set...
Improved in https://github.com/uutils/coreutils/pull/3816 but not enough as it isn't testing it. This patch runs it: ``` diff --git a/tests/by-util/test_hashsum.rs b/tests/by-util/test_hashsum.rs index 06d039d59..7a87125c8 100644 --- a/tests/by-util/test_hashsum.rs +++ b/tests/by-util/test_hashsum.rs @@ -34,7 +34,7...
**Preparation of test** ``` mkdir -p a/b/ touch a/at.txt b/bt.txt rm -ri a ``` **GNU Utils** ``` rm: descend into directory 'a'? y rm: remove regular empty file 'a/at.txt'? y...
Used by `tests/misc/sm3sum.pl` ``` -a, --algorithm=TYPE select the digest type to use. See DIGEST below. [...] DIGEST determines the digest algorithm and default output format: sysv (equivalent to sum -s)...
Used by `tests/misc/sm3sum.pl` ``` --untagged create a reversed style checksum, without digest type ```
The first two commits are just bumping the MSRV and fixing the clippy lints. The last commit is more involved. I'm using the new workspace inheritance method for declaring dependencies....
Like discussed, I've extracted this from the refactoring pr of tail, which fixes the parsing of the sleep interval. The main intend of this pr is to match the behavior...
Prompted by a [comment on Reddit by epage](https://www.reddit.com/r/rust/comments/10y8ddx/fosdem_2023_reimplementing_the_coreutils_in_a/j81ylwu/), I think we should try to not depend on `clap_complete` at runtime or at least make it optional. The simplest thing to...