github uutils/coreutils 0.13.0

one hour ago

Rust Coreutils 0.13.0 Release:

We are happy to announce the release of Rust Coreutils 0.13.0 - a release focused on GNU compatibility of options and edge cases, and on safer file handling.
Most of the work went into the details that break scripts: conflicting or ambiguous options in sort, date format flags, dd conversions, ls time styles, tail --follow on symlinks, and what cp, mv, ln and install do when the destination is a symlink or a directory.

Alongside that, several utilities got faster (basenc base58 about 35x, cut +23%, date +22%, join +20%, etc), the WASI port got a lot of integration test coverage, a few more dependencies were dropped in favor of std, and more utilities now handle non-UTF-8 input.

We are now at 684 passing, 23 failing, 0 errors on the GNU test suite.

Counting only the tests that actually run, we are at 684/707 (96.7%).


GNU Test Suite Compatibility:

Result 0.12.0 0.13.0 Change 0.12.0 to 0.13.0 % Total 0.12.0 % Total 0.13.0 % Change 0.12.0 to 0.13.0
Pass 653 684 +31 94.36% 95.26% +0.90%
Skip 18 11 -7 2.60% 1.53% -1.07%
Fail 21 23 +2 3.03% 3.20% +0.17%
Error 0 0 0 0% 0% 0%
Total 692 718 +26 (new tests)

Note: the suite grew by 26 tests (backport of GNU tests), and 2 of them currently fail.


GNU testsuite evolution


Highlights:

  • GNU Compatibility

    • sort rejects conflicting -t, --compress-program and --check modes, validates --parallel like GNU, and rejects --debug together with -c/-C; merge batches and temporary files are handled more carefully
    • date matches the GNU case flags on %c, %p, %P, %r and %Z, keeps leading zeros of %N with a width, and uses the locale date format verbatim
    • dd: conv=ibm, conv=block and conv=unblock behave like GNU, and excl/nofollow are checked before seeking in an output FIFO
    • ls accepts unambiguous --time-style prefixes, applies two-line time formats to old and recent files correctly, and sorts command-line arguments by version properly
    • tail follows a symlink to its target, accepts the obsolete -cf form, and clamps --max-unchanged-stats instead of overflowing
    • printf and seq fix %f padding past 1000 zeros; split accepts a leading + in every number and retries short writes; pr, numfmt, stty, stat and od align more options and messages with GNU
  • Safer File Handling

    • cp no longer writes a recursive copy through a symlinked target, and checks relative symlink destinations against the working directory
    • mv and ln refuse to replace a directory with a symlink (or with --backup, -f, -i in ln)
    • chown/chgrp judge --preserve-root on the stat the traversal is pinned to; chmod -R -L reports dangling symlinks
    • install backs up a dangling symlink destination; install, cp and mknod warn when an explicit security context is ignored
    • rm escapes the operand in the --preserve-root error message
    • uucore: fixed EOVERFLOW in safe traversal
  • Robustness

    • Panics fixed on write failures for verbose output in rmdir, chcon, cp and tail, and in printf/seq on zero
    • Non-UTF-8 input is now preserved in date (format strings and --reference), stat error messages and shred diagnostics
    • uucore parses a NaN payload such as nan(1) and quotes a lone brace in the shell quoting styles; c-maybe quoting is supported
  • Performance

    • tr deletes bytes faster, basenc encodes and decodes base58 faster, and od streams its output line by line instead of buffering it
  • Dependency Diet

    • chroot, sync and the permission helpers use std instead of rustix; sort uses rlimit instead of rustix::process; cp and dd use set_len instead of ftruncate; uucore no longer needs unsafe for gettid
  • Cross-platform Reach

    • WASI: integration tests enabled for seq, mv, fmt, readlink, dircolors, cksum, realpath, nproc, shred and join, a macro to document why a test is ignored, date clock support, and nice is no longer part of the default WASI build
    • Windows: ln converts / to \ in symlink targets, and cp handles a recursive copy of a root such as W:/
    • uucore detects ASIMD on big-endian aarch64 and builds stty on little-endian ppc64
  • Upstream: while chasing compatibility we found behavior GNU's own suite did not cover, and contributed 82 commits to GNU coreutils during this cycle, almost all of them new tests for edge cases both implementations share, plus two small fixes (tail, fmt)

  • Contributions: This release landed 931 pull requests from 92 new contributors


Call to Action:

Try it in your browser - Online Playground powered by WebAssembly
Help us translate - Contribute to Rust Coreutils on Weblate
Sponsor us on GitHub to accelerate development: github.com/sponsors/uutils

What's Changed

b2sum

base32

base64

basename

basenc

cat

chcon

chgrp

chmod

  • chown, chgrp, chmod: bind the recursive operand to a verified descriptor by @sylvestre in #14483
  • chmod: preserve metadata errors for overlong paths by @limadog9 in #15499
  • chmod: report every failure met under -R by @NdekoCode in #15166
  • chmod: accept modes like -=r, -+x and -,u+x by @fixfon in #15680
  • chmod: fix EROFS showing as Permission denied by @gabrielhnf in #12200
  • chmod: report umask conflict below the -R operand by @eylulseyit in #15885
  • chmod: keep operand order with --reference by @fixfon in #15676
  • chmod: print 'could not be accessed' with -v for operands that can't be stat'ed by @emirmrkaljevic in #15884
  • chmod: report dangling symlinks below the -R -L operand by @a7604 in #16162
  • chmod, chown: check --preserve-root on the directory actually descended into by @abendrothj in #14972
  • chmod: report the real error for files below the -R operand by @eylulseyit in #15935

chown

  • chown, chgrp, chmod: bind the recursive operand to a verified descriptor by @sylvestre in #14483
  • chown: allow non-utf8 path for --reference by @cakebaker in #14785
  • chown: set group to owner's login group on "OWNER:" by @varranvar in #15204
  • chown, chgrp: accept repeated flags like GNU by @excid3 in #15669
  • chown, chgrp: say 'cannot access' unless the operand is a dangling symlink by @emirmrkaljevic in #15868
  • chmod, chown: check --preserve-root on the directory actually descended into by @abendrothj in #14972

chroot

cksum

comm

cp

csplit

cut

date

dd

  • dd: replace gcd dependency with num-integer by @wtcpython in #14663
  • dd: write conv=block padding as it goes, like GNU by @charly-mp in #14836
  • dd: stop the copy-buffer RSS check from racing other tests by @abendrothj in #14804
  • dd: fix case conversion for conv=ascii and conv=ibm by @SichenLiang in #15052
  • dd: avoid seeking non-seekable output at offset zero by @sfeirc in #15156
  • dd: fix conv=block/unblock conflict handling by @ChihweiLHBird in #14773
  • dd: only extend the output at the end, and report a failed truncate by @igorgbr in #15356
  • dd: ignore a failed cache drop while copying by @ChihweiLHBird in #14748
  • dd: keep O_APPEND on stdout when applying oflag by @Ybucaille in #15926
  • dd: keep numeric-looking values verbatim in errors by @eylulseyit in #16182
  • dd: check excl and nofollow before seeking in an output FIFO by @nishant9144 in #16225
  • dd: stop when seeking past the end of a block device by @bercedev in #16249
  • dd: keep records intact across read boundaries in conv=unblock by @fixfon in #15826
  • dd: reject fullblock as an output flag by @binhvq in #16371

df

  • df: support -m with --output by @wtcpython in #14742
  • df: don't trigger automounts when reading the mount table by @sylvestre in #15082
  • df: fix column width for non-ASCII headers by @Hekzory in #15247
  • df: report an over-mounted device instead of falling back to statfs by @montezuma-p in #15977

dircolors

dirname

du

  • du: reject a negative --max-depth like GNU by @sylvestre in #14709
  • du: use FxHashSet directly instead of aliasing it to HashSet by @oech3 in #14811
  • du: support block-size suffixes and grouping by @wtcpython in #13655
  • du: let -P after --dereference-args win by @Logic769 in #16014
  • du: open subdirectories with O_NOFOLLOW during the descent by @nishant9144 in #16321

env

  • env: apply the signal options in the order they are given by @paoValle in #15208
  • env: do not start a word for an unset variable in -S by @fixfon in #15877
  • env: require a command when --argv0 is given by @Logic769 in #16029
  • env: list the state of the signals, not the actions taken by @NdekoCode in #15186
  • env: take the value of -C, -u and -a as is, not as a -S string by @sylvestre in #16253
  • env: keep a leading = in values attached to short options by @MannXo in #15838
  • env: drop the ... after --debug in --help, and fix the flaky usage_vs_getopt by @sylvestre in #16534
  • env: support --env0-from by @wtcpython in #14609

expand

  • expand, unexpand: remove unnecessary stack buffer by @TauYip in #15160
  • expand: accept a trailing /N or +N tab size not larger than the last tab stop by @ozenyunus35 in #15623
  • expand, unexpand: preserve bare - as stdin by @qiyuhuating in #15716
  • expand, unexpand: give NUL zero width by @ozenyunus35 in #15627
  • expand: keep the column across read buffers and files by @Socialpranker in #16346
  • expand: accept a zero +N or /N after a tab list by @Xnadir in #16637
  • expand: apply a +N or /N from an earlier -t after all tab stops by @binhvq in #16391

expr

  • expr(fix): capacity overflow by @hlsxx in #12577
  • expr: remove issue from test name by @cakebaker in #14729
  • expr: anchor every top-level alternative of a regex by @anubhavgupta121 in #15829
  • expr: reject ')' where a value is expected by @binhvq in #16654

factor

  • factor: benchmark the numbers that stress factorization by @sylvestre in #14793
  • factor: test the factorizations that used to come back incomplete by @sylvestre in #14809
  • factor: add benchmark coverage by @naoNao89 in #12479
  • factor: update benchmarking documentation for Divan by @limadog9 in #15397
  • factor: only skip leading spaces in number arguments by @emirmrkaljevic in #16143
  • factor: add benchmarks factoring many numbers in one invocation by @DavidGailleton in #16439

fmt

  • fmt: default the width to goal + 10 when only --goal is given by @abhijeetvichare76 in #14275
  • fmt: remove outdated paragraph parser comments by @limadog9 in #15491
  • fmt: keep a missing final newline on lines lacking the -p prefix by @fixfon in #15554
  • fmt: preserve leading equals in short prefix options by @limadog9 in #15474
  • fmt: treat -N operands after -- as file names by @MannXo in #15837
  • fmt: report unreadable files and go on with the rest by @emirmrkaljevic in #15923
  • fmt: never let a line run past WIDTH when no break fits by @emirmrkaljevic in #16191
  • fmt: put two spaces after a first word that ends a sentence by @ozenyunus35 in #15640
  • fmt: indent the rest of a one-line tagged paragraph like GNU by @jayhemnani9910 in #15712
  • fmt: propagate read errors instead of silently treating them as EOF by @gabrielhnf in #12430
  • fmt: do not read the -0 width as a file name by @binhvq in #16624

fold

  • fold: report ERANGE like GNU for out-of-range column counts by @sylvestre in #14706
  • fold: parse the obsolete -WIDTH form the way GNU does by @arbelonson-source in #14248
  • fold: ignore the stdin write error when -w - is rejected by @TanbirRamim in #15025
  • fold: support non-UTF8 paths by @cakebaker in #15137
  • fold: keep zero-width characters after a newline by @MannXo in #15842
  • fold: handle carriage return and backspace before wrapping by @gibkim in #16185
  • fold: fold before a tab or wide character after a long line is flushed by @gibkim in #16107
  • fold: keep UTF-8 characters next to an invalid byte intact by @sarankumar1325 in #16310
  • fold: skip leading blanks in the width by @binhvq in #16455

groups

  • groups, pinky: look up user operands by name only by @binhvq in #15860
  • groups: include the real gid first by @Grove-ovo in #15974

head

  • head: remove Default trait from HeadOptions by @cakebaker in #12261
  • head, tail: quote file names in the '==> name <==' headers by @sylvestre in #14710
  • head: remove a fn used just twice by @oech3 in #15043
  • head: honor the current stdin offset for -n -N and -c -N by @Logic769 in #16043
  • head: accept the l suffix in the obsolete -NUM syntax by @binhvq in #16610

hostname

id

install

  • install: do not overwrite just-created files by @wtcpython in #14724
  • install: allow non-UTF8 for --target-directory by @cakebaker in #14817
  • install: refuse a -t target that is not a directory with one source by @abendrothj in #14997
  • install: report actual errors for special-file targets by @Hashim1999164 in #13645
  • install: print the OS error, not its Debug form, when removing the destination fails by @koopatroopa787 in #15015
  • install: create leading directories in write-only directories by @abendrothj in #14779
  • install: build on Redox by @abendrothj in #15276
  • install: report why a target cannot be used as a directory by @limadog9 in #15365
  • install: warn when an explicit security context is ignored by @limadog9 in #15395
  • install: accept piped input when replacing an existing file by @limadog9 in #15438
  • install: create ancestor directories at 0755 regardless of umask by @abendrothj in #12715
  • install: check for the same file before removing the destination with -D by @gibkim in #15909
  • install: back up a dangling symlink destination by @gibkim in #16098
  • install: compare the owner with -C even when only -g is given by @Ybucaille in #15928
  • install: refuse to back up a directory to put a file in its place by @qodelicious in #15905
  • install: simplify the ancestor walk in get_default_context_for_path by @sylvestre in #16260
  • install: label only the directories it creates by @abendrothj in #15333
  • install: fix clippy needless_bool warning by @sylvestre in #16395
  • install: run the strip program with the caller's umask by @DeepakRoy58 in #16543
  • install: compare caller umask numerically in strip test by @DeepakRoy58 in #16581

join

  • join: report a bad file number and a missing or extra operand as GNU does by @NdekoCode in #15177
  • join: allow repeated -e with identical values by @ozenyunus35 in #15244
  • join: print each line's own key with -i by @ozenyunus35 in #15635
  • join: compare a missing join field as an empty one by @costajohnt in #15875
  • join: fold -i keys to upper case like sort -f by @MannXo in #15841
  • join: let --nocheck-order after --check-order win by @Logic769 in #16013
  • join: accept separate -o field operands by @Franklin-Qi in #15408
  • join: don't end a line's fields with an empty one after trailing blanks by @dvsnehal in #16247
  • join: leave two file operands when absorbing -o fields by @sylvestre in #16281
  • join: do not take -o fields from after the file operands by @binhvq in #16378
  • join: reuse line buffers across keys (perf +20%) by @vpashaiev in #16528
  • join: accept a single trailing separator in the -o list by @binhvq in #16379

ln

  • ln: disable test on wasi by @cakebaker in #14639
  • ln: follow a symlinked parent when replacing a link by @costajohnt in #14851
  • ln: ask before backing up with -i by @abendrothj in #15526
  • ln: report same file for any backup mode by @Priyanshu-choudhary in #15545
  • ln: convert / to \ in symlink targets on Windows by @armadavalor in #15701
  • ln: refuse to replace a directory with --backup, -f or -i by @0anes0 in #15888
  • ln: print => for hard links with --verbose by @sarankumar1325 in #16016
  • ln: name the source when it can't be accessed by @emirmrkaljevic in #15714

ls

  • ls: measure the rendered directory header for dired offsets by @ChihweiLHBird in #14656
  • ls: diagnose an unparsable LS_COLORS as an error, not a warning by @sylvestre in #14708
  • ls: fix -m line wrapping and quoting by @wtcpython in #14743
  • ls: resolve --dired by argument position by @ChihweiLHBird in #14590
  • ls: accept unambiguous time style prefixes by @ddy314 in #14754
  • ls: simplify zeroed flags handling by @RenjiSann in #14850
  • ls: fix version sort of command-line arguments by @pizzaburgare in #14861
  • ls: apply two-line --time-style format to old/recent files correctly by @sylvestre in #12681
  • ls: warn when QUOTING_STYLE is not valid UTF-8 by @r3wretrhy in #14745
  • ls: fix //DIRED-OPTIONS// printing the wrong quoting-style name by @alter in #14847
  • ls: properly release parent nodes in DFS by @Alonely0 in #11465
  • ls: consolidate duplicate calculate_padding_collection functions by @sylvestre in #10402
  • ls: show the ACL '+' on macOS by @ozenyunus35 in #15344
  • ls: cover empty halves in custom time styles by @ddy314 in #14780
  • ls: round block counts up when scaling to a block size by @Socialpranker in #14330
  • ls: build for illumos by @oech3 in #15717
  • ls: report invalid file names as "cannot access" instead of an unknown io error by @armadavalor in #15699
  • ls: reuse cached metadata for security contexts by @limadog9 in #15435

md5sum

mkdir

  • mkdir: quote invalid modes in diagnostics by @0Whisperos in #13862
  • mkdir: improve the error message by @sylvestre in #15198

mkfifo

  • mkfifo: fix build where mode_t is not u32 by @pkubaj in #13775
  • mkfifo, mknod: set the umask through mode::with_umask by @abendrothj in #14768
  • mkfifo: allow negative values for -m/--mode by @Logic769 in #16017

mknod

mktemp

more

  • more: use OS errors instead of hardcoded locales by @Devel08 in #14085

mv

  • mv: symlink exponential walk fix by @mtvb in #14286
  • mv: use io::ErrorKind::CrossesDevices for rename fallback by @wtcpython in #14703
  • mv: keep copying xattrs after one fails in a cross-device move by @Cassian433 in #15049
  • mv: diagnose directory overwrites of symlink destinations by @limadog9 in #15366
  • mv: diagnose trailing slashes on regular-file sources by @limadog9 in #15379
  • mv: don't skip cross_device_xattr_failure_keeps_the_rest on tmpfs by @oech3 in #15904
  • mv: do not replace an empty directory with a symlink to a directory by @gibkim in #15914
  • mv: skip the same-file error with -n and --update=none by @emirmrkaljevic in #15825
  • mv: name the source in 'cannot overwrite directory' error by @emirmrkaljevic in #15725
  • mv: add 'cannot move' context to rename errors with two operands by @emirmrkaljevic in #15722
  • mv: warn when the destination doesn't support xattrs by @Cassian433 in #15101
  • mv: keep mode and xattrs of subdirectories on a cross-device move by @nishant9144 in #16222
  • mv: keep cross-device directories private until their mode is set by @Socialpranker in #16328

nice

  • nice, nohup: accept non-UTF-8 commands and arguments by @SichenLiang in #15304
  • nice: omit from the default WASI build by @unspecifiedcoder in #16621

nl

  • nl: keep numeric-looking file names verbatim in errors by @emirmrkaljevic in #15544
  • od, nl: match GNU on -w suffixes and huge -l values by @fixfon in #15564
  • nl: keep the current section from one input file to the next by @ozenyunus35 in #15629
  • nl: fix zero-padded numbering of the minimum line number by @fixfon in #16092
  • nl: accept negative values for -v and -i by @Logic769 in #16018
  • nl: use byte length of number separator when padding empty lines by @cakebaker in #15619
  • nl: don't reset linecount on section delimiter by @coracoracora in #16187
  • nl: accept hyphen-leading option values by @binhvq in #16376
  • nl: treat empty lines as section delimiters when -d is empty by @binhvq in #16449

nohup

  • nohup: make the substitute stdin unreadable like GNU by @costajohnt in #14655
  • nohup: add tests for exit-code passthrough, nohup.out modes and --help/--version by @GhostCoder6969 in #14890
  • nice, nohup: accept non-UTF-8 commands and arguments by @SichenLiang in #15304

numfmt

  • numfmt: diagnose write errors instead of panicking by @sylvestre in #14715
  • numfmt: use an already existing locale in an err by @Devel08 in #14842
  • numfmt: escape the format in --format error messages by @dhruv-15-03 in #14885
  • numfmt: honor --round for an explicit --format precision of 0 by @Socialpranker in #14392
  • numfmt: only reject scientific notation in the converted field by @ozenyunus35 in #15327
  • numfmt: write the first blank between fields as a space by @fixfon in #15555
  • numfmt: print an unsigned zero when rounding a negative number to zero by @fixfon in #15682
  • seq, tac, numfmt, sum, ptx: accept repeated options like GNU by @frogscooper in #15892
  • numfmt: refuse a value too large to print when it has a suffix by @jayhemnani9910 in #15672
  • numfmt: handle --invalid one field at a time by @ozenyunus35 in #15639

od

paste

  • paste: strip CR from CRLF input on Windows by @Smicry in #14894
  • paste: name the file in open and read errors by @emirmrkaljevic in #15642

pathchk

pinky

  • groups, pinky: look up user operands by name only by @binhvq in #15860

pr

  • pr: allow hyphens in expand tabs flag by @Devel08 in #15243
  • pr: keep the column separator with -J by @jayhemnani9910 in #15671
  • pr: do not pad the last column of a line by @DuncanBentley in #16140
  • pr: stop merged output after the last line without a page trailer by @jayhemnani9910 in #15673
  • pr: preserve non-UTF-8 input filenames by @limadog9 in #15488
  • pr: write non-UTF-8 input bytes unchanged by @DuncanBentley in #16078
  • pr: fix expected output in non-UTF-8 merge test by @Martell0x1 in #16161
  • pr: report invalid numeric options and page ranges as GNU does by @NdekoCode in #15176
  • pr: continue line numbers after a form feed by @1kailas in #16170
  • pr: treat '=' as the -e char and report integer overflow by @sylvestre in #16280
  • pr: use the -s and -S separator when merging files by @jayhemnani9910 in #16236
  • pr: with -d, no blank line after a last line that lacks a newline by @Xnadir in #16636
  • pr: ignore stdin write errors in the non-UTF-8 file name tests by @binhvq in #16656

printenv

  • printenv: Honor QUOTING_STYLE environment variable by @RenjiSann in #14857

printf

  • printf: preserve failure status after character constant warning by @SichenLiang in #15033
  • printf: reject a * precision above INT_MAX for %s by @fixfon in #15670
  • printf: handles output of %q when input contains braces by @mikusgabriel in #16215
  • printf: quote ignored chars in the character constant warning by @tridev-tej in #16509
  • printf: take --help/--version as options only when alone by @binhvq in #16385
  • printf: accept a NaN payload such as nan(1) by @binhvq in #16413

ptx

  • ptx: skip empty word-regexp matches by @wtcpython in #14722
  • seq, tac, numfmt, sum, ptx: accept repeated options like GNU by @frogscooper in #15892
  • ptx: single-line error for invalid -S regexp by @pizzaburgare in #14904
  • ptx: ignore stdin write error in test by @cakebaker in #16226
  • ptx: quote file names in open errors only when needed, like GNU by @emirmrkaljevic in #16363

pwd

  • pwd: explain failures when the working directory was removed by @limadog9 in #15494

readlink

  • readlink: keep going after an operand that cannot be read by @luantaraschi in #14799
  • realpath/readlink: improve the loop detection by @sylvestre in #14874
  • readlink: report an empty operand as missing with -f/-e/-m by @emirmrkaljevic in #16419

realpath

rm

  • rm: gate by target support by @xtqqczze in #14711
  • rm: escape the operand in the "same as '/'" preserve-root error by @binhvq in #15858
  • rm: keep missing-operand error after -f with -i/-I by @Logic769 in #16028
  • rm: identify directories with FileInfo by @sylvestre in #16290

rmdir

  • rmdir: handle verbose output failures without panicking by @limadog9 in #15384

seq

  • seq: don't count the increment's integer digits for -w by @fixfon in #15601
  • seq, tac, numfmt, sum, ptx: accept repeated options like GNU by @frogscooper in #15892
  • seq: treat option-like arguments before the first operand as options by @emirmrkaljevic in #16114

shred

shuf

sort

  • sort: write empty file when input is empty by @hideyosh1 in #11969
  • sort: remove some len() by @oech3 in #14825
  • sort: report merge output flush errors by @DePasqualeOrg in #13910
  • sort: split explicit buffer size between in-memory chunks by @mattsu2020 in #14907
  • sort: merge lazily in UTF-8 locales instead of precomputing sort keys by @sylvestre in #13205
  • sort: propagate temporary file write errors by @tasodoufu in #14388
  • sort: keep to its own temporary directory and files by @abendrothj in #15135
  • sort: let --check take precedence over --merge by @emirmrkaljevic in #15381
  • sort: distinguish blanks from control whitespace by @limadog9 in #15436
  • sort: simplify nested if/else by @cakebaker in #15457
  • sort: keep numeric-looking file names verbatim in errors by @emirmrkaljevic in #15565
  • sort: honor a whole-line key's own reverse flag by @ozenyunus35 in #15626
  • sort: report an invalid --parallel value as GNU does by @NdekoCode in #15184
  • sort: add external sort regression test for long lines by @fixfon in #15645
  • sort: skip only blanks before -b keys and -M months by @ozenyunus35 in #15647
  • sort: report read errors from the --check and --merge reader threads by @emirmrkaljevic in #15616
  • sort: read lowercase SI units with -h and -f by @ozenyunus35 in #15644
  • sort: reject conflicting -t separators by @fixfon in #15707
  • sort: reject incompatible modes across repeated --sort options by @kmehltretter82 in #15718
  • sort: reject mixing silent and diagnosing --check modes by @komal0000 in #15735
  • sort: reject conflicting --compress-program values by @fixfon in #15708
  • sort: convert separator conflict tests to rstest cases by @fixfon in #16096
  • sort: reject -o combined with --debug by @Logic769 in #16020
  • sort: let global -d override -i by @ozenyunus35 in #15643
  • sort: don't rewrite a -t file operand after -- by @sarankumar1325 in #15823
  • sort: read only required 16-byte seed from --random-source by @shadowmkj in #16324
  • sort: fix sort ordering check and multi-file merge on wasi by @eduardomourar in #13688
  • sort: preserve hard-linked inputs during merge by @limadog9 in #15917
  • sort: do not pipe input into the -o --debug conflict test by @binhvq in #16618
  • sort: reject trailing whitespace in the --buffer-size argument by @binhvq in #16608
  • sort: accept a sign before inf and nan with -g by @binhvq in #16587
  • sort: reject --debug together with -c or -C by @binhvq in #16602

split

  • [perf] split: reuse the per-line buffer in round-robin mode by @haydonryan in #14790
  • split: add round-robin benchmark by @haydonryan in #14923
  • uniq, split: stop reading an obsolete option after -- by @arbelonson-source in #14255
  • split: avoid opening output for empty input by @mattsu2020 in #14973
  • split: treat -a 0 as no suffix length option with -n by @ozenyunus35 in #15624
  • split: preserve chunk boundaries when omitting empty files by @limadog9 in #15887
  • split: accept leading '+' in the number of chunks by @Logic769 in #16019
  • split: don't read an option's value in combined shorts as obsolete lines by @ozenyunus35 in #15641
  • split: share the chunk parsing between the -n forms by @sylvestre in #16263
  • split: check the suffix start value before reading the input by @ozenyunus35 in #15649
  • split: share output file opening between unix and windows by @sylvestre in #16256
  • split: ignore stdin write error in test by @cakebaker in #16283
  • split: retry short writes in -b and -l modes by @binhvq in #15859
  • split: keep O_CREATE flag on reopen when output is existing by @mikusgabriel in #16286
  • split: name the file and strip the errno in wasi open errors by @eduardomourar in #16272
  • split: do not run test_existing_output_is_reopened_with_create on wasi by @Devel08 in #16486
  • split: write each run of lines to a chunk with a single write by @eduardomourar in #16357
  • split: print "executing with FILE=" for --verbose with --filter by @binhvq in #16489
  • split: keep going when a --filter exits early with -n N by @ihsandeniz in #16517
  • split: use dd in the early-exiting filter test by @costajohnt in #16603

stat

  • stat: add %Qn and quote names as GNU 9.12 does by @charly-mp in #14839
  • stat: truncate fractional pre-epoch timestamps toward zero by @mattsu2020 in #14975
  • stat: preserve non-UTF-8 filenames in error messages by @ddy314 in #14755
  • stat: replace while with for by @oech3 in #15452
  • stat: reject flag-only % directives closed by another % by @Franklin-Qi in #15411
  • stat: print a newline after --format output even if it ends with one by @qodelicious in #15469
  • stat: print the rest of a multibyte char after an unknown directive by @qodelicious in #15470
  • stat: let the last of --printf and --format win by @Logic769 in #16012
  • stat: print signed and unsigned values like GNU for %s, %S, %a, %b, %d, %f by @binhvq in #16370
  • stat: do not take a sign as part of the precision by @binhvq in #16458
  • stat: add the 0 of %#a only when the digits do not start with one by @binhvq in #16393
  • stat: drop a directive whose width or precision is above INT_MAX by @binhvq in #16481

stdbuf

  • stdbuf: fix build.rs to propagate custom profiles to libstdbuf by @Ecordonnier in #12462
  • stdbuf: fix stdio getters in libstdbuf by @Ecordonnier in #15480
  • stdbuf: fix test_stdbuf_reports_signalled_command when /bin/sh is bash by @lmilz in #16355
  • stdbuf: build.rs: give the nested cargo build its own build-dir by @mitar in #16525
  • stdbuf, GNUmakefile: support cargo 1.100.0 by @oech3 in #16487

stty

sum

  • sum: continue with remaining files after a read error by @sap1110 in #14956
  • seq, tac, numfmt, sum, ptx: accept repeated options like GNU by @frogscooper in #15892
  • sum: let the last of -r/-s win by @Logic769 in #16010

sync

  • sync: replace rustix with std & extend cfg by @oech3 in #15733

tac

tail

tee

test

timeout

touch

tr

truncate

tsort

uname

unexpand

uniq

uptime

users

wc

who

whoami

yes

uucore

Testing

Code Quality & Cleanup

CI & Build

Documentation

Platform Support

Dependency Updates

Version Management

New Contributors

Full Changelog: 0.12.0...0.13.0

Don't miss a new coreutils release

NewReleases is sending notifications on new releases.