The latest GNU coreutils release adds safer environment handling, new uname output, and behavior changes to some of Linux’s most familiar terminal commands.

Long-time GNU Coreutils maintainer and release manager, Pádraig Brady, today announced on the info-gnu mailing list that GNU Coreutils 9.12 has been released. If you’re new to Linux, coreutils is a collection of command-line utilities that’s found on just about all Linux distributions. This includes ls, cp, mv, rm, mkdir, chmod, chown, cat, as well as many other commands you’re likely to use when you open a terminal.
It’s also what often makes the use of those commands in Linux unique. Even though many of the same commands are also used by BSD, Unix, and other *nixes, GNU Coreutils defines them differently, which means they don’t work the same, or necessarily with the same modifiers, when used in Linux.
In addition to a plethora of bug fixes, some going all the way back to the beginning, there are three major new features:
envnow supports--env0-from=FILEto read NUL-delimited environment entries from a file. With-i, entries are preserved exactly, allowing full round-tripping of environments containing duplicate or nonstandard entries.statandtailnow know about thefailfsandnullfsfile system types.stat -f -c%Tnow reports the file system type, andtail -fuses inotify for these file systems.unameadds the-Aoption to label all output, one item per line.
There are also three notable changes in behavior to be on the watch for:
envandprintenvnow quote printed environment variables honoring theQUOTING_STYLEenvironment variable, defaulting to shell-escape style. This avoids printing arbitrary data to the terminal and allows the output to be sourced by a POSIX shell.ls-w,--widthno longer includes\nin the width of a line. That is, the width or$COLUMNSis interpreted to be an inclusive maximum.statnow uses shell quoting when required to more robustly escape file names. Previously, it only quoted file names with the%Nformat. The default quoting honors theQUOTING_STYLEenvironment variable, as does%N. Also,%Qnis a newly supported format combination to quote file names, leaving the existing%nformat for when quoting is not desired.
The best thing to do, of course, is to wait for this to show up in your distro’s update manager. However, those of you who’re chomping at the bit can find a complete list of changes as well as download information at https://savannah.gnu.org/news/?id=10932.
Christine Hall has been a journalist since 1971. In 2001, she began writing a weekly consumer computer column and started covering Linux and FOSS in 2002 after making the switch to GNU/Linux. Follow her on Twitter: @BrideOfLinux




Be First to Comment