Debian Codegraph @

docs/src/release-notes/0.0.17.md

raw
1 # 0.0.17
2
3 **Version:** 0.0.17
4 **Published:** 2023-01-21T11:41:45Z
5
6 ## Release Notes
7
8 ## Highlights
9
10 * The minimum supported Rust version is now 1.60.
11 * Clap has been updated to version 4, bringing some changes in the formatting of help strings.
12 * `cp` has been gotten many small improvements that improve compatibility.
13 * `dd` has been simplified and has better compatibility.
14 * `env` now reraises signals from the child process.
15 * `ls -l` now shows more information on Windows.
16 * `uname` is now available for all supported platforms, instead of Unix-like platforms only.
17 * `cp` and `mv` can display a progress bar. This is an extension over GNU coreutils and inspired by [`advcpmv`](https://github.com/jarun/advcpmv).
18 * There have been refactors, fixes and performance improvements in many utils, see below for details.
19
20 ## GNU test suite compatibility
21
22 Many utils have gotten minor changes to improve GNU compatibility. Below is a summary of the progress. See https://github.com/uutils/coreutils-tracking/ for more details
23
24 | result | 0.0.16 | 0.0.17 | change |
25 |--------|-------:|-------:|-------:|
26 | pass | 322 | 338 | +16 |
27 | skip | 49 | 48 | -1 |
28 | fail | 217 | 204 | -13 |
29 | error | 5 | 3 | -2 |
30
31 ## Changes
32
33 The PR's listed below are a selection of all the contributions in this release.
34
35 ### General
36
37 * Bump MSRV to 1.60 by @tertsdiepraam in https://github.com/uutils/coreutils/pull/3994
38 * Clap 4 by @tertsdiepraam in https://github.com/uutils/coreutils/pull/3991
39 * Migrate from `winapi` to `windows-sys` by @niyaznigmatullin in https://github.com/uutils/coreutils/pull/4065
40 * Run the toybox testsuite by @sylvestre in https://github.com/uutils/coreutils/pull/4222
41 * Use normal use declarations to import macros by @miles170 in https://github.com/uutils/coreutils/pull/4151
42 * Add installation page to docs with package managers by @tertsdiepraam in https://github.com/uutils/coreutils/pull/4048
43 * Test utilities
44 * Add `UChild`, an abstraction for `std::process::Child` by @Joining7943 in https://github.com/uutils/coreutils/pull/4136
45 * Add possibility to set timeout for UCommand and UChild. Add `rstest` with timeout macro to dev dependencies by @Joining7943 in https://github.com/uutils/coreutils/pull/4231
46 * Put `#[track_caller]` on assertion functions in test utils by @tertsdiepraam in https://github.com/uutils/coreutils/pull/4252
47 * `uucore`
48 * Add automatic conversion for `nix::Errno` by @orhun in https://github.com/uutils/coreutils/pull/4060
49 * Add `prompt_yes` macro by @tertsdiepraam in https://github.com/uutils/coreutils/pull/4148
50 * Add `sprintf()` function by @jfinkels in https://github.com/uutils/coreutils/pull/4185
51 * Add options to parse_size::Parser by @trasua in https://github.com/uutils/coreutils/pull/4224
52
53 ### `chown`
54 * Fails when `XXXX.` or `XXXX:` is provided (when XXXX is numeric value) by @sylvestre in https://github.com/uutils/coreutils/pull/4081
55
56 ### `cp`
57 * Move `copy_directory()` to its own module by @jfinkels in https://github.com/uutils/coreutils/pull/3901
58 * Correctly copy ancestor dirs in `--parents` mode by @jfinkels in https://github.com/uutils/coreutils/pull/4071
59 * `cp -i --update source existing` should not do anything and exit 0 by @sylvestre in https://github.com/uutils/coreutils/pull/4078
60 * Implement `--copy-contents` option for fifos by @jfinkels in https://github.com/uutils/coreutils/pull/3978
61 * Remove interactive mode message on 'no' by @sssemil in https://github.com/uutils/coreutils/pull/4069
62 * Use sparse copy on `--sparse=always` by @jfinkels in https://github.com/uutils/coreutils/pull/4030
63 * Add progress bar by @tertsdiepraam in https://github.com/uutils/coreutils/pull/3903 and improved by @djedi23 in https://github.com/uutils/coreutils/pull/4179 and @ctsk in https://github.com/uutils/coreutils/pull/4221
64 * Restrict copy through dangling symlink with `-f` by @jfinkels in https://github.com/uutils/coreutils/pull/4074
65 * Force copying file to itself with `--backup` by @jfinkels in https://github.com/uutils/coreutils/pull/3966
66 * Make `--preserve` use the defaults when empty by @sssemil in https://github.com/uutils/coreutils/pull/4123
67 * Fix `cp --force --backup f f` fails on macOS by @miles170 in https://github.com/uutils/coreutils/pull/4166
68 * Preserve hard links when target already exists by @jfinkels in https://github.com/uutils/coreutils/pull/4208
69 * Fix `--verbose --parents` output for both files and directories by @jfinkels in https://github.com/uutils/coreutils/pull/4184
70 * Force link between two files that exist by @jfinkels in https://github.com/uutils/coreutils/pull/4213
71 * Remove empty line from version output by @cakebaker in https://github.com/uutils/coreutils/pull/4283
72 * Require preserve only certain attributes by @sssemil in https://github.com/uutils/coreutils/pull/4099
73 * Restrict permissions when copying FIFO by @jfinkels in https://github.com/uutils/coreutils/pull/4211
74
75 ### `csplit`
76 * Rename var to simplify format strings by @cakebaker in https://github.com/uutils/coreutils/pull/4266
77
78 ### `cut`
79 * Add whitespace option for separating fields by @TechHara in https://github.com/uutils/coreutils/pull/4232
80
81 ### `date`
82 * Catch panic from invalid format string by @jaggededgedjustice in https://github.com/uutils/coreutils/pull/4240
83
84 ### `dd`
85 * Allow B as a suffix for count, seek, and skip by @jfinkels in https://github.com/uutils/coreutils/pull/4137
86 * Create Dest enum and simpler Output struct by @jfinkels in https://github.com/uutils/coreutils/pull/4134
87 * Don't allocate buffer if count=0 by @jfinkels in https://github.com/uutils/coreutils/pull/4130
88 * Correctly set file size when conv=sparse by @jfinkels in https://github.com/uutils/coreutils/pull/4191
89 * Fix rendering of SI and IEC byte counts by @jfinkels in https://github.com/uutils/coreutils/pull/3653
90 * Fix progress line if 1 byte written by @jfinkels in https://github.com/uutils/coreutils/pull/4194
91
92 ### `env`
93 * Reraise signal from child process by @tertsdiepraam in https://github.com/uutils/coreutils/pull/4011
94
95 ### `expr`
96 * Multiple fixes and tests added by @rivy in https://github.com/uutils/coreutils/pull/4248
97
98 ### `factor`
99 * Trim the input to fix some busybox results by @sylvestre in https://github.com/uutils/coreutils/pull/4215
100
101 ### `hashsum`
102 * Warn on file not found rather than fail by @dmatos2012 in https://github.com/uutils/coreutils/pull/4064
103 * Enable testing `--no-names` by @tertsdiepraam and @huijeong-kim in https://github.com/uutils/coreutils/pull/4088
104
105 ### `install`
106 * No longer fails when target directory does not exist by @bruecke in https://github.com/uutils/coreutils/pull/3950
107
108 ### `ls`
109 * Show more info in long format on Windows by @tertsdiepraam in https://github.com/uutils/coreutils/pull/4014
110 * Use `libc::{major, minor}` to calculate device number by @SteveLauC in https://github.com/uutils/coreutils/pull/4120
111
112 ### `mktemp`
113 * Allow default missing value by @dmatos2012 in https://github.com/uutils/coreutils/pull/4091
114
115 ### `mv`
116 * `mv -i --update source existing` should not do anything and exit 0 by @sylvestre in https://github.com/uutils/coreutils/pull/4078
117 * Add progress bar by @ctsk in https://github.com/uutils/coreutils/pull/4220
118
119 ### `numfmt`
120 * Handle negative zero values by @cakebaker in https://github.com/uutils/coreutils/pull/4076
121 * Allow hyphen values for `--field` option by @cakebaker in https://github.com/uutils/coreutils/pull/4090
122 * Round values if precision is 0 by @cakebaker in https://github.com/uutils/coreutils/pull/4089
123 * Allow `-` in field list by @cakebaker in https://github.com/uutils/coreutils/pull/4094
124 * Allow ` ` as field separator by @cakebaker in https://github.com/uutils/coreutils/pull/4096
125 * Add test for `--field -` (all fields) by @cakebaker in https://github.com/uutils/coreutils/pull/4093
126
127 ### `pr`
128 * Simplify format strings by @cakebaker in https://github.com/uutils/coreutils/pull/4264
129 * Add missing `\` before line breaks by @cakebaker in https://github.com/uutils/coreutils/pull/4273
130
131 ### `printenv`
132 * Weird env variable names should trigger an error. by @sylvestre in https://github.com/uutils/coreutils/pull/4113
133
134 ### `pwd`
135 * Support the env variable `POSIXLY_CORRECT` by @sylvestre in https://github.com/uutils/coreutils/pull/4085
136
137 ### `rm`
138 * GNU test `rm3` now passes by @palaster in https://github.com/uutils/coreutils/pull/4013
139
140 ### `seq`
141 * Simplify format strings by @cakebaker in https://github.com/uutils/coreutils/pull/4264
142
143 ### `sleep`
144 * Fix argument parsing and errors by @rivy in https://github.com/uutils/coreutils/pull/4268
145
146 ### `sort`
147 * Allow a sort mode to appear multiple times by @tertsdiepraam in https://github.com/uutils/coreutils/pull/4132
148
149 ### `split`
150 * Implement round-robin arg to `--number` by @jfinkels in https://github.com/uutils/coreutils/pull/3281
151 * Match GNU semantics for missing EOF by @andrewbaptist in https://github.com/uutils/coreutils/pull/4009
152 * Fix "backticks are unbalanced" warnings by @cakebaker in https://github.com/uutils/coreutils/pull/4181
153
154 ### `stat`
155 * Show more info in long format on Windows by @tertsdiepraam in https://github.com/uutils/coreutils/pull/4014
156 * Refactor by @tertsdiepraam in https://github.com/uutils/coreutils/pull/4150
157
158 ### `sum`
159 * Fix output of about string by @cakebaker in https://github.com/uutils/coreutils/pull/4274
160 * Fix output when using BSD sum algo (-r) by @cakebaker in https://github.com/uutils/coreutils/pull/4278
161
162 ### `tail`
163 * Refactor handling of warnings and early exits by @Joining7943 in https://github.com/uutils/coreutils/pull/4135
164
165 ### `touch`
166 * Add support for some relative times by @jfinkels in https://github.com/uutils/coreutils/pull/4193
167
168 ### `uname`
169 * build: `uname` is WinOS-compatible; move to 'Tier1' feature by @rivy in https://github.com/uutils/coreutils/pull/4245
170 * change/uname ~ update and revise by @rivy in https://github.com/uutils/coreutils/pull/4279
171
172 ## New Contributors
173 @huijeong-kim (https://github.com/uutils/coreutils/pull/4027), @orhun (https://github.com/uutils/coreutils/pull/4070), @SteveLauC (https://github.com/uutils/coreutils/pull/4120), @miles170 (https://github.com/uutils/coreutils/pull/4151), @djedi23 (https://github.com/uutils/coreutils/pull/4179), @bruecke (https://github.com/uutils/coreutils/pull/3950), @ctsk (https://github.com/uutils/coreutils/pull/4221), @trasua (https://github.com/uutils/coreutils/pull/4224), @TechHara (https://github.com/uutils/coreutils/pull/4232)
174
175 **Full Changelog**: https://github.com/uutils/coreutils/compare/0.0.16...0.0.17