| 1 |
# 0.0.13 |
| 2 |
|
| 3 |
**Version:** 0.0.13 |
| 4 |
**Published:** 2022-04-02T12:16:39Z |
| 5 |
|
| 6 |
## Release Notes |
| 7 |
|
| 8 |
This is a big release with 276 new PR's merged! |
| 9 |
|
| 10 |
The highlights of this release are: |
| 11 |
* Mininum supported Rust version is now 1.54. |
| 12 |
* Many improvements and fixes in many utils. In particular, `cp`, `dd`, `df`, `split` and `tr` have gotten very large improvements and are much more compatible with GNU. |
| 13 |
* [Online user documentation](https://uutils.github.io/coreutils-docs/user/) featuring installation instructions, descriptions, flags, options and examples. |
| 14 |
* We now use `clap` 3, which gives the `--help` output a new look and enables abbreviations of long arguments. For example: |
| 15 |
```sh |
| 16 |
ls --color # already worked pre 0.0.13 |
| 17 |
ls --col # any unambiguous shorthand now also works |
| 18 |
``` |
| 19 |
|
| 20 |
## Changes |
| 21 |
The PR's listed below change the user-facing behaviour of the utils. It is just a small selection of all the contributions in this release. |
| 22 |
|
| 23 |
General |
| 24 |
* Clap 3 by @tertsdiepraam in https://github.com/uutils/coreutils/pull/2863 |
| 25 |
* Infer unambiguous long arguments in clap by @tertsdiepraam in https://github.com/uutils/coreutils/pull/2936 |
| 26 |
* User documentation by @tertsdiepraam in https://github.com/uutils/coreutils/pull/2897, https://github.com/uutils/coreutils/pull/3152, https://github.com/uutils/coreutils/pull/3134 |
| 27 |
* Include license text in all published crates by @davide125 in https://github.com/uutils/coreutils/pull/3131 |
| 28 |
|
| 29 |
`uucore` |
| 30 |
* Allow backup suffix with hyphen value by @tertsdiepraam in https://github.com/uutils/coreutils/pull/2997 |
| 31 |
* Error on negative interval in `parse_time::from_str()` by @jfinkels in https://github.com/uutils/coreutils/pull/3292 |
| 32 |
* No uppercase suffixes in `parse_time` by @jfinkels in https://github.com/uutils/coreutils/pull/3315 |
| 33 |
* Don't panic when canonicalizing a nonexistent path by @water-ghosts in https://github.com/uutils/coreutils/pull/3103 |
| 34 |
* Fix `parse_size` to use u64 rather than usize for better 32-bit support by @omertuc in https://github.com/uutils/coreutils/pull/3084 |
| 35 |
|
| 36 |
`cp` |
| 37 |
* Override args instead of having them conflict by @tertsdiepraam in https://github.com/uutils/coreutils/pull/2998 |
| 38 |
* Avoid following a destination symlink with `-P` by @refi64 in https://github.com/uutils/coreutils/pull/3101 |
| 39 |
* Create backup before hardlink by @water-ghosts in https://github.com/uutils/coreutils/pull/3033 |
| 40 |
* Fail when copying a directory to a file by @water-ghosts in https://github.com/uutils/coreutils/pull/3044 |
| 41 |
* Only allow directory for `-t` by @shoriminimoe in https://github.com/uutils/coreutils/pull/3027 |
| 42 |
* Support copying FIFOs with `-r` by @water-ghosts in https://github.com/uutils/coreutils/pull/3032 |
| 43 |
* Don't panic when calling `cp -a` with a nonexistent file by @water-ghosts in https://github.com/uutils/coreutils/pull/2960 |
| 44 |
* Avoid infinite recursion when source and destinations are same while using `cp -R` by @Narasimha1997 in https://github.com/uutils/coreutils/pull/3018 |
| 45 |
|
| 46 |
`dd` |
| 47 |
* block/unblock on ebcdic/ascii conversions by @jfinkels in https://github.com/uutils/coreutils/pull/2909 |
| 48 |
* Correct behavior when status=noxfer by @jfinkels in https://github.com/uutils/coreutils/pull/2915 |
| 49 |
* Support `seek=N` when destination is stdout by @jfinkels in https://github.com/uutils/coreutils/pull/2911 |
| 50 |
* Add support for 'b' and 'x' multipliers in numeric arguments by @jfinkels in https://github.com/uutils/coreutils/pull/3028 |
| 51 |
* Allow multiple instances of arguments by @iovanom in https://github.com/uutils/coreutils/pull/3021 |
| 52 |
* Correct order and phrasing of truncated record by @jfinkels in https://github.com/uutils/coreutils/pull/3154 |
| 53 |
* Correctly account for partial record written by @jfinkels in https://github.com/uutils/coreutils/pull/3129 |
| 54 |
* Create ConversionMode to simplify conversion, blocking, and unblocking by @jfinkels in https://github.com/uutils/coreutils/pull/3293 |
| 55 |
* Don't error when outfile is /dev/null by @jfinkels in https://github.com/uutils/coreutils/pull/3148 |
| 56 |
* Implement iseek + oseek flags by @chordtoll in https://github.com/uutils/coreutils/pull/3256 |
| 57 |
* Make `status=progress` rewrite once/sec by @ndd7xv in https://github.com/uutils/coreutils/pull/3078 |
| 58 |
* Pad partial record with spaces in some cases by @jfinkels in https://github.com/uutils/coreutils/pull/3156 |
| 59 |
* Remove spurious zero multiplier warning by @jfinkels in https://github.com/uutils/coreutils/pull/3128 |
| 60 |
* Show warning if skipping past end of input by @jfinkels in https://github.com/uutils/coreutils/pull/3066 |
| 61 |
* Show warning when using 0x size multiplier by @jfinkels in https://github.com/uutils/coreutils/pull/3085 |
| 62 |
* Truncate to specified seek length by @jfinkels in https://github.com/uutils/coreutils/pull/3076 |
| 63 |
|
| 64 |
`df` |
| 65 |
* Adds support for mount path prefix matching and input path by @crazystylus in https://github.com/uutils/coreutils/pull/3161 |
| 66 |
* `--output w/o "="` doesn't expect further args by @cakebaker in https://github.com/uutils/coreutils/pull/3327 |
| 67 |
* Add support for `--total` option by @jfinkels in https://github.com/uutils/coreutils/pull/3197 |
| 68 |
* Always produce the same order in output table by @jfinkels in https://github.com/uutils/coreutils/pull/3126 |
| 69 |
* Always round up usage percentage (#3208) by @cakebaker in https://github.com/uutils/coreutils/pull/3230 |
| 70 |
* Correctly scale bytes by block size by @jfinkels in https://github.com/uutils/coreutils/pull/3182 |
| 71 |
* Fix block size header for multiples of 1024 by @jfinkels in https://github.com/uutils/coreutils/pull/3191 |
| 72 |
* Fix calculation of `Use%` column by @cakebaker in https://github.com/uutils/coreutils/pull/3309 |
| 73 |
* Fix calculation of Use% in "total" row by @cakebaker in https://github.com/uutils/coreutils/pull/3347 |
| 74 |
* Fix panic when using `-x` argument (#3257) by @cakebaker in https://github.com/uutils/coreutils/pull/3258 |
| 75 |
* Implement the `--output` command-line argument by @jfinkels in https://github.com/uutils/coreutils/pull/3176, https://github.com/uutils/coreutils/pull/3322, https://github.com/uutils/coreutils/pull/3323 |
| 76 |
* Implement the File column by @jfinkels in https://github.com/uutils/coreutils/pull/3294 |
| 77 |
* Omit reserved filesystem blocks in "Available" by @cakebaker in https://github.com/uutils/coreutils/pull/3270 |
| 78 |
* Remove unused "--direct" option by @cakebaker in https://github.com/uutils/coreutils/pull/3263 |
| 79 |
* Some option changes by @xxyzz in https://github.com/uutils/coreutils/pull/3127 |
| 80 |
|
| 81 |
`echo` |
| 82 |
* Allow echo with escapes to work with `\0` by @Dr-Emann in https://github.com/uutils/coreutils/pull/2977 |
| 83 |
|
| 84 |
`hashsum` |
| 85 |
* Added b2sum and b3sum utilities by @palaster in https://github.com/uutils/coreutils/pull/3164 |
| 86 |
* Add BLAKE3 to Hashing Algorithms by @DestroyerXyz in https://github.com/uutils/coreutils/pull/3108 |
| 87 |
|
| 88 |
`head` |
| 89 |
* Add `---presume-input-pipe` parameter by @DevSabb in https://github.com/uutils/coreutils/pull/3345 |
| 90 |
* Don't add trailing newline to end of file that didn't originally have one by @jfinkels in https://github.com/uutils/coreutils/pull/2957 |
| 91 |
|
| 92 |
`install` |
| 93 |
* Better error messages when handling invalid arguments by @ndd7xv in https://github.com/uutils/coreutils/pull/3187 |
| 94 |
|
| 95 |
`join` |
| 96 |
* Print unsorted line in error message by @cohosh in https://github.com/uutils/coreutils/pull/2899 |
| 97 |
* Fix default check order behaviour by @cohosh in https://github.com/uutils/coreutils/pull/2908 |
| 98 |
* Add support for `-t '\0'` by @jtracey in https://github.com/uutils/coreutils/pull/2881 |
| 99 |
* "Support" field numbers larger than `usize::MAX` by @jtracey in https://github.com/uutils/coreutils/pull/2882 |
| 100 |
* Add support for non-unicode field separators by @jtracey in https://github.com/uutils/coreutils/pull/2902 |
| 101 |
* Improve performance by @jtracey in https://github.com/uutils/coreutils/pull/3092 |
| 102 |
|
| 103 |
`ln` |
| 104 |
* Make the tests/ln/hard-backup.sh test work by @sylvestre in https://github.com/uutils/coreutils/pull/3340 |
| 105 |
* Pass tests/ln/backup-1.sh & improvement in the error messages by @sylvestre in https://github.com/uutils/coreutils/pull/3346 |
| 106 |
|
| 107 |
`ls` |
| 108 |
* Add new optional arguments to `--classify` flag by @abhishekc-sharma in https://github.com/uutils/coreutils/pull/3041 |
| 109 |
* Add proper quotes on symlink with `--quoting-style=shell-escape` by @sylvestre in https://github.com/uutils/coreutils/pull/3317 |
| 110 |
* Fix display of bad file descriptor errors by @kimono-koans in https://github.com/uutils/coreutils/pull/2875 |
| 111 |
* Fix display of inodes and add allocation size feature by @kimono-koans in https://github.com/uutils/coreutils/pull/3052 |
| 112 |
* When `-aA` are provided, the order matters by @sylvestre in https://github.com/uutils/coreutils/pull/3285 |
| 113 |
|
| 114 |
`mkdir` |
| 115 |
* Add support of `mkdir -p foo/.` by @sylvestre in https://github.com/uutils/coreutils/pull/3311 |
| 116 |
* Recursive reporting of created directories in verbose mode by @353fc443 in https://github.com/uutils/coreutils/pull/3217 |
| 117 |
|
| 118 |
`nproc` |
| 119 |
* Add the full support of `OMP_THREAD_LIMIT` by @sylvestre in https://github.com/uutils/coreutils/pull/3286 |
| 120 |
* Improve the GNU compat by @sylvestre in https://github.com/uutils/coreutils/pull/3248 |
| 121 |
* Make tests/misc/nproc-override.sh pass by implementing `OMP_NUM_THREADS=X,Y,Z` by @sylvestre in https://github.com/uutils/coreutils/pull/3296 |
| 122 |
|
| 123 |
`paste` |
| 124 |
* Fixes and cleanup by @Dr-Emann in https://github.com/uutils/coreutils/pull/2982 |
| 125 |
|
| 126 |
`pinky` |
| 127 |
* Fix off-by-one in GECOS parsing by @jtracey in https://github.com/uutils/coreutils/pull/3155 |
| 128 |
|
| 129 |
`pr` |
| 130 |
* Move from getopts to clap and fix heuristic for `-n` by @tertsdiepraam in https://github.com/uutils/coreutils/pull/3185 |
| 131 |
|
| 132 |
`printf` |
| 133 |
* Update `%g` formatting to match GNU by @water-ghosts in https://github.com/uutils/coreutils/pull/3087 |
| 134 |
* Fix printf sci notation round up by @nickd0 in https://github.com/uutils/coreutils/pull/3116 |
| 135 |
* Support leading zeroes with `%0n` formatting by @water-ghosts in https://github.com/uutils/coreutils/pull/3070 |
| 136 |
* Use clap default help and version by @ndd7xv in https://github.com/uutils/coreutils/pull/3067 |
| 137 |
|
| 138 |
`realpath` |
| 139 |
* Error when resolved symlink is absolute and ENOENT by @hbina in https://github.com/uutils/coreutils/pull/3037 |
| 140 |
|
| 141 |
`seq` |
| 142 |
* Add `-f FORMAT` option by @jfinkels in https://github.com/uutils/coreutils/pull/2918 |
| 143 |
* Correct error message for zero increment by @jfinkels in https://github.com/uutils/coreutils/pull/2923 |
| 144 |
* Better argument parsing by @HeroicKatora in https://github.com/uutils/coreutils/pull/3081 |
| 145 |
|
| 146 |
`shuf` |
| 147 |
* accept multiple occurances of head-count argument by @DevSabb in https://github.com/uutils/coreutils/pull/3329 |
| 148 |
|
| 149 |
`sleep` |
| 150 |
* Give usage error on invalid time interval by @jfinkels in https://github.com/uutils/coreutils/pull/3284 |
| 151 |
|
| 152 |
`sort` |
| 153 |
* Add two missing spaces in help texts by @cakebaker in https://github.com/uutils/coreutils/pull/3287 |
| 154 |
|
| 155 |
`split` |
| 156 |
* Add support for `-e` argument by @jfinkels in https://github.com/uutils/coreutils/pull/3107 |
| 157 |
* Add support for `-x` option (hex suffixes) by @jfinkels in https://github.com/uutils/coreutils/pull/2981 |
| 158 |
* Add support for `-n l/NUM` option to split by @jfinkels in https://github.com/uutils/coreutils/pull/2980 |
| 159 |
* Avoid writing final empty chunk with `-C` by @jfinkels in https://github.com/uutils/coreutils/pull/3278 |
| 160 |
* Catch and handle broken pipe errors by @jfinkels in https://github.com/uutils/coreutils/pull/3275 |
| 161 |
* Correct error message on invalid arg. to `-a` by @jfinkels in https://github.com/uutils/coreutils/pull/3006 |
| 162 |
* Elide all chunks when input file is empty by @jfinkels in https://github.com/uutils/coreutils/pull/3274 |
| 163 |
* Error when `--additional-suffix contains` `/` by @jfinkels in https://github.com/uutils/coreutils/pull/3111 |
| 164 |
* Error when num. of chunks is greater than num. of possible filenames by @ndd7xv in https://github.com/uutils/coreutils/pull/3146 |
| 165 |
* Handle no final newline with `--line-bytes` by @jfinkels in https://github.com/uutils/coreutils/pull/3277 |
| 166 |
* Add `--line-bytes` option by @jfinkels in https://github.com/uutils/coreutils/pull/3204 |
| 167 |
* Add `-n` option by @jfinkels in https://github.com/uutils/coreutils/pull/2866 |
| 168 |
* Implement outputting kth chunk of file by @jfinkels in https://github.com/uutils/coreutils/pull/3207 |
| 169 |
* Add `---io-blksize` parameter by @DevSabb in https://github.com/uutils/coreutils/pull/3064 |
| 170 |
|
| 171 |
`stat` |
| 172 |
* Allow formatting of negative numbers by @snobee in https://github.com/uutils/coreutils/pull/3053 |
| 173 |
|
| 174 |
`tail` |
| 175 |
* Fix a bug in `tail [ -n | -c ] +NUM <file>` by @jfinkels in https://github.com/uutils/coreutils/pull/2904 |
| 176 |
* Don't error when following non-UTF-8 data by @jfinkels in https://github.com/uutils/coreutils/pull/2916 |
| 177 |
* Add `---presume-input-pipe` parameter by @DevSabb in https://github.com/uutils/coreutils/pull/3345 |
| 178 |
* Support zero-terminated lines in streams by @jfinkels in https://github.com/uutils/coreutils/pull/2898 |
| 179 |
|
| 180 |
`test` |
| 181 |
* `test`: fix wsl executable permission by @tertsdiepraam in https://github.com/uutils/coreutils/pull/2965 |
| 182 |
|
| 183 |
`timeout` |
| 184 |
* Avoid panicking for empty string by @353fc443 in https://github.com/uutils/coreutils/pull/3206 |
| 185 |
* Fix bug in `--preserve-status` mode by @jfinkels in https://github.com/uutils/coreutils/pull/3249 |
| 186 |
* Give usage error on invalid time interval by @jfinkels in https://github.com/uutils/coreutils/pull/3283 |
| 187 |
* Produce usage error on invalid signal by @jfinkels in https://github.com/uutils/coreutils/pull/3297 |
| 188 |
* Return `125` on invalid time interval args by @jfinkels in https://github.com/uutils/coreutils/pull/3314 |
| 189 |
* Support long form of `--kill-after` arg by @jfinkels in https://github.com/uutils/coreutils/pull/3313 |
| 190 |
|
| 191 |
`touch` |
| 192 |
* Better error messages when no args is provided by @hbina in https://github.com/uutils/coreutils/pull/3047 |
| 193 |
* Implement `-` by @dgunay in https://github.com/uutils/coreutils/pull/3158 |
| 194 |
* Show error on `-h` with nonexistent file by @jfinkels in https://github.com/uutils/coreutils/pull/3117 |
| 195 |
|
| 196 |
`tr` |
| 197 |
* Expanding expansion module (added support for character classes and many more patterns) by @hbina in https://github.com/uutils/coreutils/pull/2502 |
| 198 |
* Fix octal interpretation of repeat count string by @DevSabb in https://github.com/uutils/coreutils/pull/3178 |
| 199 |
|
| 200 |
`true` |
| 201 |
* Make true return false less frequently by @HeroicKatora in https://github.com/uutils/coreutils/pull/3014 |
| 202 |
|
| 203 |
`truncate` |
| 204 |
* Create non-existent file by default by @jfinkels in https://github.com/uutils/coreutils/pull/2912 |
| 205 |
* Add a division by zero error by @jfinkels in https://github.com/uutils/coreutils/pull/2934 |
| 206 |
* Prevent underflow when reducing size by @jfinkels in https://github.com/uutils/coreutils/pull/2945 |
| 207 |
* Better error msg when dir does not exist by @jfinkels in https://github.com/uutils/coreutils/pull/2943 |
| 208 |
* Change cli error return code by @shoriminimoe in https://github.com/uutils/coreutils/pull/3012 |
| 209 |
* Error when trying to truncate a fifo by @jfinkels in https://github.com/uutils/coreutils/pull/2944 |
| 210 |
|
| 211 |
`wc` |
| 212 |
* Fix counting files from pseudo-filesystem by @tertsdiepraam in https://github.com/uutils/coreutils/pull/2935 |
| 213 |
* Compute number widths using total file sizes by @ackerleytng in https://github.com/uutils/coreutils/pull/3304 |
| 214 |
* Implement `--files0-from` option by @allan-silva in https://github.com/uutils/coreutils/pull/2966 |
| 215 |
|
| 216 |
## New Contributors |
| 217 |
@cohosh (https://github.com/uutils/coreutils/pull/2899, @g-k (https://github.com/uutils/coreutils/pull/2893), @water-ghosts (https://github.com/uutils/coreutils/pull/2956), @biomunky (https://github.com/uutils/coreutils/pull/2964), @danieleades (https://github.com/uutils/coreutils/pull/2963), @douglaz (https://github.com/uutils/coreutils/pull/2975), @Narasimha1997 (https://github.com/uutils/coreutils/pull/2947), @Toxaris (https://github.com/uutils/coreutils/pull/3020), @rahulkadukar (https://github.com/uutils/coreutils/pull/3030), @DevSabb (https://github.com/uutils/coreutils/pull/3038), @HeroicKatora (https://github.com/uutils/coreutils/pull/3014), @shoriminimoe (https://github.com/uutils/coreutils/pull/3012), @lguist (https://github.com/uutils/coreutils/pull/3011), @ndd7xv (https://github.com/uutils/coreutils/pull/3024), @slycordinator (https://github.com/uutils/coreutils/pull/3013), @RishiKumarRay (https://github.com/uutils/coreutils/pull/3023), @daissi (https://github.com/uutils/coreutils/pull/3100), @snobee (https://github.com/uutils/coreutils/pull/3053), @abhishekc-sharma (https://github.com/uutils/coreutils/pull/3041), @DestroyerXyz (https://github.com/uutils/coreutils/pull/3108), @alextibbles (https://github.com/uutils/coreutils/pull/3110), @serhansekman (https://github.com/uutils/coreutils/pull/3121), @allan-silva (https://github.com/uutils/coreutils/pull/2966), @davide125 (https://github.com/uutils/coreutils/pull/3130), @crazystylus (https://github.com/uutils/coreutils/pull/3074), @miallo (https://github.com/uutils/coreutils/pull/3145), @iovanom (https://github.com/uutils/coreutils/pull/3021), @palaster (https://github.com/uutils/coreutils/pull/3056), @xxyzz (https://github.com/uutils/coreutils/pull/3045), @omertuc (https://github.com/uutils/coreutils/pull/3084), @cakebaker (https://github.com/uutils/coreutils/pull/3202), @dgunay (https://github.com/uutils/coreutils/pull/3158), @nickd0 (https://github.com/uutils/coreutils/pull/3116), @OHNONOTAMOTH (https://github.com/uutils/coreutils/pull/3244), @bnjbvr (https://github.com/uutils/coreutils/pull/3264), @chordtoll (https://github.com/uutils/coreutils/pull/3256), @ackerleytng (https://github.com/uutils/coreutils/pull/3304) |
| 218 |
|
| 219 |
**Full Changelog**: https://github.com/uutils/coreutils/compare/0.0.12...0.0.13 |