0.0.16
Highlights
- The minimum supported Rust version is now 1.59.
- Many utils now return exit code
1
on usage errors instead of2
to match GNU. tail
has had another significant refactor with slight improvements.chroot
returns better exit codes and supports commands with flags.cp
supports the-H
flag and handles more cases correctly.test
supports-N
,-ef
,-nt
&-ot
and supports 128 bit integers.dd
's argument parsing has been overhauled and is more compatible with GNU.- There have been refactors, fixes and performance improvements in many utils, see below for details.
GNU test suite compatibility
Many utils have seen minor changes to improve GNU compatibility. Below is a summary of the progress. See https://github.com/uutils/coreutils-tracking/ for more details
result | 0.0.15 | 0.0.16 | change |
---|---|---|---|
pass | 293 | 322 | +29 |
skip | 73 | 49 | -24 |
fail | 222 | 217 | -5 |
error | 5 | 5 | 0 |
Changes
The PR's listed below are a selection of all the contributions in this release.
General
- Change remaining usage codes of
2
to1
for GNU compat by @tertsdiepraam in #3922 - Create new adaptive svg logo by @tertsdiepraam in #3892
cat
- Remove deprecated
unix_socket
dependency by @niyaznigmatullin in #3854
chcon
- Fix GNU
tests/misc/chcon-fail.sh
test by @niyaznigmatullin in #3857
chroot
- Improve support of
--skip-chdir
by @sylvestre in #4004 - Set exit codes to
125
,126
or127
for errors fromchroot
itself by @tertsdiepraam in #3908 - Set trailing var arg by @tertsdiepraam in #3907
- Various improvements to chroot by @sylvestre in #3960
cp
- Fix
cp-i
GNU test by @niyaznigmatullin in #3949 - Add
-H
option by @niyaznigmatullin in #3971 - Assume
--reflink=always
on no value by @sssemil in #3992 - Correct error message on copying dir to itself by @jfinkels in #3981
- Allow removing symbolic link loop destination by @jfinkels in #3972
- Preserve permissions when copying directory and don't terminate early on inaccessible file by @jfinkels in #3973
dd
- Handle stdout redirected to seekable file by @jfinkels in #3880
- Parse operands manually via positional args by @tertsdiepraam in #3938
df
factor
- Enable
union
feature forsmallvec
by @niyaznigmatullin in #3928
ls
- Exit code 2 when
IOError
happened for argument by @niyaznigmatullin in #3921 - Add support for
+FORMAT
in timestyle by @dmatos2012 in #3988 - Align
--ignore
behavior with that of GNU ls by @ackerleytng in #3803
mktemp
- Respect
TMPDIR
environment variable by @jfinkels in #3552 - Match GNU error message on too many args by @jfinkels in #3951
- Add message for directory not found by @jfinkels in #3940
pr
- Migrate from
chrono
totime
by @niyaznigmatullin in #3918 - Use clap to handle help & version by @cakebaker in #3904
rm
- Added write-protected check for files by @stefins in #3853
- Added descend messages for interactive mode Fixes #3817 by @palaster in #3931
split
- Add support for starting suffix numbers by @andrewbaptist in #3976
sync
- Various compatibility improvement by @sylvestre in #4003
tail
- Fix stdin redirect (#3842) by @jhscheer in #3845
- Fix tail panicking when seeking backwards by @kilpkonn in #3873
- Refactor tail by @Joining7943 in #3905
- Fix random errors for piped input on macos by @Joining7943 in #3953
test
- Add a bunch of operations by @sylvestre in #4002
New Contributors
@sssemil (#3852), @kilpkonn (#3873), @stefins (#3853), @snapdgn (#3923), @sashashura (#3980), @dmatos2012 (#3988)
Full Changelog: 0.0.15...0.0.16