| 1 |
# 0.0.22 |
| 2 |
|
| 3 |
**Version:** 0.0.22 |
| 4 |
**Published:** 2023-10-15T16:38:31Z |
| 5 |
|
| 6 |
## Release Notes |
| 7 |
|
| 8 |
📦 **Rust Coreutils 0.0.22 Release:** |
| 9 |
|
| 10 |
We've got +11 more GNU tests passing than in our last release. |
| 11 |
This release also adds support for NetBSD and requires a minimum Rust version of 1.70. 🛠️ |
| 12 |
We are also collaborating more and more with the [nushell](https://github.com/nushell/nushell/) team. Future versions of nushell will rely on the Rust Coreutils. |
| 13 |
24 developers contributed to this release (11 new contributors started with this release). |
| 14 |
|
| 15 |
Visit our website at [https://uutils.github.io](https://uutils.github.io). |
| 16 |
|
| 17 |
If you want to help us, please consider sponsoring on GitHub. This helps us use better tools like GitHub Actions. Sponsor us at [https://github.com/sponsors/uutils](https://github.com/sponsors/uutils). |
| 18 |
|
| 19 |
## GNU test suite compatibility |
| 20 |
|
| 21 |
Here's how version 0.0.22 compares to the previous release - running GNU/Coreutils 9.4: |
| 22 |
|
| 23 |
| result | 0.0.21 | 0.0.22 | change | |
| 24 |
|--------|-------:|-------:|------:| |
| 25 |
| pass | 372 | 383 | +11 | |
| 26 |
| skip | 49 | 48 | -1 | |
| 27 |
| fail | 181 | 171 | -10 | |
| 28 |
| error | 2 | 2 | 0 | |
| 29 |
|
| 30 |
 |
| 31 |
|
| 32 |
For more details, visit [https://github.com/uutils/coreutils-tracking/](https://github.com/uutils/coreutils-tracking/). |
| 33 |
|
| 34 |
## What's Changed |
| 35 |
* Bump MSRV to 1.70 by @cakebaker in https://github.com/uutils/coreutils/pull/5239 |
| 36 |
|
| 37 |
### chown |
| 38 |
* chown: move uid & gid detections into their own functions by @sylvestre in https://github.com/uutils/coreutils/pull/5359 |
| 39 |
|
| 40 |
### cp |
| 41 |
* cp: Error out if cp only contains source by @dmatos2012 in https://github.com/uutils/coreutils/pull/5253 |
| 42 |
* cp: fix the result of inodes are not the same when preserve links is flagged by @tommady in https://github.com/uutils/coreutils/pull/5064 |
| 43 |
* cp: fix cp -dR --no-preserve=links d c should have different inodes by @tommady in https://github.com/uutils/coreutils/pull/5320 |
| 44 |
* cp: fail when trying to copy to read only file on mac by @PGIII in https://github.com/uutils/coreutils/pull/5261 |
| 45 |
* cp: show no "skipped" msg with -vi/-vin by @cakebaker in https://github.com/uutils/coreutils/pull/5348 |
| 46 |
|
| 47 |
### cut |
| 48 |
* cut-huge-range.sh: make cut fails on usize::MAX by @sylvestre in https://github.com/uutils/coreutils/pull/4988 |
| 49 |
|
| 50 |
### dd |
| 51 |
* dd: fix GNU test 'dd/skip-seek-past-dev' by @bbara in https://github.com/uutils/coreutils/pull/4527 |
| 52 |
|
| 53 |
### df |
| 54 |
* df: Fix overflow error on WSL. Default to 0 when the values are non-sense. by @howard0su in https://github.com/uutils/coreutils/pull/5381 |
| 55 |
|
| 56 |
### echo |
| 57 |
* echo's doc doesn't show correctly by @sylvestre in https://github.com/uutils/coreutils/pull/5260 |
| 58 |
* echo: fix wrapping behavior of octal sequences by @tertsdiepraam in https://github.com/uutils/coreutils/pull/5218 |
| 59 |
* echo: don't output "\n" if "\c" is encountered by @cakebaker in https://github.com/uutils/coreutils/pull/5350 |
| 60 |
|
| 61 |
### expr |
| 62 |
* expr: short-circuit evaluation for `|` by @Luv-Ray in https://github.com/uutils/coreutils/pull/5365 |
| 63 |
* expr: add some empty lines by @cakebaker in https://github.com/uutils/coreutils/pull/5376 |
| 64 |
* expr: short-circuit evaluation for `&` by @Luv-Ray in https://github.com/uutils/coreutils/pull/5402 |
| 65 |
* expr: test some invalid syntaxes by @cakebaker in https://github.com/uutils/coreutils/pull/5405 |
| 66 |
* expr: interpret numbers != 0 as true for | and & by @cakebaker in https://github.com/uutils/coreutils/pull/5324 |
| 67 |
|
| 68 |
### fmt |
| 69 |
* fmt: use clap's value parser for goal & width by @cakebaker in https://github.com/uutils/coreutils/pull/5333 |
| 70 |
|
| 71 |
### head |
| 72 |
* head: remove a clippy::cognitive_complexity by moving some content in a function by @sylvestre in https://github.com/uutils/coreutils/pull/5366 |
| 73 |
* head: add some empty lines by @cakebaker in https://github.com/uutils/coreutils/pull/5373 |
| 74 |
|
| 75 |
### ls |
| 76 |
* ls.rs: changed variable name dfn to display_file_content responding to #5282 by @rojin254 in https://github.com/uutils/coreutils/pull/5283 |
| 77 |
* Support ls --dired by @sylvestre in https://github.com/uutils/coreutils/pull/5280 |
| 78 |
* ls -R1: add a test to replicate GNU's recursive.sh by @sylvestre in https://github.com/uutils/coreutils/pull/5342 |
| 79 |
* ls --dired - some minor cleanup by @sylvestre in https://github.com/uutils/coreutils/pull/5299 |
| 80 |
* ls: fix test which fails if /tmp uses tmpfs by @cakebaker in https://github.com/uutils/coreutils/pull/5301 |
| 81 |
* ls --dired: replace the previous "total: xx" padding method by @sylvestre in https://github.com/uutils/coreutils/pull/5305 |
| 82 |
* ls: move to `uutils-term-grid` by @miles170 in https://github.com/uutils/coreutils/pull/5391 |
| 83 |
* ls: use OnceCell from std instead of once_cell by @cakebaker in https://github.com/uutils/coreutils/pull/5268 |
| 84 |
* ls: Document a bit tests/ls/stat-dtype.sh by @sylvestre in https://github.com/uutils/coreutils/pull/5397 |
| 85 |
* ls -l: show an error when symlink not readable by @sylvestre in https://github.com/uutils/coreutils/pull/5278 |
| 86 |
* ls: fix panic when file removed too quickly by @sanpii in https://github.com/uutils/coreutils/pull/5372 |
| 87 |
|
| 88 |
### mkdir |
| 89 |
* mkdir: make `mkdir` public and document it by @KAAtheWiseGit in https://github.com/uutils/coreutils/pull/5329 |
| 90 |
|
| 91 |
### mv |
| 92 |
* mv: expose main functionality for nushell by @PThorpe92 in https://github.com/uutils/coreutils/pull/5335 |
| 93 |
* ls: fix panic when file removed too quickly by @sanpii in https://github.com/uutils/coreutils/pull/5372 |
| 94 |
* mv: show no "skipped" msg with -vi/-vin by @cakebaker in https://github.com/uutils/coreutils/pull/5347 |
| 95 |
* mv: fix typo in test function name by @cakebaker in https://github.com/uutils/coreutils/pull/5351 |
| 96 |
|
| 97 |
### nl |
| 98 |
* nl: make line number and --join-blank-lines work over multiple files by @cakebaker in https://github.com/uutils/coreutils/pull/5285 |
| 99 |
* nl: fix output order if stdin and files are mixed by @cakebaker in https://github.com/uutils/coreutils/pull/5306 |
| 100 |
* nl: implement -d/--section-delimiter by @cakebaker in https://github.com/uutils/coreutils/pull/5158 |
| 101 |
* nl: defer showing "line number overflow" error by @cakebaker in https://github.com/uutils/coreutils/pull/5340 |
| 102 |
|
| 103 |
### relpath |
| 104 |
* relpath: remove by @boxdot in https://github.com/uutils/coreutils/pull/5355 |
| 105 |
* relpath: show error if no argument provided by @cakebaker in https://github.com/uutils/coreutils/pull/5302 |
| 106 |
|
| 107 |
### rm |
| 108 |
* rm: make the utility public by @KAAtheWiseGit in https://github.com/uutils/coreutils/pull/5304 |
| 109 |
|
| 110 |
### seq |
| 111 |
* seq: parse "infinity" and "-infinity" by @shinhs0506 in https://github.com/uutils/coreutils/pull/5124 |
| 112 |
|
| 113 |
### split |
| 114 |
* split: implement remaining -n variants and pass GNU tests/split/fail.sh by @zhitkoff in https://github.com/uutils/coreutils/pull/5252 |
| 115 |
* split: catch broken pipe error for round robin strategy by @granquet in https://github.com/uutils/coreutils/pull/5338 |
| 116 |
|
| 117 |
### touch |
| 118 |
* touch: make main public by @KAAtheWiseGit in https://github.com/uutils/coreutils/pull/5318 |
| 119 |
|
| 120 |
### tr |
| 121 |
* tr: work with Windows newline (CRLF) by @muhajirdev in https://github.com/uutils/coreutils/pull/5344 |
| 122 |
* tr: rename to_u*_str to map_buffer in set1 and set2 by @cakebaker in https://github.com/uutils/coreutils/pull/5325 |
| 123 |
* tr: make the utility public by @KAAtheWiseGit in https://github.com/uutils/coreutils/pull/5322 |
| 124 |
* tr: support character class [:blank:] by @takanki in https://github.com/uutils/coreutils/pull/5317 |
| 125 |
* tr: Add test for character class [:blank:] by @cakebaker in https://github.com/uutils/coreutils/pull/5328 |
| 126 |
|
| 127 |
### wc |
| 128 |
* wc: add --count-mbs option by @mbuf in https://github.com/uutils/coreutils/pull/5336 |
| 129 |
|
| 130 |
### whoami |
| 131 |
* whoami: add support for -g/-m options by @muhajirdev in https://github.com/uutils/coreutils/pull/5352 |
| 132 |
* whoami: make main public by @KAAtheWiseGit in https://github.com/uutils/coreutils/pull/5321 |
| 133 |
|
| 134 |
### yes |
| 135 |
* yes: make main public by @KAAtheWiseGit in https://github.com/uutils/coreutils/pull/5349 |
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
### Build system & CI |
| 147 |
* ci: code-quality workflow doesn't fail on clippy errors by @miles170 in https://github.com/uutils/coreutils/pull/5399 |
| 148 |
* build-gnu.sh: fix for /usr/bin/timeout on MacOS by @zhitkoff in https://github.com/uutils/coreutils/pull/5194 |
| 149 |
* build-gnu.sh: fix formatting issues by @cakebaker in https://github.com/uutils/coreutils/pull/5248 |
| 150 |
* run-gnu-test.sh: show if we can't find the file by @sylvestre in https://github.com/uutils/coreutils/pull/5318 |
| 151 |
* run-gnu-test.sh: accept "run-root" as first param by @cakebaker in https://github.com/uutils/coreutils/pull/5323 |
| 152 |
* ci: remove committing from CheckScripts.yml by @cakebaker in https://github.com/uutils/coreutils/pull/5291 |
| 153 |
* ci: replace deprecated "command" with "fix" by @cakebaker in https://github.com/uutils/coreutils/pull/5271 |
| 154 |
* Binary sizes: handle when 0 (relpath removal) by @sylvestre in https://github.com/uutils/coreutils/pull/5369 |
| 155 |
* build-gnu.sh: fix formatting by @cakebaker in https://github.com/uutils/coreutils/pull/5290 |
| 156 |
* 0.0.21 => 0.0.22 by @sylvestre in https://github.com/uutils/coreutils/pull/5409 |
| 157 |
* Add NetBSD support to uucore. by @0323pin in https://github.com/uutils/coreutils/pull/5289 |
| 158 |
|
| 159 |
### Documentation |
| 160 |
* DEVELOPMENT.md: improve doc on how to run some tests by @sylvestre in https://github.com/uutils/coreutils/pull/5393 |
| 161 |
* update of the release doc by @sylvestre in https://github.com/uutils/coreutils/pull/5410 |
| 162 |
* Introducing DEVELOPMENT.md by @zhitkoff in https://github.com/uutils/coreutils/pull/5209 |
| 163 |
* doc: recommend the rust-gdb helper by @sylvestre in https://github.com/uutils/coreutils/pull/5404 |
| 164 |
* Document how to run the pure Rust tests by @sylvestre in https://github.com/uutils/coreutils/pull/5279 |
| 165 |
|
| 166 |
### Security |
| 167 |
* fuzz: move the common duplicated code into a function by @sylvestre in https://github.com/uutils/coreutils/pull/5332 |
| 168 |
* fuzzing: remove some duplicated code + clippy fixes by @sylvestre in https://github.com/uutils/coreutils/pull/5337 |
| 169 |
* Fuzz the expr command by @sylvestre in https://github.com/uutils/coreutils/pull/4642 |
| 170 |
* fuzz: store the corpus by @tommady in https://github.com/uutils/coreutils/pull/5363 |
| 171 |
* github action: move the fuzzing action into it own file/task by @sylvestre in https://github.com/uutils/coreutils/pull/5380 |
| 172 |
|
| 173 |
### Various improvements |
| 174 |
* uucore: turn version_cmp into a feature by @cakebaker in https://github.com/uutils/coreutils/pull/5254 |
| 175 |
* clippy: suppress cognitive_complexity lint in some tests by @cakebaker in https://github.com/uutils/coreutils/pull/5401 |
| 176 |
* uucore: remove commented out import by @cakebaker in https://github.com/uutils/coreutils/pull/5384 |
| 177 |
* uucore: remove commented out enum FChar by @cakebaker in https://github.com/uutils/coreutils/pull/5385 |
| 178 |
* Make clippy::cognitive_complexity as an error by @sylvestre in https://github.com/uutils/coreutils/pull/5379 |
| 179 |
* clippy: suppress cognitive_complexity lint for two functions by @cakebaker in https://github.com/uutils/coreutils/pull/5374 |
| 180 |
* truncate clippy fix. by @devnexen in https://github.com/uutils/coreutils/pull/5259 |
| 181 |
* uu clippy fix proposal. by @devnexen in https://github.com/uutils/coreutils/pull/5264 |
| 182 |
* clippy: fix warnings in tests by @cakebaker in https://github.com/uutils/coreutils/pull/5362 |
| 183 |
* uucore: turn quoting_style into a feature by @cakebaker in https://github.com/uutils/coreutils/pull/5265 |
| 184 |
* fs: split get_file_display into its function & add test by @sylvestre in https://github.com/uutils/coreutils/pull/5394 |
| 185 |
* Replace list of digit by is_digit by @sylvestre in https://github.com/uutils/coreutils/pull/5336 |
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
### Dependencies |
| 190 |
* Bump blake3 & add constant_time_eq to skip list in deny.toml by @cakebaker in https://github.com/uutils/coreutils/pull/5249 |
| 191 |
* chore(deps): update rust crate clap_complete to 4.4 by @renovate in https://github.com/uutils/coreutils/pull/5201 |
| 192 |
* chore(deps): update actions/checkout action to v4 by @renovate in https://github.com/uutils/coreutils/pull/5241 |
| 193 |
* chore(deps): update rust crate clap to 4.4 by @renovate in https://github.com/uutils/coreutils/pull/5200 |
| 194 |
* chore(deps): update rust crate half to 2.3 by @renovate in https://github.com/uutils/coreutils/pull/5005 |
| 195 |
* chore(deps): update rust crate regex to 1.10.1 by @renovate in https://github.com/uutils/coreutils/pull/5387 |
| 196 |
* chore(deps): update rust crate memmap2 to 0.9 by @renovate in https://github.com/uutils/coreutils/pull/5352 |
| 197 |
* chore(deps): update rust crate byteorder to 1.5.0 by @renovate in https://github.com/uutils/coreutils/pull/5361 |
| 198 |
* chore(deps): update rust crate md-5 to 0.10.6 by @renovate in https://github.com/uutils/coreutils/pull/5303 |
| 199 |
* chore(deps): update rust crate memmap2 to 0.8 by @renovate in https://github.com/uutils/coreutils/pull/5319 |
| 200 |
* fix(deps): update rust crate wild to 2.2 by @renovate in https://github.com/uutils/coreutils/pull/5317 |
| 201 |
* chore(deps): update rust crate exacl to 0.11.0 by @renovate in https://github.com/uutils/coreutils/pull/5322 |
| 202 |
* chore(deps): update rust crate sha2 to 0.10.8 by @renovate in https://github.com/uutils/coreutils/pull/5325 |
| 203 |
* chore(deps): update rust crate regex to 1.9.6 by @renovate in https://github.com/uutils/coreutils/pull/5339 |
| 204 |
* chore(deps): update rust crate num-traits to 0.2.17 by @renovate in https://github.com/uutils/coreutils/pull/5375 |
| 205 |
* Bump errno from 0.3.1 to 0.3.5 by @cakebaker in https://github.com/uutils/coreutils/pull/5382 |
| 206 |
* chore(deps): update rust crate bytecount to 0.6.4 by @renovate in https://github.com/uutils/coreutils/pull/5346 |
| 207 |
* chore(deps): update rust crate libc to 0.2.149 by @renovate in https://github.com/uutils/coreutils/pull/5370 |
| 208 |
* chore(deps): update mfinelli/setup-shfmt action to v3 by @renovate in https://github.com/uutils/coreutils/pull/5284 |
| 209 |
* chore(deps): update rust crate unicode-width to 0.1.11 by @renovate in https://github.com/uutils/coreutils/pull/5286 |
| 210 |
* chore(deps): update davidanson/markdownlint-cli2-action action to v13 by @renovate in https://github.com/uutils/coreutils/pull/5287 |
| 211 |
* chore(deps): update rust crate rayon to 1.8 by @renovate in https://github.com/uutils/coreutils/pull/5295 |
| 212 |
* chore(deps): update rust crate blake3 to 1.5.0 by @renovate in https://github.com/uutils/coreutils/pull/5296 |
| 213 |
* chore(deps): update rust crate winapi-util to 0.1.6 by @renovate in https://github.com/uutils/coreutils/pull/5292 |
| 214 |
* chore(deps): update rust crate redox_syscall to 0.4 by @renovate in https://github.com/uutils/coreutils/pull/5262 |
| 215 |
* chore(deps): update rust crate blake2b_simd to 1.0.2 by @renovate in https://github.com/uutils/coreutils/pull/5266 |
| 216 |
* chore(deps): update rust crate libc to 0.2.148 by @renovate in https://github.com/uutils/coreutils/pull/5272 |
| 217 |
* chore(deps): update codecov/codecov-action action to v4 by @renovate in https://github.com/uutils/coreutils/pull/5273 |
| 218 |
* Revert "chore(deps): update codecov/codecov-action action to v4" by @cakebaker in https://github.com/uutils/coreutils/pull/5277 |
| 219 |
* chore(deps): update rust crate chrono to ^0.4.31 by @renovate in https://github.com/uutils/coreutils/pull/5251 |
| 220 |
* chore(deps): update rust crate terminal_size to 0.3.0 by @renovate in https://github.com/uutils/coreutils/pull/5275 |
| 221 |
* fix(deps): update rust crate dns-lookup to 2.0.3 by @renovate in https://github.com/uutils/coreutils/pull/5281 |
| 222 |
* chore(deps): update rust crate sha1 to 0.10.6 by @renovate in https://github.com/uutils/coreutils/pull/5298 |
| 223 |
* chore(deps): update rust crate walkdir to 2.4 by @renovate in https://github.com/uutils/coreutils/pull/5250 |
| 224 |
* Bump bstr and regex by @cakebaker in https://github.com/uutils/coreutils/pull/5388 |
| 225 |
* deny.toml: add redox_syscall to skip list by @cakebaker in https://github.com/uutils/coreutils/pull/5263 |
| 226 |
* Bump nix & ctrlc, adapt stty to nix API changes by @cakebaker in https://github.com/uutils/coreutils/pull/5258 |
| 227 |
* deny.toml: remove constant_time_eq from skip list by @cakebaker in https://github.com/uutils/coreutils/pull/5267 |
| 228 |
* Bump chrono and fix deprecation warnings in touch by @cakebaker in https://github.com/uutils/coreutils/pull/5270 |
| 229 |
* deny.toml: add terminal_size to skip list by @cakebaker in https://github.com/uutils/coreutils/pull/5276 |
| 230 |
* Update parse_datetime to 0.5.0 by @u8sand in https://github.com/uutils/coreutils/pull/5313 |
| 231 |
* Use std::io::IsTerminal instead of is-terminal by @cakebaker in https://github.com/uutils/coreutils/pull/5240 |
| 232 |
* Remove is-terminal from Cargo.lock by @cakebaker in https://github.com/uutils/coreutils/pull/5247 |
| 233 |
|
| 234 |
## New Contributors |
| 235 |
* @rojin254 made their first contribution in https://github.com/uutils/coreutils/pull/5283 |
| 236 |
* @0323pin made their first contribution in https://github.com/uutils/coreutils/pull/5289 |
| 237 |
* @KAAtheWiseGit made their first contribution in https://github.com/uutils/coreutils/pull/5304 |
| 238 |
* @Leviticoh made their first contribution in https://github.com/uutils/coreutils/pull/4228 |
| 239 |
* @u8sand made their first contribution in https://github.com/uutils/coreutils/pull/5313 |
| 240 |
* @PGIII made their first contribution in https://github.com/uutils/coreutils/pull/5261 |
| 241 |
* @boxdot made their first contribution in https://github.com/uutils/coreutils/pull/5355 |
| 242 |
* @PThorpe92 made their first contribution in https://github.com/uutils/coreutils/pull/5335 |
| 243 |
* @sanpii made their first contribution in https://github.com/uutils/coreutils/pull/5372 |
| 244 |
* @Luv-Ray made their first contribution in https://github.com/uutils/coreutils/pull/5365 |
| 245 |
* @howard0su made their first contribution in https://github.com/uutils/coreutils/pull/5381 |
| 246 |
|
| 247 |
**Full Changelog**: https://github.com/uutils/coreutils/compare/0.0.21...0.0.22 |