| 1 |
# 0.0.15 |
| 2 |
|
| 3 |
**Version:** 0.0.15 |
| 4 |
**Published:** 2022-08-20T14:19:32Z |
| 5 |
|
| 6 |
## Release Notes |
| 7 |
|
| 8 |
## Highlights |
| 9 |
* `stty` is now partially implemented (https://github.com/uutils/coreutils/pull/3672). We now finally have implementations for all the coreutils! |
| 10 |
* `tail` now implements `--follow` and has seen many more improvements thanks to the giant refactor by @jhscheer. |
| 11 |
* `wc` and `sum` have gotten performance improvements by @resistor. |
| 12 |
* There have been refactors, fixes and performance improvements in many utils. |
| 13 |
|
| 14 |
## GNU test suite compatibility |
| 15 |
Many utils have seen minor changes to improve GNU compatibility. This marks the first release where we pass more tests than we fail. See https://github.com/uutils/coreutils-tracking/ for more details |
| 16 |
|
| 17 |
| result | 0.0.14 | 0.0.15 | change | |
| 18 |
|--------|-------:|------:|-------:| |
| 19 |
| pass | 242 | 293 | +51 | |
| 20 |
| skip | 73 | 73 | 0 | |
| 21 |
| fail | 270 | 222 | -48 | |
| 22 |
| error | 8 | 5 | -3 | |
| 23 |
|
| 24 |
## Changes |
| 25 |
The PR's listed below are a selection of all the contributions in this release. |
| 26 |
|
| 27 |
### `basename` |
| 28 |
* Simple format arguments by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3736 |
| 29 |
|
| 30 |
### `basenc` |
| 31 |
* Fix error code on wrong usage by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3743 |
| 32 |
|
| 33 |
### `comm` |
| 34 |
* Use `NUL` if delimiter is empty by @cakebaker in https://github.com/uutils/coreutils/pull/3701 |
| 35 |
|
| 36 |
### `cp` |
| 37 |
* Correctly copy attributes of a dangling symbolic link by @jfinkels in https://github.com/uutils/coreutils/pull/3692 |
| 38 |
* Implement `--sparse` flag by @pimzero in https://github.com/uutils/coreutils/pull/3766 |
| 39 |
* Make `--b=simple` protective of source by @philgebhardt in https://github.com/uutils/coreutils/pull/3647 |
| 40 |
* Truncate destination when `--reflink` is set by @pimzero in https://github.com/uutils/coreutils/pull/3759 |
| 41 |
* Fix `test_copy_through_dangling_symlink_no_dereference_permissions` by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3789 |
| 42 |
|
| 43 |
### `cut` |
| 44 |
* Fix argument parsing for the delimiter by @jhscheer in https://github.com/uutils/coreutils/pull/3607 |
| 45 |
|
| 46 |
### `dd` |
| 47 |
* Error message of invalid args is matched with GNU by @Fuchczyk in https://github.com/uutils/coreutils/pull/3831 |
| 48 |
* Fix output issues by @patricksjackson in https://github.com/uutils/coreutils/pull/3610 |
| 49 |
* Only print concise byte counts if count is sufficiently large by @jfinkels in https://github.com/uutils/coreutils/pull/3617 |
| 50 |
* Reuse buffer for the most common cases by @patricksjackson in https://github.com/uutils/coreutils/pull/3600 |
| 51 |
* Fix broken pipe in `test_bytes_oseek_bytes_trunc_oflag` by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3797 |
| 52 |
|
| 53 |
### `df` |
| 54 |
* Better error message when executed in a chroot without `/proc` by @lendandgit in https://github.com/uutils/coreutils/pull/3602 |
| 55 |
* Fix output if input path is device name by @cakebaker in https://github.com/uutils/coreutils/pull/3682 |
| 56 |
* Fix rounding behavior in humanreadable mode by @cakebaker in https://github.com/uutils/coreutils/pull/3554 |
| 57 |
* Read block size from env vars by @cakebaker in https://github.com/uutils/coreutils/pull/3504 |
| 58 |
* Show "total" label in correct column by @jfinkels in https://github.com/uutils/coreutils/pull/3579 |
| 59 |
* Trim size header in tests by @cakebaker in https://github.com/uutils/coreutils/pull/3582 |
| 60 |
* Implement the `--sync` flag for df by @anastygnome in https://github.com/uutils/coreutils/pull/3592 |
| 61 |
|
| 62 |
### `dircolors` |
| 63 |
* Add support for stdin by @jhscheer in https://github.com/uutils/coreutils/pull/3591 |
| 64 |
* Escape `'` and `:` by @cakebaker in https://github.com/uutils/coreutils/pull/3639 |
| 65 |
* Implement `--print-ls-colors` by @cakebaker in https://github.com/uutils/coreutils/pull/3566 |
| 66 |
* Make `-b` & `-c` args overridable by @cakebaker in https://github.com/uutils/coreutils/pull/3569 |
| 67 |
* Update error message by @cakebaker in https://github.com/uutils/coreutils/pull/3596 |
| 68 |
|
| 69 |
### `dirname` |
| 70 |
* Add missing `"\n\"` to usage message by @cakebaker in https://github.com/uutils/coreutils/pull/3570 |
| 71 |
|
| 72 |
### `du` |
| 73 |
* Remove unnecessary spaces from help by @cakebaker in https://github.com/uutils/coreutils/pull/3622 |
| 74 |
* Add `parse_glob` module and update `du` to use `parse_glob` by @ackerleytng in https://github.com/uutils/coreutils/pull/3754 |
| 75 |
|
| 76 |
### `expand` |
| 77 |
* Add support for `--tabs` shortcuts by @cakebaker in https://github.com/uutils/coreutils/pull/3612 |
| 78 |
* Allow multiple `tabs` args by @cakebaker in https://github.com/uutils/coreutils/pull/3585 |
| 79 |
* Show error if `--tabs` arg has invalid chars by @cakebaker in https://github.com/uutils/coreutils/pull/3583 |
| 80 |
* Allow specifier only with last value by @cakebaker in https://github.com/uutils/coreutils/pull/3595 |
| 81 |
* Handle too large tab size by @cakebaker in https://github.com/uutils/coreutils/pull/3594 |
| 82 |
* Remove empty line from error message by @cakebaker in https://github.com/uutils/coreutils/pull/3577 |
| 83 |
* Simplify signature of `expand_shortcuts()` by @cakebaker in https://github.com/uutils/coreutils/pull/3644 |
| 84 |
|
| 85 |
### `hashsum` |
| 86 |
* Isolate non-"GNU Coreutils" options by @str4d in https://github.com/uutils/coreutils/pull/3593 |
| 87 |
* Fix the `-c` usage by @sylvestre in https://github.com/uutils/coreutils/pull/3816 |
| 88 |
|
| 89 |
### `install` |
| 90 |
* Verbose messages shows ginstall as command by @sylvestre in https://github.com/uutils/coreutils/pull/3651 |
| 91 |
* Fix install `-C` test by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3663 |
| 92 |
* Make `install -V` show the filename by @ElijahSink in https://github.com/uutils/coreutils/pull/3657 |
| 93 |
|
| 94 |
### `ln` |
| 95 |
* Improve error messages compatibility by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3730 |
| 96 |
* Implement `-L` `-P` to make tests/ln/hard-to-sym.sh work by @sylvestre in https://github.com/uutils/coreutils/pull/3563 |
| 97 |
* Symlink --force, src and dst are same file by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3724 |
| 98 |
|
| 99 |
### `ls`, `dir` & `vdir` |
| 100 |
* Add already listed message by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3707 |
| 101 |
* Fix double quoting when color is enabled by @tertsdiepraam in https://github.com/uutils/coreutils/pull/3590 |
| 102 |
* Implement `--zero` by @pimzero in https://github.com/uutils/coreutils/pull/3746 |
| 103 |
* Remove trailing space when using the comma format (`-m`) by @anastygnome in https://github.com/uutils/coreutils/pull/3615 |
| 104 |
* Silently ignore `-T` option by @Stonks3141 in https://github.com/uutils/coreutils/pull/3718 |
| 105 |
* Forbid octal numbers for width parameter by @Ganneff in https://github.com/uutils/coreutils/pull/3613 |
| 106 |
|
| 107 |
### `mktemp` |
| 108 |
* Change directory permission after creation by @353fc443 in https://github.com/uutils/coreutils/pull/3471 |
| 109 |
* Combine `--tmpdir` and subdirectory info by @jfinkels in https://github.com/uutils/coreutils/pull/3568 |
| 110 |
* Error on empty `--suffix` in some situations by @jfinkels in https://github.com/uutils/coreutils/pull/3599 |
| 111 |
* Exit with status `1` on usage errors by @jfinkels in https://github.com/uutils/coreutils/pull/3578 |
| 112 |
* Include suffix in error message by @jfinkels in https://github.com/uutils/coreutils/pull/3551 |
| 113 |
* Only replace last contiguous block of Xs by @jfinkels in https://github.com/uutils/coreutils/pull/3586 |
| 114 |
* Respect `POSIXLY_CORRECT` env var when parsing args by @weijunji in https://github.com/uutils/coreutils/pull/3604 |
| 115 |
* Simplify file path parameter logic by @jfinkels in https://github.com/uutils/coreutils/pull/3573 |
| 116 |
|
| 117 |
### `mv` |
| 118 |
* Fix error when moving directory to itself by @Fuchczyk in https://github.com/uutils/coreutils/pull/3809 |
| 119 |
|
| 120 |
### `numfmt` |
| 121 |
* Implement `--format` by @cakebaker in https://github.com/uutils/coreutils/pull/3751 |
| 122 |
* Implement `--to-unit` & `--from-unit` by @cakebaker in https://github.com/uutils/coreutils/pull/3705 |
| 123 |
* Preserve trailing zeros by @cakebaker in https://github.com/uutils/coreutils/pull/3764 |
| 124 |
* Don't round floats if `--from` is `none` by @cakebaker in https://github.com/uutils/coreutils/pull/3742 |
| 125 |
* Reject suffix if unit is `none` by @cakebaker in https://github.com/uutils/coreutils/pull/3716 |
| 126 |
* Remove duplicate default hints from help by @cakebaker in https://github.com/uutils/coreutils/pull/3696 |
| 127 |
* Show `invalid suffix` error for `i` suffix by @cakebaker in https://github.com/uutils/coreutils/pull/3732 |
| 128 |
* Show error if `--padding` is zero by @cakebaker in https://github.com/uutils/coreutils/pull/3686 |
| 129 |
* Show error if `i` suffix is missing by @cakebaker in https://github.com/uutils/coreutils/pull/3713 |
| 130 |
|
| 131 |
### `paste` |
| 132 |
* Implement `-z` flag by @cakebaker in https://github.com/uutils/coreutils/pull/3659 |
| 133 |
|
| 134 |
### `readlink` |
| 135 |
* Improve GNU compatibility by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3826 |
| 136 |
* Symlink loop handling by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3717 |
| 137 |
|
| 138 |
### `realpath` |
| 139 |
* Relative options by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3710 |
| 140 |
* Improve symlink handling by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3703 |
| 141 |
* Add `--no-symlinks` alias by @cakebaker in https://github.com/uutils/coreutils/pull/3681 |
| 142 |
|
| 143 |
### `rm` |
| 144 |
* Fix help text mistakenly being used as the long option by @tertsdiepraam in https://github.com/uutils/coreutils/pull/3670 |
| 145 |
|
| 146 |
### `shuf` |
| 147 |
* Add missing spaces to about text by @cakebaker in https://github.com/uutils/coreutils/pull/3677 |
| 148 |
* Improve performance by @Garfield96 in https://github.com/uutils/coreutils/pull/3642 |
| 149 |
|
| 150 |
### `sort` |
| 151 |
* Wait when SIGINT was raised for the program to finish properly by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3801 |
| 152 |
|
| 153 |
### `sum` |
| 154 |
* Speed up sum by using reasonable read buffer sizes. by @resistor in https://github.com/uutils/coreutils/pull/3741 |
| 155 |
|
| 156 |
### `split` |
| 157 |
* Don't overwrite files by @andrewbaptist in https://github.com/uutils/coreutils/pull/3719 |
| 158 |
* Set names for arg values by @cakebaker in https://github.com/uutils/coreutils/pull/3541 |
| 159 |
* Don't skip chucking when the chunk size is a divisor of the buffer size by @resistor in https://github.com/uutils/coreutils/pull/3800 |
| 160 |
|
| 161 |
### `stty` |
| 162 |
* Initial implementation by @tertsdiepraam in https://github.com/uutils/coreutils/pull/3672 |
| 163 |
|
| 164 |
### `tail` |
| 165 |
* Implement `--follow` and much more by @jhscheer in https://github.com/uutils/coreutils/pull/2695 |
| 166 |
* Rework platform module by @anastygnome in https://github.com/uutils/coreutils/pull/3706 |
| 167 |
* Fix race condition by @jhscheer in https://github.com/uutils/coreutils/pull/3798 |
| 168 |
* Reduce CPU load for polling by @jhscheer in https://github.com/uutils/coreutils/pull/3618 |
| 169 |
* Reuse opened file `--follow=descriptor` by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3830 |
| 170 |
|
| 171 |
### `tee` |
| 172 |
* Implement `-p` by @eds-collabora in https://github.com/uutils/coreutils/pull/3656 |
| 173 |
|
| 174 |
### `touch` |
| 175 |
* Fix trailing slashes handling by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3788 |
| 176 |
|
| 177 |
### `true` & `false` |
| 178 |
* Use `clap::ArgAction` for `--help` and `--version` by @jarkonik in https://github.com/uutils/coreutils/pull/3784 |
| 179 |
|
| 180 |
### `tty` |
| 181 |
* Move from `libc` to `nix` by @tertsdiepraam in https://github.com/uutils/coreutils/pull/3838 |
| 182 |
|
| 183 |
### `unexpand` |
| 184 |
* Handle too large `tabs` arguments by @cakebaker in https://github.com/uutils/coreutils/pull/3655 |
| 185 |
* Implement `tabs` shortcuts by @cakebaker in https://github.com/uutils/coreutils/pull/3646 |
| 186 |
* Set value name of arg by @cakebaker in https://github.com/uutils/coreutils/pull/3605 |
| 187 |
|
| 188 |
### `uniq` |
| 189 |
* Set default missing value for `group` and `all-repeated` args by @cakebaker in https://github.com/uutils/coreutils/pull/3667 |
| 190 |
|
| 191 |
### `wc` |
| 192 |
* Specialize scanning loop on settings. by @resistor in https://github.com/uutils/coreutils/pull/3708 |
| 193 |
* Implement a fast path for character counting in wc. by @resistor in https://github.com/uutils/coreutils/pull/3735 |
| 194 |
* Implement wc fast paths that skip Unicode decoding. by @resistor in https://github.com/uutils/coreutils/pull/3740 |
| 195 |
* Fix wc gnu test suite compatibility by @anastygnome in https://github.com/uutils/coreutils/pull/3688 |
| 196 |
|
| 197 |
### `uucore` |
| 198 |
* Create `help_section` macro by @tertsdiepraam in https://github.com/uutils/coreutils/pull/3180 |
| 199 |
* Refactor, document and test `ranges` module by @tertsdiepraam in https://github.com/uutils/coreutils/pull/3844 |
| 200 |
* Remove `show_error_custom_description` macros `show_usage_error` by @tertsdiepraam in https://github.com/uutils/coreutils/pull/3837 |
| 201 |
* Add backport for `Path::is_symlink()` by @jfinkels in https://github.com/uutils/coreutils/pull/3697 |
| 202 |
* Fix invalid enum variant in docstring by @cakebaker in https://github.com/uutils/coreutils/pull/3643 |
| 203 |
* Simplify invalid encoding handling by @tertsdiepraam in https://github.com/uutils/coreutils/pull/3832 |
| 204 |
* canonicalize: Loop looking in windows by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3714 |
| 205 |
|
| 206 |
### General |
| 207 |
* Netbsd / OpenBSD build fix by @devnexen in https://github.com/uutils/coreutils/pull/3807 |
| 208 |
* Add more consistency in the `--help` output and declarations by @sylvestre in https://github.com/uutils/coreutils/pull/3774 |
| 209 |
* dependencies: make `winapi` dependency only for Windows by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/3846 |
| 210 |
* tests: fix Freebsd test failures by @jhscheer in https://github.com/uutils/coreutils/pull/3777 |
| 211 |
* tests: ignore failing tests for FreeBSD by @jhscheer in https://github.com/uutils/coreutils/pull/3806 |
| 212 |
* Replace lazy_static with once_cell by @Sciencentistguy in https://github.com/uutils/coreutils/pull/3704 |
| 213 |
* README: add badge for MSRV by @jhscheer in https://github.com/uutils/coreutils/pull/3799 |
| 214 |
* Remove use of `mem::uninitialized` by @5225225 in https://github.com/uutils/coreutils/pull/3808 |
| 215 |
* Remove deprecated `clap` functions by @cakebaker in https://github.com/uutils/coreutils/pull/3768, https://github.com/uutils/coreutils/pull/3850, https://github.com/uutils/coreutils/pull/3848, https://github.com/uutils/coreutils/pull/3804 & https://github.com/uutils/coreutils/pull/3771 |
| 216 |
|
| 217 |
## New Contributors |
| 218 |
@weijunji (https://github.com/uutils/coreutils/pull/3604), @str4d (https://github.com/uutils/coreutils/pull/3593), @patricksjackson (https://github.com/uutils/coreutils/pull/3600), @Ganneff (https://github.com/uutils/coreutils/pull/3613), @Garfield96 (https://github.com/uutils/coreutils/pull/3642), @philgebhardt (https://github.com/uutils/coreutils/pull/3647), @ElijahSink (https://github.com/uutils/coreutils/pull/3657), @niyaznigmatullin (https://github.com/uutils/coreutils/pull/3663), @eds-collabora (https://github.com/uutils/coreutils/pull/3656), @lendandgit (https://github.com/uutils/coreutils/pull/3602), @resistor (https://github.com/uutils/coreutils/pull/3708), @andrewbaptist (https://github.com/uutils/coreutils/pull/3720), @Stonks3141 (https://github.com/uutils/coreutils/pull/3718), @pimzero (https://github.com/uutils/coreutils/pull/3746), @Fuchczyk (https://github.com/uutils/coreutils/pull/3809), @5225225 (https://github.com/uutils/coreutils/pull/3808), @jarkonik (https://github.com/uutils/coreutils/pull/3784) |
| 219 |
|
| 220 |
**Full Changelog**: https://github.com/uutils/coreutils/compare/0.0.14...0.0.15 |