The stable version of the GNU Coreutils 9.12 basic system utilities is now available, which includes programs such as sort, cat, chmod, chown, chroot, cp, date, dd, echo, hostname, id, ln, and ls.
Key innovations:
- The env utility has added the option ââenv0-from=FILEâ to load a list of environment variables from a file, which can also be used to filter existing environment variables with a command like âenv -i âenv0-from=< ( env -0 | sed -z ⊠)â. The utility printenv can be used to save the state of the environment variables to a file.
In the commands âenvâ, âprintenvâ, âstatâ, âbasenameâ, âdirnameâ, âduâ, âreadlinkâ, and ârealpathâ, special characters are now escaped in terminal output according to the style set by the QUOTING_STYLE environment variable (%N, %Qn or %n). This escaping has been added to protect against manipulation of the terminal's content and state through special character substitution.
- In the utilities âdfâ, âduâ, âlsâ, âodâ, âprâ, and âsortâ, problematic options are now escaped in error messages.
- In the command âls -mâ, commas in file names are now escaped.
- The utilities âchconâ, âchgrpâ, âchmodâ, âchownâ, âduâ, and âlsâ no longer terminate with an error when performing recursive operations with the â-Râ option in cases of concurrent deletion of files in processed directories.
- The sort utility has been optimized for memory consumption and for executing parallel operations when reading data of unknown size, such as when transferring data through unnamed pipes.
- Optimization has been made in the âcut -wâ command for determining the start of a line, allowing throughput to increase by up to 4 times when using locales with multibyte encodings.
- The âuniq -câ command has been accelerated by up to 2.5 times on systems with non-blocking stdio functions.
- A build option ââwith-wtmpdbâ has been added, which, when running the commands âwho /var/log/wtmpâ and âusers /var/log/wtmpâ, uses a database in wtmpdb format instead of the file /var/log/wtmp.
Source: opennet.ru
