coreutils
coreutils copied to clipboard
Cross-platform Rust rewrite of the GNU coreutils
fail! writes an error message to stderr. Every function call that can fail is a potential rust error message to stderr. Consider the following code ``` ~/rust/coreutils/build$ ./cat /etc/fstab |...
With a new release tagged, we have the opportunity to bump the MSRV again. With [1.61](https://blog.rust-lang.org/2022/05/19/Rust-1.61.0.html) we would get: - `retain_mut`, which unblocks https://github.com/uutils/coreutils/issues/4190 - The `Termination` trait which might...
`fold -w` would become quite a bit more useful for CJK users if it counts by the actual character width from `UnicodeWidthStr`. I am not sure whether this behavior breaks...
The current factor implementation only supports numbers up to 264 - 1. GNU factor supports numbers up to 2127 - 1 if compiled without the [GNU Multiple Precision](https://en.wikipedia.org/wiki/GNU_Multiple_Precision_Arithmetic_Library) (GMP) library...
I was recently trying to migrate all of our `rand` dependencies to a single version. I noticed that `ReadRng`, which we use to implement `--random-source` in `shuf`, was deprecated in...
While `tail -1` (which is equal to `tail -n-1`) works, `uu-tail -1` (show the last line of input) does not work (but `uu-tail -n-1` works).
Example: https://github.com/uutils/coreutils/pull/2417/checks?check_run_id=2838351712 I really don't know why this happens. It seems to happen randomly on different `sort` tests, but I wasn't able to reproduce it in a windows vm. Interestingly...
I've made an overview of all options that need to be added and defaults that need to be changed in `ls` to reach full compatibility with GNU `ls`. I hope...
We almost don't have tests for nohup. We should have more: https://codecov.io/gh/uutils/coreutils/tree/master/src/uu/nohup/src Should be added here: https://github.com/uutils/coreutils/blob/master/tests/by-util/test_nohup.rs
ptx has `-G --traditional` flags to specify to whether use traditional mode or GNU extensions, our ptx implementation doesn't supports GNU extensions yet. In traditional mode, there are only several...