A stable version of the GNU Coreutils 9.1 basic system utilities is now available, which includes programs such as sort, cat, chmod, chown, chroot, cp, date, dd, echo, hostname, id, ln, ls, etc.
Key changes:
- The dd utility now supports alternative option names iseek=N for skip=N and oseek=N for seek=N, which are used in the dd variant for BSD systems.
- The dircolors utility has been enhanced with the ‘—print-ls-colors’ option for clear and separate display of colors defined in the LS_COLORS environment variable. Support for the COLORTERM environment variable has also been added to dircolors in addition to TERM.
- In the cp, mv, and install utilities, system calls openat* are utilized when copying to a directory to improve efficiency and eliminate potential race conditions.
- In macOS, the cp utility now creates a clone of a file in copy-on-write mode if the source and target files are located on the same APFS filesystem and the target file does not exist. It also ensures the preservation of mode and access time (as when using ‘cp -p’ and ‘cp -a’).
- The ‘date’ utility has been enhanced with the ‘—resolution’ option for outputting precision time accounting information.
- In printf, support has been added for outputting numeric values in multibyte characters.
- In ‘sort —debug’, diagnostics for issues with characters in the ‘—field-separator’ parameter that conflict with characters that might be used in numbers have been implemented.
- In the cat utility, the copy_file_range system call is utilized for copying data between two files on the kernel side without transferring data to process memory in user space, if supported by the system.
- In chown and chroot, a warning is issued when using the syntax ‘chown root.root f’ instead of ‘chown root:root f’ since there may be issues on systems where dots are allowed in usernames.
- In the dd utility, byte counting instead of blocks is supported when the counter value ends with the character ‘B’ (‘dd count=100KiB’). The flags count_bytes, skip_bytes, and seek_bytes have been deprecated.
- In ls, file highlighting based on capabilities is disabled by default, as it increases load by approximately 30%.
- In ls and stat, attempts to automount files have been disabled. The ‘stat —cached=never’ option must be explicitly specified for automounting.
Source: opennet.ru
