new program: timeout
[platform/upstream/coreutils.git] / NEWS
1 GNU coreutils NEWS                                    -*- outline -*-
2
3 * Noteworthy changes in release 7.0 (????-??-??) [beta]
4
5 ** New programs
6
7   timeout: Run a command with bounded time.
8
9 ** New features
10
11   md5sum now accepts the new option, --quiet, to suppress the printing of
12   'OK' messages.  sha1sum, sha224sum, sha384sum, and sha512sum accept it, too.
13
14
15 * Noteworthy changes in release 6.12 (2008-05-31) [stable]
16
17 ** Bug fixes
18
19   chcon, runcon: --help output now includes the bug-reporting address
20
21   cp -p copies permissions more portably.  For example, on MacOS X 10.5,
22   "cp -p some-fifo some-file" no longer fails while trying to copy the
23   permissions from the some-fifo argument.
24
25   id with no options now prints the SELinux context only when invoked
26   with no USERNAME argument.
27
28   id and groups once again print the AFS-specific nameless group-ID (PAG).
29   Printing of such large-numbered, kernel-only (not in /etc/group) group-IDs
30   was suppressed in 6.11 due to ignorance that they are useful.
31
32   uniq: avoid subtle field-skipping malfunction due to isblank misuse.
33   In some locales on some systems, isblank(240) (aka &nbsp) is nonzero.
34   On such systems, uniq --skip-fields=N would fail to skip the proper
35   number of fields for some inputs.
36
37   tac: avoid segfault with --regex (-r) and multiple files, e.g.,
38   "echo > x; tac -r x x".  [bug present at least in textutils-1.8b, from 1992]
39
40 ** Changes in behavior
41
42   install once again sets SELinux context, when possible
43   [it was deliberately disabled in 6.9.90]
44
45
46 * Noteworthy changes in release 6.11 (2008-04-19) [stable]
47
48 ** Bug fixes
49
50   configure --enable-no-install-program=groups now works.
51
52   "cp -fR fifo E" now succeeds with an existing E.  Before this fix, using
53   -fR to copy a fifo or "special" file onto an existing file would fail
54   with EEXIST.  Now, it once again unlinks the destination before trying
55   to create the destination file.  [bug introduced in coreutils-5.90]
56
57   dd once again works with unnecessary options like if=/dev/stdin and
58   of=/dev/stdout.  [bug introduced in fileutils-4.0h]
59
60   id now uses getgrouplist, when possible.  This results in
61   much better performance when there are many users and/or groups.
62
63   ls no longer segfaults on files in /proc when linked with an older version
64   of libselinux.  E.g., ls -l /proc/sys would dereference a NULL pointer.
65
66   md5sum would segfault for invalid BSD-style input, e.g.,
67   echo 'MD5 (' | md5sum -c -  Now, md5sum ignores that line.
68   sha1sum, sha224sum, sha384sum, and sha512sum are affected, too.
69   [bug introduced in coreutils-5.1.0]
70
71   md5sum -c would accept a NUL-containing checksum string like "abcd\0..."
72   and would unnecessarily read and compute the checksum of the named file,
73   and then compare that checksum to the invalid one: guaranteed to fail.
74   Now, it recognizes that the line is not valid and skips it.
75   sha1sum, sha224sum, sha384sum, and sha512sum are affected, too.
76   [bug present in the original version, in coreutils-4.5.1, 1995]
77
78   "mkdir -Z x dir" no longer segfaults when diagnosing invalid context "x"
79   mkfifo and mknod would fail similarly.  Now they're fixed.
80
81   mv would mistakenly unlink a destination file before calling rename,
82   when the destination had two or more hard links.  It no longer does that.
83   [bug introduced in coreutils-5.3.0]
84
85   "paste -d'\' file" no longer overruns memory (heap since coreutils-5.1.2,
86   stack before then) [bug present in the original version, in 1992]
87
88   "pr -e" with a mix of backspaces and TABs no longer corrupts the heap
89   [bug present in the original version, in 1992]
90
91   "ptx -F'\' long-file-name" would overrun a malloc'd buffer and corrupt
92   the heap.  That was triggered by a lone backslash (or odd number of them)
93   at the end of the option argument to --flag-truncation=STRING (-F),
94   --word-regexp=REGEXP (-W), or --sentence-regexp=REGEXP (-S).
95
96   "rm -r DIR" would mistakenly declare to be "write protected" -- and
97   prompt about -- full DIR-relative names longer than MIN (PATH_MAX, 8192).
98
99   "rmdir --ignore-fail-on-non-empty" detects and ignores the failure
100   in more cases when a directory is empty.
101
102   "seq -f % 1" would issue the erroneous diagnostic "seq: memory exhausted"
103   rather than reporting the invalid string format.
104   [bug introduced in coreutils-6.0]
105
106 ** New features
107
108   join now verifies that the inputs are in sorted order.  This check can
109   be turned off with the --nocheck-order option.
110
111   sort accepts the new option --sort=WORD, where WORD can be one of
112   general-numeric, month, numeric or random.  These are equivalent to the
113   options --general-numeric-sort/-g, --month-sort/-M, --numeric-sort/-n
114   and --random-sort/-R, resp.
115
116 ** Improvements
117
118   id and groups work around an AFS-related bug whereby those programs
119   would print an invalid group number, when given no user-name argument.
120
121   ls --color no longer outputs unnecessary escape sequences
122
123   seq gives better diagnostics for invalid formats.
124
125 ** Portability
126
127   rm now works properly even on systems like BeOS and Haiku,
128   which have negative errno values.
129
130 ** Consistency
131
132   install, mkdir, rmdir and split now write --verbose output to stdout,
133   not to stderr.
134
135
136 * Noteworthy changes in release 6.10 (2008-01-22) [stable]
137
138 ** Bug fixes
139
140   Fix a non-portable use of sed in configure.ac.
141   [bug introduced in coreutils-6.9.92]
142
143
144 * Noteworthy changes in release 6.9.92 (2008-01-12) [beta]
145
146 ** Bug fixes
147
148   cp --parents no longer uses uninitialized memory when restoring the
149   permissions of a just-created destination directory.
150   [bug introduced in coreutils-6.9.90]
151
152   tr's case conversion would fail in a locale with differing numbers
153   of lower case and upper case characters.  E.g., this would fail:
154   env LC_CTYPE=en_US.ISO-8859-1 tr '[:upper:]' '[:lower:]'
155   [bug introduced in coreutils-6.9.90]
156
157 ** Improvements
158
159   "touch -d now writable-but-owned-by-someone-else" now succeeds
160   whenever that same command would succeed without "-d now".
161   Before, it would work fine with no -d option, yet it would
162   fail with the ostensibly-equivalent "-d now".
163
164
165 * Noteworthy changes in release 6.9.91 (2007-12-15) [beta]
166
167 ** Bug fixes
168
169   "ls -l" would not output "+" on SELinux hosts unless -Z was also given.
170
171   "rm" would fail to unlink a non-directory when run in an environment
172   in which the user running rm is capable of unlinking a directory.
173   [bug introduced in coreutils-6.9]
174
175
176 * Noteworthy changes in release 6.9.90 (2007-12-01) [beta]
177
178 ** New programs
179
180   arch: equivalent to uname -m, not installed by default
181   But don't install this program on Solaris systems.
182
183   chcon: change the SELinux security context of a file
184
185   mktemp: create a temporary file or directory (or names)
186
187   runcon: run a program in a different SELinux security context
188
189 ** Programs no longer installed by default
190
191   hostname, su
192
193 ** Changes in behavior
194
195   cp, by default, refuses to copy through a dangling destination symlink
196   Set POSIXLY_CORRECT if you require the old, risk-prone behavior.
197
198   pr -F no longer suppresses the footer or the first two blank lines in
199   the header.  This is for compatibility with BSD and POSIX.
200
201   tr now warns about an unescaped backslash at end of string.
202   The tr from coreutils-5.2.1 and earlier would fail for such usage,
203   and Solaris' tr ignores that final byte.
204
205 ** New features
206
207   Add SELinux support, based on the patch from Fedora:
208   * cp accepts new --preserve=context option.
209   * "cp -a" works with SELinux:
210   Now, cp -a attempts to preserve context, but failure to do so does
211   not change cp's exit status.  However "cp --preserve=context" is
212   similar, but failure *does* cause cp to exit with nonzero status.
213   * install accepts new "-Z, --context=C" option.
214   * id accepts new "-Z" option.
215   * stat honors the new %C format directive: SELinux security context string
216   * ls accepts a slightly modified -Z option.
217   * ls: contrary to Fedora version, does not accept --lcontext and --scontext
218
219   The following commands and options now support the standard size
220   suffixes kB, M, MB, G, GB, and so on for T, P, Y, Z, and Y:
221   head -c, head -n, od -j, od -N, od -S, split -b, split -C,
222   tail -c, tail -n.
223
224   cp -p tries to preserve the GID of a file even if preserving the UID
225   is not possible.
226
227   uniq accepts a new option: --zero-terminated (-z).  As with the sort
228   option of the same name, this makes uniq consume and produce
229   NUL-terminated lines rather than newline-terminated lines.
230
231   wc no longer warns about character decoding errors in multibyte locales.
232   This means for example that "wc /bin/sh" now produces normal output
233   (though the word count will have no real meaning) rather than many
234   error messages.
235
236 ** New build options
237
238   By default, "make install" no longer attempts to install (or even build) su.
239   To change that, use ./configure --enable-install-program=su.
240   If you also want to install the new "arch" program, do this:
241   ./configure --enable-install-program=arch,su.
242
243   You can inhibit the compilation and installation of selected programs
244   at configure time.  For example, to avoid installing "hostname" and
245   "uptime", use ./configure --enable-no-install-program=hostname,uptime
246   Note: currently, "make check" passes, even when arch and su are not
247   built (that's the new default).  However, if you inhibit the building
248   and installation of other programs, don't be surprised if some parts
249   of "make check" fail.
250
251 ** Remove deprecated options
252
253   df no longer accepts the --kilobytes option.
254   du no longer accepts the --kilobytes or --megabytes options.
255   ls no longer accepts the --kilobytes option.
256   ptx longer accepts the --copyright option.
257   who no longer accepts -i or --idle.
258
259 ** Improved robustness
260
261   ln -f can no longer silently clobber a just-created hard link.
262   In some cases, ln could be seen as being responsible for data loss.
263   For example, given directories a, b, c, and files a/f and b/f, we
264   should be able to do this safely: ln -f a/f b/f c && rm -f a/f b/f
265   However, before this change, ln would succeed, and thus cause the
266   loss of the contents of a/f.
267
268   stty no longer silently accepts certain invalid hex values
269   in its 35-colon command-line argument
270
271 ** Bug fixes
272
273   chmod no longer ignores a dangling symlink.  Now, chmod fails
274   with a diagnostic saying that it cannot operate on such a file.
275   [bug introduced in coreutils-5.1.0]
276
277   cp attempts to read a regular file, even if stat says it is empty.
278   Before, "cp /proc/cpuinfo c" would create an empty file when the kernel
279   reports stat.st_size == 0, while "cat /proc/cpuinfo > c" would "work",
280   and create a nonempty one. [bug introduced in coreutils-6.0]
281
282   cp --parents no longer mishandles symlinks to directories in file
283   name components in the source, e.g., "cp --parents symlink/a/b d"
284   no longer fails.  Also, 'cp' no longer considers a destination
285   symlink to be the same as the referenced file when copying links
286   or making backups.  For example, if SYM is a symlink to FILE,
287   "cp -l FILE SYM" now reports an error instead of silently doing
288   nothing.  The behavior of 'cp' is now better documented when the
289   destination is a symlink.
290
291   "cp -i --update older newer" no longer prompts; same for mv
292
293   "cp -i" now detects read errors on standard input, and no longer consumes
294   too much seekable input; same for ln, install, mv, and rm.
295
296   cut now diagnoses a range starting with zero (e.g., -f 0-2) as invalid;
297   before, it would treat it as if it started with 1 (-f 1-2).
298
299   "cut -f 2-0" now fails; before, it was equivalent to "cut -f 2-"
300
301   cut now diagnoses the '-' in "cut -f -" as an invalid range, rather
302   than interpreting it as the unlimited range, "1-".
303
304   date -d now accepts strings of the form e.g., 'YYYYMMDD +N days',
305   in addition to the usual 'YYYYMMDD N days'.
306
307   du -s now includes the size of any stat'able-but-inaccessible directory
308   in the total size.
309
310   du (without -s) prints whatever it knows of the size of an inaccessible
311   directory.  Before, du would print nothing for such a directory.
312
313   ls -x DIR would sometimes output the wrong string in place of the
314   first entry.  [introduced in coreutils-6.8]
315
316   ls --color would mistakenly color a dangling symlink as if it were
317   a regular symlink.  This would happen only when the dangling symlink
318   was not a command-line argument and in a directory with d_type support.
319   [introduced in coreutils-6.0]
320
321   ls --color, (with a custom LS_COLORS envvar value including the
322   ln=target attribute) would mistakenly output the string "target"
323   before the name of each symlink.  [introduced in coreutils-6.0]
324
325   od's --skip (-j) option now works even when the kernel says that a
326   nonempty regular file has stat.st_size = 0.  This happens at least
327   with files in /proc and linux-2.6.22.
328
329   "od -j L FILE" had a bug: when the number of bytes to skip, L, is exactly
330   the same as the length of FILE, od would skip *no* bytes.  When the number
331   of bytes to skip is exactly the sum of the lengths of the first N files,
332   od would skip only the first N-1 files. [introduced in textutils-2.0.9]
333
334   ./printf %.10000000f 1 could get an internal ENOMEM error and generate
335   no output, yet erroneously exit with status 0.  Now it diagnoses the error
336   and exits with nonzero status.  [present in initial implementation]
337
338   seq no longer mishandles obvious cases like "seq 0 0.000001 0.000003",
339   so workarounds like "seq 0 0.000001 0.0000031" are no longer needed.
340
341   seq would mistakenly reject some valid format strings containing %%,
342   and would mistakenly accept some invalid ones. e.g., %g%% and %%g, resp.
343
344   "seq .1 .1" would mistakenly generate no output on some systems
345
346   Obsolete sort usage with an invalid ordering-option character, e.g.,
347   "env _POSIX2_VERSION=199209 sort +1x" no longer makes sort free an
348   invalid pointer [introduced in coreutils-6.5]
349
350   sorting very long lines (relative to the amount of available memory)
351   no longer provokes unaligned memory access
352
353   split --line-bytes=N (-C N) no longer creates an empty file
354   [this bug is present at least as far back as textutils-1.22 (Jan, 1997)]
355
356   tr -c no longer aborts when translating with Set2 larger than the
357   complement of Set1.  [present in the original version, in 1992]
358
359   tr no longer rejects an unmatched [:lower:] or [:upper:] in SET1.
360   [present in the original version]
361
362
363 * Noteworthy changes in release 6.9 (2007-03-22) [stable]
364
365 ** Bug fixes
366
367   cp -x (--one-file-system) would fail to set mount point permissions
368
369   The default block size and output format for df -P are now unaffected by
370   the DF_BLOCK_SIZE, BLOCK_SIZE, and BLOCKSIZE environment variables.  It
371   is still affected by POSIXLY_CORRECT, though.
372
373   Using pr -m -s (i.e. merging files, with TAB as the output separator)
374   no longer inserts extraneous spaces between output columns.
375
376 * Noteworthy changes in release 6.8 (2007-02-24) [not-unstable]
377
378 ** Bug fixes
379
380   chgrp, chmod, and chown now honor the --preserve-root option.
381   Before, they would warn, yet continuing traversing and operating on /.
382
383   chmod no longer fails in an environment (e.g., a chroot) with openat
384   support but with insufficient /proc support.
385
386   "cp --parents F/G D" no longer creates a directory D/F when F is not
387   a directory (and F/G is therefore invalid).
388
389   "cp --preserve=mode" would create directories that briefly had
390   too-generous permissions in some cases.  For example, when copying a
391   directory with permissions 777 the destination directory might
392   temporarily be setgid on some file systems, which would allow other
393   users to create subfiles with the same group as the directory.  Fix
394   similar problems with 'install' and 'mv'.
395
396   cut no longer dumps core for usage like "cut -f2- f1 f2" with two or
397   more file arguments.  This was due to a double-free bug, introduced
398   in coreutils-5.3.0.
399
400   dd bs= operands now silently override any later ibs= and obs=
401   operands, as POSIX and tradition require.
402
403   "ls -FRL" always follows symbolic links on Linux.  Introduced in
404   coreutils-6.0.
405
406   A cross-partition "mv /etc/passwd ~" (by non-root) now prints
407   a reasonable diagnostic.  Before, it would print this:
408   "mv: cannot remove `/etc/passwd': Not a directory".
409
410   pwd and "readlink -e ." no longer fail unnecessarily when a parent
411   directory is unreadable.
412
413   rm (without -f) could prompt when it shouldn't, or fail to prompt
414   when it should, when operating on a full name longer than 511 bytes
415   and getting an ENOMEM error while trying to form the long name.
416
417   rm could mistakenly traverse into the wrong directory under unusual
418   conditions: when a full name longer than 511 bytes specifies a search-only
419   directory, and when forming that name fails with ENOMEM, rm would attempt
420   to open a truncated-to-511-byte name with the first five bytes replaced
421   with "[...]".  If such a directory were to actually exist, rm would attempt
422   to remove it.
423
424   "rm -rf /etc/passwd" (run by non-root) now prints a diagnostic.
425   Before it would print nothing.
426
427   "rm --interactive=never F" no longer prompts for an unwritable F
428
429   "rm -rf D" would emit an misleading diagnostic when failing to
430   remove a symbolic link within the unwritable directory, D.
431   Introduced in coreutils-6.0.  Similarly, when a cross-partition
432   "mv" fails because the source directory is unwritable, it now gives
433   a reasonable diagnostic.  Before, this would print
434     $ mkdir /tmp/x; touch /tmp/x/y; chmod -w /tmp/x;
435     $ test $(stat -c %d /tmp/x) -ne $(stat -c %d .) && mv /tmp/x/y .
436     mv: cannot remove `/tmp/x/y': Not a directory
437   Now it prints this:
438     mv: cannot remove `/tmp/x/y': Permission denied.
439
440 ** New features
441
442   sort's new --compress-program=PROG option specifies a compression
443   program to use when writing and reading temporary files.
444   This can help save both time and disk space when sorting large inputs.
445
446   sort accepts the new option -C, which acts like -c except no diagnostic
447   is printed.  Its --check option now accepts an optional argument, and
448   --check=quiet and --check=silent are now aliases for -C, while
449   --check=diagnose-first is an alias for -c or plain --check.
450
451
452 * Noteworthy changes in release 6.7 (2006-12-08) [stable]
453
454 ** Bug fixes
455
456   When cp -p copied a file with special mode bits set, the same bits
457   were set on the copy even when ownership could not be preserved.
458   This could result in files that were setuid to the wrong user.
459   To fix this, special mode bits are now set in the copy only if its
460   ownership is successfully preserved.  Similar problems were fixed
461   with mv when copying across file system boundaries.  This problem
462   affects all versions of coreutils through 6.6.
463
464   cp --preserve=ownership would create output files that temporarily
465   had too-generous permissions in some cases.  For example, when
466   copying a file with group A and mode 644 into a group-B sticky
467   directory, the output file was briefly readable by group B.
468   Fix similar problems with cp options like -p that imply
469   --preserve=ownership, with install -d when combined with either -o
470   or -g, and with mv when copying across file system boundaries.
471   This bug affects all versions of coreutils through 6.6.
472
473   du --one-file-system (-x) would skip subdirectories of any directory
474   listed as second or subsequent command line argument.  This bug affects
475   coreutils-6.4, 6.5 and 6.6.
476
477
478 * Noteworthy changes in release 6.6 (2006-11-22) [stable]
479
480 ** Bug fixes
481
482   ls would segfault (dereference a NULL pointer) for a file with a
483   nameless group or owner.  This bug was introduced in coreutils-6.5.
484
485   A bug in the latest official m4/gettext.m4 (from gettext-0.15)
486   made configure fail to detect gettext support, due to the unusual
487   way in which coreutils uses AM_GNU_GETTEXT.
488
489 ** Improved robustness
490
491   Now, du (and the other fts clients: chmod, chgrp, chown) honor a
492   trailing slash in the name of a symlink-to-directory even on
493   Solaris 9, by working around its buggy fstatat implementation.
494
495
496 * Major changes in release 6.5 (2006-11-19) [stable]
497
498 ** Bug fixes
499
500   du (and the other fts clients: chmod, chgrp, chown) would exit early
501   when encountering an inaccessible directory on a system with native
502   openat support (i.e., linux-2.6.16 or newer along with glibc-2.4
503   or newer).  This bug was introduced with the switch to gnulib's
504   openat-based variant of fts, for coreutils-6.0.
505
506   "ln --backup f f" now produces a sensible diagnostic
507
508 ** New features
509
510   rm accepts a new option: --one-file-system
511
512
513 * Major changes in release 6.4 (2006-10-22) [stable]
514
515 ** Bug fixes
516
517   chgrp and chown would malfunction when invoked with both -R and -H and
518   with one or more of the following: --preserve-root, --verbose, --changes,
519   --from=o:g (chown only).  This bug was introduced with the switch to
520   gnulib's openat-based variant of fts, for coreutils-6.0.
521
522   cp --backup dir1 dir2, would rename an existing dir2/dir1 to dir2/dir1~.
523   This bug was introduced in coreutils-6.0.
524
525   With --force (-f), rm no longer fails for ENOTDIR.
526   For example, "rm -f existing-non-directory/anything" now exits
527   successfully, ignoring the error about a nonexistent file.
528
529
530 * Major changes in release 6.3 (2006-09-30) [stable]
531
532 ** Improved robustness
533
534   pinky no longer segfaults on Darwin 7.9.0 (MacOS X 10.3.9) due to a
535   buggy native getaddrinfo function.
536
537   rm works around a bug in Darwin 7.9.0 (MacOS X 10.3.9) that would
538   sometimes keep it from removing all entries in a directory on an HFS+
539   or NFS-mounted partition.
540
541   sort would fail to handle very large input (around 40GB) on systems with a
542   mkstemp function that returns a file descriptor limited to 32-bit offsets.
543
544 ** Bug fixes
545
546   chmod would fail unnecessarily in an unusual case: when an initially-
547   inaccessible argument is rendered accessible by chmod's action on a
548   preceding command line argument.  This bug also affects chgrp, but
549   it is harder to demonstrate.  It does not affect chown.  The bug was
550   introduced with the switch from explicit recursion to the use of fts
551   in coreutils-5.1.0 (2003-10-15).
552
553   cp -i and mv -i occasionally neglected to prompt when the copy or move
554   action was bound to fail.  This bug dates back to before fileutils-4.0.
555
556   With --verbose (-v), cp and mv would sometimes generate no output,
557   or neglect to report file removal.
558
559   For the "groups" command:
560
561     "groups" no longer prefixes the output with "user :" unless more
562     than one user is specified; this is for compatibility with BSD.
563
564     "groups user" now exits nonzero when it gets a write error.
565
566     "groups" now processes options like --help more compatibly.
567
568   shuf would infloop, given 8KB or more of piped input
569
570 ** Portability
571
572   Versions of chmod, chown, chgrp, du, and rm (tools that use openat etc.)
573   compiled for Solaris 8 now also work when run on Solaris 10.
574
575
576 * Major changes in release 6.2 (2006-09-18) [stable candidate]
577
578 ** Changes in behavior
579
580   mkdir -p and install -d (or -D) now use a method that forks a child
581   process if the working directory is unreadable and a later argument
582   uses a relative file name.  This avoids some race conditions, but it
583   means you may need to kill two processes to stop these programs.
584
585   rm now rejects attempts to remove the root directory, e.g., `rm -fr /'
586   now fails without removing anything.  Likewise for any file name with
587   a final `./' or `../' component.
588
589   tail now ignores the -f option if POSIXLY_CORRECT is set, no file
590   operand is given, and standard input is any FIFO; formerly it did
591   this only for pipes.
592
593 ** Infrastructure changes
594
595   Coreutils now uses gnulib via the gnulib-tool script.
596   If you check the source out from CVS, then follow the instructions
597   in README-cvs.  Although this represents a large change to the
598   infrastructure, it should cause no change in how the tools work.
599
600 ** Bug fixes
601
602   cp --backup no longer fails when the last component of a source file
603   name is "." or "..".
604
605   "ls --color" would highlight other-writable and sticky directories
606   no differently than regular directories on a file system with
607   dirent.d_type support.
608
609   "mv -T --verbose --backup=t A B" now prints the " (backup: B.~1~)"
610   suffix when A and B are directories as well as when they are not.
611
612   mv and "cp -r" no longer fail when invoked with two arguments
613   where the first one names a directory and the second name ends in
614   a slash and doesn't exist.  E.g., "mv dir B/", for nonexistent B,
615   now succeeds, once more.  This bug was introduced in coreutils-5.3.0.
616
617
618 * Major changes in release 6.1 (2006-08-19) [unstable]
619
620 ** Changes in behavior
621
622   df now considers BSD "kernfs" file systems to be dummies
623
624 ** New features
625
626   printf now supports the 'I' flag on hosts whose underlying printf
627   implementations support 'I', e.g., "printf %Id 2".
628
629 ** Bug fixes
630
631   cp --sparse preserves sparseness at the end of a file, even when
632   the file's apparent size is not a multiple of its block size.
633   [introduced with the original design, in fileutils-4.0r, 2000-04-29]
634
635   df (with a command line argument) once again prints its header
636   [introduced in coreutils-6.0]
637
638   ls -CF would misalign columns in some cases involving non-stat'able files
639   [introduced in coreutils-6.0]
640
641 * Major changes in release 6.0 (2006-08-15) [unstable]
642
643 ** Improved robustness
644
645   df: if the file system claims to have more available than total blocks,
646   report the number of used blocks as being "total - available"
647   (a negative number) rather than as garbage.
648
649   dircolors: a new autoconf run-test for AIX's buggy strndup function
650   prevents malfunction on that system;  may also affect cut, expand,
651   and unexpand.
652
653   fts no longer changes the current working directory, so its clients
654   (chmod, chown, chgrp, du) no longer malfunction under extreme conditions.
655
656   pwd and other programs using lib/getcwd.c work even on file systems
657   where dirent.d_ino values are inconsistent with those from stat.st_ino.
658
659   rm's core is now reentrant: rm --recursive (-r) now processes
660   hierarchies without changing the working directory at all.
661
662 ** Changes in behavior
663
664   basename and dirname now treat // as different from / on platforms
665   where the two are distinct.
666
667   chmod, install, and mkdir now preserve a directory's set-user-ID and
668   set-group-ID bits unless you explicitly request otherwise.  E.g.,
669   `chmod 755 DIR' and `chmod u=rwx,go=rx DIR' now preserve DIR's
670   set-user-ID and set-group-ID bits instead of clearing them, and
671   similarly for `mkdir -m 755 DIR' and `mkdir -m u=rwx,go=rx DIR'.  To
672   clear the bits, mention them explicitly in a symbolic mode, e.g.,
673   `mkdir -m u=rwx,go=rx,-s DIR'.  To set them, mention them explicitly
674   in either a symbolic or a numeric mode, e.g., `mkdir -m 2755 DIR',
675   `mkdir -m u=rwx,go=rx,g+s' DIR.  This change is for convenience on
676   systems where these bits inherit from parents.  Unfortunately other
677   operating systems are not consistent here, and portable scripts
678   cannot assume the bits are set, cleared, or preserved, even when the
679   bits are explicitly mentioned.  For example, OpenBSD 3.9 `mkdir -m
680   777 D' preserves D's setgid bit but `chmod 777 D' clears it.
681   Conversely, Solaris 10 `mkdir -m 777 D', `mkdir -m g-s D', and
682   `chmod 0777 D' all preserve D's setgid bit, and you must use
683   something like `chmod g-s D' to clear it.
684
685   `cp --link --no-dereference' now works also on systems where the
686   link system call cannot create a hard link to a symbolic link.
687   This change has no effect on systems with a Linux-based kernel.
688
689   csplit and nl now use POSIX syntax for regular expressions, not
690   Emacs syntax.  As a result, character classes like [[:print:]] and
691   interval expressions like A\{1,9\} now have their usual meaning,
692   . no longer matches the null character, and \ must precede the + and
693   ? operators.
694
695   date: a command like date -d '2006-04-23 21 days ago' would print
696   the wrong date in some time zones.  (see the test for an example)
697
698   df changes:
699
700     df now considers "none" and "proc" file systems to be dummies and
701     therefore does not normally display them.  Also, inaccessible file
702     systems (which can be caused by shadowed mount points or by
703     chrooted bind mounts) are now dummies, too.
704
705     df now fails if it generates no output, so you can inspect the
706     exit status of a command like "df -t ext3 -t reiserfs DIR" to test
707     whether DIR is on a file system of type "ext3" or "reiserfs".
708
709   expr no longer complains about leading ^ in a regular expression
710   (the anchor is ignored), or about regular expressions like A** (the
711   second "*" is ignored).  expr now exits with status 2 (not 3) for
712   errors it detects in the expression's values; exit status 3 is now
713   used only for internal errors (such as integer overflow, which expr
714   now checks for).
715
716   install and mkdir now implement the X permission symbol correctly,
717   e.g., `mkdir -m a+X dir'; previously the X was ignored.
718
719   install now creates parent directories with mode u=rwx,go=rx (755)
720   instead of using the mode specified by the -m option; and it does
721   not change the owner or group of parent directories.  This is for
722   compatibility with BSD and closes some race conditions.
723
724   ln now uses different (and we hope clearer) diagnostics when it fails.
725   ln -v now acts more like FreeBSD, so it generates output only when
726   successful and the output is easier to parse.
727
728   ls now defaults to --time-style='locale', not --time-style='posix-long-iso'.
729   However, the 'locale' time style now behaves like 'posix-long-iso'
730   if your locale settings appear to be messed up.  This change
731   attempts to have the default be the best of both worlds.
732
733   mkfifo and mknod no longer set special mode bits (setuid, setgid,
734   and sticky) with the -m option.
735
736   nohup's usual diagnostic now more precisely specifies the I/O
737   redirections, e.g., "ignoring input and appending output to
738   nohup.out".  Also, nohup now redirects stderr to nohup.out (or
739   $HOME/nohup.out) if stdout is closed and stderr is a tty; this is in
740   response to Open Group XCU ERN 71.
741
742   rm --interactive now takes an optional argument, although the
743   default of using no argument still acts like -i.
744
745   rm no longer fails to remove an empty, unreadable directory
746
747   seq changes:
748
749     seq defaults to a minimal fixed point format that does not lose
750     information if seq's operands are all fixed point decimal numbers.
751     You no longer need the `-f%.f' in `seq -f%.f 1048575 1024 1050623',
752     for example, since the default format now has the same effect.
753
754     seq now lets you use %a, %A, %E, %F, and %G formats.
755
756     seq now uses long double internally rather than double.
757
758   sort now reports incompatible options (e.g., -i and -n) rather than
759   silently ignoring one of them.
760
761   stat's --format=FMT option now works the way it did before 5.3.0:
762   FMT is automatically newline terminated.  The first stable release
763   containing this change was 5.92.
764
765   stat accepts the new option --printf=FMT, where FMT is *not*
766   automatically newline terminated.
767
768   stat: backslash escapes are interpreted in a format string specified
769   via --printf=FMT, but not one specified via --format=FMT.  That includes
770   octal (\ooo, at most three octal digits), hexadecimal (\xhh, one or
771   two hex digits), and the standard sequences (\a, \b, \f, \n, \r, \t,
772   \v, \", \\).
773
774   With no operand, 'tail -f' now silently ignores the '-f' only if
775   standard input is a FIFO or pipe and POSIXLY_CORRECT is set.
776   Formerly, it ignored the '-f' when standard input was a FIFO, pipe,
777   or socket.
778
779 ** Scheduled for removal
780
781   ptx's --copyright (-C) option is scheduled for removal in 2007, and
782   now evokes a warning.  Use --version instead.
783
784   rm's --directory (-d) option is scheduled for removal in 2006.  This
785   option has been silently ignored since coreutils 5.0.  On systems
786   that support unlinking of directories, you can use the "unlink"
787   command to unlink a directory.
788
789   Similarly, we are considering the removal of ln's --directory (-d,
790   -F) option in 2006.  Please write to <bug-coreutils@gnu.org> if this
791   would cause a problem for you.  On systems that support hard links
792   to directories, you can use the "link" command to create one.
793
794 ** New programs
795
796   base64: base64 encoding and decoding (RFC 3548) functionality.
797   sha224sum: print or check a SHA224 (224-bit) checksum
798   sha256sum: print or check a SHA256 (256-bit) checksum
799   sha384sum: print or check a SHA384 (384-bit) checksum
800   sha512sum: print or check a SHA512 (512-bit) checksum
801   shuf: Shuffle lines of text.
802
803 ** New features
804
805   chgrp now supports --preserve-root, --no-preserve-root (default),
806   as it was documented to do, and just as chmod, chown, and rm do.
807
808   New dd iflag= and oflag= flags:
809
810     'directory' causes dd to fail unless the file is a directory, on
811     hosts that support this (e.g., Linux kernels, version 2.1.126 and
812     later).  This has limited utility but is present for completeness.
813
814     'noatime' causes dd to read a file without updating its access
815     time, on hosts that support this (e.g., Linux kernels, version
816     2.6.8 and later).
817
818     'nolinks' causes dd to fail if the file has multiple hard links,
819     on hosts that support this (e.g., Solaris 10 and later).
820
821   ls accepts the new option --group-directories-first, to make it
822   list directories before files.
823
824   rm now accepts the -I (--interactive=once) option.  This new option
825   prompts once if rm is invoked recursively or if more than three
826   files are being deleted, which is less intrusive than -i prompting
827   for every file, but provides almost the same level of protection
828   against mistakes.
829
830   shred and sort now accept the --random-source option.
831
832   sort now accepts the --random-sort (-R) option and `R' ordering option.
833
834   sort now supports obsolete usages like "sort +1 -2" unless
835   POSIXLY_CORRECT is set.  However, when conforming to POSIX
836   1003.1-2001 "sort +1" still sorts the file named "+1".
837
838   wc accepts a new option --files0-from=FILE, where FILE contains a
839   list of NUL-terminated file names.
840
841 ** Bug fixes
842
843   cat with any of the options, -A -v -e -E -T, when applied to a
844   file in /proc or /sys (linux-specific), would truncate its output,
845   usually printing nothing.
846
847   cp -p would fail in a /proc-less chroot, on some systems
848
849   When `cp -RL' encounters the same directory more than once in the
850   hierarchy beneath a single command-line argument, it no longer confuses
851   them with hard-linked directories.
852
853   fts-using tools (chmod, chown, chgrp, du) no longer fail due to
854   a double-free bug -- it could be triggered by making a directory
855   inaccessible while e.g., du is traversing the hierarchy under it.
856
857   fts-using tools (chmod, chown, chgrp, du) no longer misinterpret
858   a very long symlink chain as a dangling symlink.  Before, such a
859   misinterpretation would cause these tools not to diagnose an ELOOP error.
860
861   ls --indicator-style=file-type would sometimes stat a symlink
862   unnecessarily.
863
864   ls --file-type worked like --indicator-style=slash (-p),
865   rather than like --indicator-style=file-type.
866
867   mv: moving a symlink into the place of an existing non-directory is
868   now done atomically;  before, mv would first unlink the destination.
869
870   mv -T DIR EMPTY_DIR no longer fails unconditionally.  Also, mv can
871   now remove an empty destination directory: mkdir -p a b/a; mv a b
872
873   rm (on systems with openat) can no longer exit before processing
874   all command-line arguments.
875
876   rm is no longer susceptible to a few low-probability memory leaks.
877
878   rm -r no longer fails to remove an inaccessible and empty directory
879
880   rm -r's cycle detection code can no longer be tricked into reporting
881   a false positive (introduced in fileutils-4.1.9).
882
883   shred --remove FILE no longer segfaults on Gentoo systems
884
885   sort would fail for large inputs (~50MB) on systems with a buggy
886   mkstemp function.  sort and tac now use the replacement mkstemp
887   function, and hence are no longer subject to limitations (of 26 or 32,
888   on the maximum number of files from a given template) on HP-UX 10.20,
889   SunOS 4.1.4, Solaris 2.5.1 and OSF1/Tru64 V4.0F&V5.1.
890
891   tail -f once again works on a file with the append-only
892   attribute (affects at least Linux ext2, ext3, xfs file systems)
893
894 * Major changes in release 5.97 (2006-06-24) [stable]
895 * Major changes in release 5.96 (2006-05-22) [stable]
896 * Major changes in release 5.95 (2006-05-12) [stable]
897 * Major changes in release 5.94 (2006-02-13) [stable]
898
899 [see the b5_9x branch for details]
900
901 * Major changes in release 5.93 (2005-11-06) [stable]
902
903 ** Bug fixes
904
905   dircolors no longer segfaults upon an attempt to use the new
906   STICKY_OTHER_WRITABLE (OWT) attribute.
907
908   du no longer overflows a counter when processing a file larger than
909   2^31-1 on some 32-bit systems (at least some AIX 5.1 configurations).
910
911   md5sum once again defaults to using the ` ' non-binary marker
912   (rather than the `*' binary marker) by default on Unix-like systems.
913
914   mkdir -p and install -d no longer exit nonzero when asked to create
915   a directory like `nonexistent/.'
916
917   rm emits a better diagnostic when (without -r) it fails to remove
918   a directory on e.g., Solaris 9/10 systems.
919
920   tac now works when stdin is a tty, even on non-Linux systems.
921
922   "tail -c 2 FILE" and "touch 0101000000" now operate as POSIX
923   1003.1-2001 requires, even when coreutils is conforming to older
924   POSIX standards, as the newly-required behavior is upward-compatible
925   with the old.
926
927   The documentation no longer mentions rm's --directory (-d) option.
928
929 ** Build-related bug fixes
930
931   installing .mo files would fail
932
933
934 * Major changes in release 5.92 (2005-10-22) [stable]
935
936 ** Bug fixes
937
938   chmod now diagnoses an invalid mode string starting with an octal digit
939
940   dircolors now properly quotes single-quote characters
941
942
943 * Major changes in release 5.91 (2005-10-17) [stable candidate]
944
945 ** Bug fixes
946
947   "mkdir -p /a/b/c" no longer fails merely because a leading prefix
948   directory (e.g., /a or /a/b) exists on a read-only file system.
949
950 ** Removed options
951
952   tail's --allow-missing option has been removed.  Use --retry instead.
953
954   stat's --link and -l options have been removed.
955   Use --dereference (-L) instead.
956
957 ** Deprecated options
958
959   Using ls, du, or df with the --kilobytes option now evokes a warning
960   that the long-named option is deprecated.  Use `-k' instead.
961
962   du's long-named --megabytes option now evokes a warning.
963   Use -m instead.
964
965
966 * Major changes in release 5.90 (2005-09-29) [unstable]
967
968 ** Bring back support for `head -NUM', `tail -NUM', etc. even when
969   conforming to POSIX 1003.1-2001.  The following changes apply only
970   when conforming to POSIX 1003.1-2001; there is no effect when
971   conforming to older POSIX versions.
972
973   The following usages now behave just as when conforming to older POSIX:
974
975     date -I
976     expand -TAB1[,TAB2,...]
977     fold -WIDTH
978     head -NUM
979     join -j FIELD
980     join -j1 FIELD
981     join -j2 FIELD
982     join -o FIELD_NAME1 FIELD_NAME2...
983     nice -NUM
984     od -w
985     pr -S
986     split -NUM
987     tail -[NUM][bcl][f] [FILE]
988
989   The following usages no longer work, due to the above changes:
990
991     date -I TIMESPEC  (use `date -ITIMESPEC' instead)
992     od -w WIDTH       (use `od -wWIDTH' instead)
993     pr -S STRING      (use `pr -SSTRING' instead)
994
995   A few usages still have behavior that depends on which POSIX standard is
996   being conformed to, and portable applications should beware these
997   problematic usages.  These include:
998
999     Problematic       Standard-conforming replacement, depending on
1000        usage            whether you prefer the behavior of:
1001                       POSIX 1003.2-1992    POSIX 1003.1-2001
1002     sort +4           sort -k 5            sort ./+4
1003     tail +4           tail -n +4           tail ./+4
1004     tail - f          tail f               [see (*) below]
1005     tail -c 4         tail -c 10 ./4       tail -c4
1006     touch 12312359 f  touch -t 12312359 f  touch ./12312359 f
1007     uniq +4           uniq -s 4            uniq ./+4
1008
1009     (*) "tail - f" does not conform to POSIX 1003.1-2001; to read
1010     standard input and then "f", use the command "tail -- - f".
1011
1012   These changes are in response to decisions taken in the January 2005
1013   Austin Group standardization meeting.  For more details, please see
1014   "Utility Syntax Guidelines" in the Minutes of the January 2005
1015   Meeting <http://www.opengroup.org/austin/docs/austin_239.html>.
1016
1017 ** Binary input and output are now implemented more consistently.
1018   These changes affect only platforms like MS-DOS that distinguish
1019   between binary and text files.
1020
1021   The following programs now always use text input/output:
1022
1023     expand unexpand
1024
1025   The following programs now always use binary input/output to copy data:
1026
1027     cp install mv shred
1028
1029   The following programs now always use binary input/output to copy
1030   data, except for stdin and stdout when it is a terminal.
1031
1032     head tac tail tee tr
1033     (cat behaves similarly, unless one of the options -bensAE is used.)
1034
1035   cat's --binary or -B option has been removed.  It existed only on
1036   MS-DOS-like platforms, and didn't work as documented there.
1037
1038   md5sum and sha1sum now obey the -b or --binary option, even if
1039   standard input is a terminal, and they no longer report files to be
1040   binary if they actually read them in text mode.
1041
1042 ** Changes for better conformance to POSIX
1043
1044   cp, ln, mv, rm changes:
1045
1046     Leading white space is now significant in responses to yes-or-no questions.
1047     For example, if "rm" asks "remove regular file `foo'?" and you respond
1048     with " y" (i.e., space before "y"), it counts as "no".
1049
1050   dd changes:
1051
1052     On a QUIT or PIPE signal, dd now exits without printing statistics.
1053
1054     On hosts lacking the INFO signal, dd no longer treats the USR1
1055     signal as if it were INFO when POSIXLY_CORRECT is set.
1056
1057     If the file F is non-seekable and contains fewer than N blocks,
1058     then before copying "dd seek=N of=F" now extends F with zeroed
1059     blocks until F contains N blocks.
1060
1061   fold changes:
1062
1063     When POSIXLY_CORRECT is set, "fold file -3" is now equivalent to
1064     "fold file ./-3", not the obviously-erroneous "fold file ./-w3".
1065
1066   ls changes:
1067
1068     -p now marks only directories; it is equivalent to the new option
1069     --indicator-style=slash.  Use --file-type or
1070     --indicator-style=file-type to get -p's old behavior.
1071
1072   nice changes:
1073
1074     Documentation and diagnostics now refer to "nicenesses" (commonly
1075     in the range -20...19) rather than "nice values" (commonly 0...39).
1076
1077   nohup changes:
1078
1079     nohup now ignores the umask when creating nohup.out.
1080
1081     nohup now closes stderr if it is a terminal and stdout is closed.
1082
1083     nohup now exits with status 127 (not 1) when given an invalid option.
1084
1085   pathchk changes:
1086
1087     It now rejects the empty name in the normal case.  That is,
1088     "pathchk -p ''" now fails, and "pathchk ''" fails unless the
1089     current host (contra POSIX) allows empty file names.
1090
1091     The new -P option checks whether a file name component has leading "-",
1092     as suggested in interpretation "Austin-039:XCU:pathchk:pathchk -p"
1093     <http://www.opengroup.org/austin/interps/doc.tpl?gdid=6232>.
1094     It also rejects the empty name even if the current host accepts it; see
1095     <http://www.opengroup.org/austin/interps/doc.tpl?gdid=6233>.
1096
1097     The --portability option is now equivalent to -p -P.
1098
1099 ** Bug fixes
1100
1101   chmod, mkdir, mkfifo, and mknod formerly mishandled rarely-used symbolic
1102   permissions like =xX and =u, and did not properly diagnose some invalid
1103   strings like g+gr, ug,+x, and +1.  These bugs have been fixed.
1104
1105   csplit could produce corrupt output, given input lines longer than 8KB
1106
1107   dd now computes statistics using a realtime clock (if available)
1108   rather than the time-of-day clock, to avoid glitches if the
1109   time-of-day is changed while dd is running.  Also, it avoids
1110   using unsafe code in signal handlers; this fixes some core dumps.
1111
1112   expr and test now correctly compare integers of unlimited magnitude.
1113
1114   expr now detects integer overflow when converting strings to integers,
1115   rather than silently wrapping around.
1116
1117   ls now refuses to generate time stamps containing more than 1000 bytes, to
1118   foil potential denial-of-service attacks on hosts with very large stacks.
1119
1120   "mkdir -m =+x dir" no longer ignores the umask when evaluating "+x",
1121   and similarly for mkfifo and mknod.
1122
1123   "mkdir -p /tmp/a/b dir" no longer attempts to create the `.'-relative
1124   directory, dir (in /tmp/a), when, after creating /tmp/a/b, it is unable
1125   to return to its initial working directory.  Similarly for "install -D
1126   file /tmp/a/b/file".
1127
1128   "pr -D FORMAT" now accepts the same formats that "date +FORMAT" does.
1129
1130   stat now exits nonzero if a file operand does not exist
1131
1132 ** Improved robustness
1133
1134   Date no longer needs to allocate virtual memory to do its job,
1135   so it can no longer fail due to an out-of-memory condition,
1136   no matter how large the result.
1137
1138 ** Improved portability
1139
1140   hostid now prints exactly 8 hexadecimal digits, possibly with leading zeros,
1141   and without any spurious leading "fff..." on 64-bit hosts.
1142
1143   nice now works on Darwin 7.7.0 in spite of its invalid definition of NZERO.
1144
1145   `rm -r' can remove all entries in a directory even when it is on a
1146   file system for which readdir is buggy and that was not checked by
1147   coreutils' old configure-time run-test.
1148
1149   sleep no longer fails when resumed after being suspended on linux-2.6.8.1,
1150   in spite of that kernel's buggy nanosleep implementation.
1151
1152 ** New features
1153
1154   chmod -w now complains if its behavior differs from what chmod a-w
1155   would do, and similarly for chmod -r, chmod -x, etc.
1156
1157   cp and mv: the --reply=X option is deprecated
1158
1159   date accepts the new option --rfc-3339=TIMESPEC.  The old --iso-8601 (-I)
1160   option is deprecated; it still works, but new applications should avoid it.
1161   date, du, ls, and pr's time formats now support new %:z, %::z, %:::z
1162   specifiers for numeric time zone offsets like -07:00, -07:00:00, and -07.
1163
1164   dd has new iflag= and oflag= flags "binary" and "text", which have an
1165   effect only on nonstandard platforms that distinguish text from binary I/O.
1166
1167   dircolors now supports SETUID, SETGID, STICKY_OTHER_WRITABLE,
1168   OTHER_WRITABLE, and STICKY, with ls providing default colors for these
1169   categories if not specified by dircolors.
1170
1171   du accepts new options: --time[=TYPE] and --time-style=STYLE
1172
1173   join now supports a NUL field separator, e.g., "join -t '\0'".
1174   join now detects and reports incompatible options, e.g., "join -t x -t y",
1175
1176   ls no longer outputs an extra space between the mode and the link count
1177   when none of the listed files has an ACL.
1178
1179   md5sum --check now accepts multiple input files, and similarly for sha1sum.
1180
1181   If stdin is a terminal, nohup now redirects it from /dev/null to
1182   prevent the command from tying up an OpenSSH session after you logout.
1183
1184   "rm -FOO" now suggests "rm ./-FOO" if the file "-FOO" exists and
1185   "-FOO" is not a valid option.
1186
1187   stat -f -c %S outputs the fundamental block size (used for block counts).
1188   stat -f's default output format has been changed to output this size as well.
1189   stat -f recognizes file systems of type XFS and JFS
1190
1191   "touch -" now touches standard output, not a file named "-".
1192
1193   uname -a no longer generates the -p and -i outputs if they are unknown.
1194
1195 * Major changes in release 5.3.0 (2005-01-08) [unstable]
1196
1197 ** Bug fixes
1198
1199   Several fixes to chgrp and chown for compatibility with POSIX and BSD:
1200
1201     Do not affect symbolic links by default.
1202     Now, operate on whatever a symbolic link points to, instead.
1203     To get the old behavior, use --no-dereference (-h).
1204
1205     --dereference now works, even when the specified owner
1206     and/or group match those of an affected symlink.
1207
1208     Check for incompatible options.  When -R and --dereference are
1209     both used, then either -H or -L must also be used.  When -R and -h
1210     are both used, then -P must be in effect.
1211
1212     -H, -L, and -P have no effect unless -R is also specified.
1213     If -P and -R are both specified, -h is assumed.
1214
1215     Do not optimize away the chown() system call when the file's owner
1216     and group already have the desired value.  This optimization was
1217     incorrect, as it failed to update the last-changed time and reset
1218     special permission bits, as POSIX requires.
1219
1220     "chown : file", "chown '' file", and "chgrp '' file" now succeed
1221     without changing the uid or gid, instead of reporting an error.
1222
1223     Do not report an error if the owner or group of a
1224     recursively-encountered symbolic link cannot be updated because
1225     the file system does not support it.
1226
1227   chmod now accepts multiple mode-like options, e.g., "chmod -r -w f".
1228
1229   chown is no longer subject to a race condition vulnerability, when
1230   used with --from=O:G and without the (-h) --no-dereference option.
1231
1232   cut's --output-delimiter=D option works with abutting byte ranges.
1233
1234   dircolors's documentation now recommends that shell scripts eval
1235   "`dircolors`" rather than `dircolors`, to avoid shell expansion pitfalls.
1236
1237   du no longer segfaults when a subdirectory of an operand
1238   directory is removed while du is traversing that subdirectory.
1239   Since the bug was in the underlying fts.c module, it also affected
1240   chown, chmod, and chgrp.
1241
1242   du's --exclude-from=FILE and --exclude=P options now compare patterns
1243   against the entire name of each file, rather than against just the
1244   final component.
1245
1246   echo now conforms to POSIX better.  It supports the \0ooo syntax for
1247   octal escapes, and \c now terminates printing immediately.  If
1248   POSIXLY_CORRECT is set and the first argument is not "-n", echo now
1249   outputs all option-like arguments instead of treating them as options.
1250
1251   expand and unexpand now conform to POSIX better.  They check for
1252   blanks (which can include characters other than space and tab in
1253   non-POSIX locales) instead of spaces and tabs.  Unexpand now
1254   preserves some blanks instead of converting them to tabs or spaces.
1255
1256   "ln x d/" now reports an error if d/x is a directory and x a file,
1257   instead of incorrectly creating a link to d/x/x.
1258
1259   ls no longer segfaults on systems for which SIZE_MAX != (size_t) -1.
1260
1261   md5sum and sha1sum now report an error when given so many input
1262   lines that their line counter overflows, instead of silently
1263   reporting incorrect results.
1264
1265   Fixes for "nice":
1266
1267     If it fails to lower the niceness due to lack of permissions,
1268     it goes ahead and runs the command anyway, as POSIX requires.
1269
1270     It no longer incorrectly reports an error if the current niceness
1271     happens to be -1.
1272
1273     It no longer assumes that nicenesses range from -20 through 19.
1274
1275     It now consistently adjusts out-of-range nicenesses to the
1276     closest values in range; formerly it sometimes reported an error.
1277
1278   pathchk no longer accepts trailing options, e.g., "pathchk -p foo -b"
1279   now treats -b as a file name to check, not as an invalid option.
1280
1281   `pr --columns=N' was not equivalent to `pr -N' when also using
1282   either -s or -w.
1283
1284   pr now supports page numbers up to 2**64 on most hosts, and it
1285   detects page number overflow instead of silently wrapping around.
1286   pr now accepts file names that begin with "+" so long as the rest of
1287   the file name does not look like a page range.
1288
1289   printf has several changes:
1290
1291     It now uses 'intmax_t' (not 'long int') to format integers, so it
1292     can now format 64-bit integers on most modern hosts.
1293
1294     On modern hosts it now supports the C99-inspired %a, %A, %F conversion
1295     specs, the "'" and "0" flags, and the ll, j, t, and z length modifiers
1296     (this is compatible with recent Bash versions).
1297
1298     The printf command now rejects invalid conversion specifications
1299     like %#d, instead of relying on undefined behavior in the underlying
1300     printf function.
1301
1302   ptx now diagnoses invalid values for its --width=N (-w)
1303   and --gap-size=N (-g) options.
1304
1305   mv (when moving between partitions) no longer fails when
1306   operating on too many command-line-specified nonempty directories.
1307
1308   "readlink -f" is more compatible with prior implementations
1309
1310   rm (without -f) no longer hangs when attempting to remove a symlink
1311   to a file on an off-line NFS-mounted partition.
1312
1313   rm no longer gets a failed assertion under some unusual conditions.
1314
1315   rm no longer requires read access to the current directory.
1316
1317   "rm -r" would mistakenly fail to remove files under a directory
1318   for some types of errors (e.g., read-only file system, I/O error)
1319   when first encountering the directory.
1320
1321   "sort" fixes:
1322
1323     "sort -o -" now writes to a file named "-" instead of to standard
1324     output; POSIX requires this.
1325
1326     An unlikely race condition has been fixed where "sort" could have
1327     mistakenly removed a temporary file belonging to some other process.
1328
1329     "sort" no longer has O(N**2) behavior when it creates many temporary files.
1330
1331   tac can now handle regular, nonseekable files like Linux's
1332   /proc/modules.  Before, it would produce no output for such a file.
1333
1334   tac would exit immediately upon I/O or temp-file creation failure.
1335   Now it continues on, processing any remaining command line arguments.
1336
1337   "tail -f" no longer mishandles pipes and fifos.  With no operands,
1338   tail now ignores -f if standard input is a pipe, as POSIX requires.
1339   When conforming to POSIX 1003.2-1992, tail now supports the SUSv2 b
1340   modifier (e.g., "tail -10b file") and it handles some obscure cases
1341   more correctly, e.g., "tail +cl" now reads the file "+cl" rather
1342   than reporting an error, "tail -c file" no longer reports an error,
1343   and "tail - file" no longer reads standard input.
1344
1345   tee now exits when it gets a SIGPIPE signal, as POSIX requires.
1346   To get tee's old behavior, use the shell command "(trap '' PIPE; tee)".
1347   Also, "tee -" now writes to standard output instead of to a file named "-".
1348
1349   "touch -- MMDDhhmm[yy] file" is now equivalent to
1350   "touch MMDDhhmm[yy] file" even when conforming to pre-2001 POSIX.
1351
1352   tr no longer mishandles a second operand with leading "-".
1353
1354   who now prints user names in full instead of truncating them after 8 bytes.
1355
1356   The following commands now reject unknown options instead of
1357   accepting them as operands, so that users are properly warned that
1358   options may be added later.  Formerly they accepted unknown options
1359   as operands; e.g., "basename -a a" acted like "basename -- -a a".
1360
1361     basename dirname factor hostname link nohup sync unlink yes
1362
1363 ** New features
1364
1365   For efficiency, `sort -m' no longer copies input to a temporary file
1366   merely because the input happens to come from a pipe.  As a result,
1367   some relatively-contrived examples like `cat F | sort -m -o F - G'
1368   are no longer safe, as `sort' might start writing F before `cat' is
1369   done reading it.  This problem cannot occur unless `-m' is used.
1370
1371   When outside the default POSIX locale, the 'who' and 'pinky'
1372   commands now output time stamps like "2004-06-21 13:09" instead of
1373   the traditional "Jun 21 13:09".
1374
1375   pwd now works even when run from a working directory whose name
1376   is longer than PATH_MAX.
1377
1378   cp, install, ln, and mv have a new --no-target-directory (-T) option,
1379   and -t is now a short name for their --target-directory option.
1380
1381   cp -pu and mv -u (when copying) now don't bother to update the
1382   destination if the resulting time stamp would be no newer than the
1383   preexisting time stamp.  This saves work in the common case when
1384   copying or moving multiple times to the same destination in a file
1385   system with a coarse time stamp resolution.
1386
1387   cut accepts a new option, --complement, to complement the set of
1388   selected bytes, characters, or fields.
1389
1390   dd now also prints the number of bytes transferred, the time, and the
1391   transfer rate.  The new "status=noxfer" operand suppresses this change.
1392
1393   dd has new conversions for the conv= option:
1394
1395     nocreat   do not create the output file
1396     excl      fail if the output file already exists
1397     fdatasync physically write output file data before finishing
1398     fsync     likewise, but also write metadata
1399
1400   dd has new iflag= and oflag= options with the following flags:
1401
1402     append    append mode (makes sense for output file only)
1403     direct    use direct I/O for data
1404     dsync     use synchronized I/O for data
1405     sync      likewise, but also for metadata
1406     nonblock  use non-blocking I/O
1407     nofollow  do not follow symlinks
1408     noctty    do not assign controlling terminal from file
1409
1410   stty now provides support (iutf8) for setting UTF-8 input mode.
1411
1412   With stat, a specified format is no longer automatically newline terminated.
1413   If you want a newline at the end of your output, append `\n' to the format
1414   string.
1415
1416   'df', 'du', and 'ls' now take the default block size from the
1417   BLOCKSIZE environment variable if the BLOCK_SIZE, DF_BLOCK_SIZE,
1418   DU_BLOCK_SIZE, and LS_BLOCK_SIZE environment variables are not set.
1419   Unlike the other variables, though, BLOCKSIZE does not affect
1420   values like 'ls -l' sizes that are normally displayed as bytes.
1421   This new behavior is for compatibility with BSD.
1422
1423   du accepts a new option --files0-from=FILE, where FILE contains a
1424   list of NUL-terminated file names.
1425
1426   Date syntax as used by date -d, date -f, and touch -d has been
1427   changed as follows:
1428
1429     Dates like `January 32' with out-of-range components are now rejected.
1430
1431     Dates can have fractional time stamps like 2004-02-27 14:19:13.489392193.
1432
1433     Dates can be entered via integer counts of seconds since 1970 when
1434     prefixed by `@'.  For example, `@321' represents 1970-01-01 00:05:21 UTC.
1435
1436     Time zone corrections can now separate hours and minutes with a colon,
1437     and can follow standard abbreviations like "UTC".  For example,
1438     "UTC +0530" and "+05:30" are supported, and are both equivalent to "+0530".
1439
1440     Date values can now have leading TZ="..." assignments that override
1441     the environment only while that date is being processed.  For example,
1442     the following shell command converts from Paris to New York time:
1443
1444       TZ="America/New_York" date --date='TZ="Europe/Paris" 2004-10-31 06:30'
1445
1446   `date' has a new option --iso-8601=ns that outputs
1447   nanosecond-resolution time stamps.
1448
1449   echo -e '\xHH' now outputs a byte whose hexadecimal value is HH,
1450   for compatibility with bash.
1451
1452   ls now exits with status 1 on minor problems, 2 if serious trouble.
1453
1454   ls has a new --hide=PATTERN option that behaves like
1455   --ignore=PATTERN, except that it is overridden by -a or -A.
1456   This can be useful for aliases, e.g., if lh is an alias for
1457   "ls --hide='*~'", then "lh -A" lists the file "README~".
1458
1459   In the following cases POSIX allows the default GNU behavior,
1460   so when POSIXLY_CORRECT is set:
1461
1462     false, printf, true, unlink, and yes all support --help and --option.
1463     ls supports TABSIZE.
1464     pr no longer depends on LC_TIME for the date format in non-POSIX locales.
1465     printf supports \u, \U, \x.
1466     tail supports two or more files when using the obsolete option syntax.
1467
1468   The usual `--' operand is now supported by chroot, hostid, hostname,
1469   pwd, sync, and yes.
1470
1471   `od' now conforms to POSIX better, and is more compatible with BSD:
1472
1473     The older syntax "od [-abcdfilosx]... [FILE] [[+]OFFSET[.][b]]" now works
1474     even without --traditional.  This is a change in behavior if there
1475     are one or two operands and the last one begins with +, or if
1476     there are two operands and the latter one begins with a digit.
1477     For example, "od foo 10" and "od +10" now treat the last operand as
1478     an offset, not as a file name.
1479
1480     -h is no longer documented, and may be withdrawn in future versions.
1481     Use -x or -t x2 instead.
1482
1483     -i is now equivalent to -t dI (not -t d2), and
1484     -l is now equivalent to -t dL (not -t d4).
1485
1486     -s is now equivalent to -t d2.  The old "-s[NUM]" or "-s NUM"
1487     option has been renamed to "-S NUM".
1488
1489     The default output format is now -t oS, not -t o2, i.e., short int
1490     rather than two-byte int.  This makes a difference only on hosts like
1491     Cray systems where the C short int type requires more than two bytes.
1492
1493   readlink accepts new options: --canonicalize-existing (-e)
1494   and --canonicalize-missing (-m).
1495
1496   The stat option --filesystem has been renamed to --file-system, for
1497   consistency with POSIX "file system" and with cp and du --one-file-system.
1498
1499 ** Removed features
1500
1501   md5sum and sha1sum's undocumented --string option has been removed.
1502
1503   tail's undocumented --max-consecutive-size-changes option has been removed.
1504
1505 * Major changes in release 5.2.1 (2004-03-12) [stable]
1506
1507 ** Bug fixes
1508
1509   mv could mistakenly fail to preserve hard links when moving two
1510   or more arguments between partitions.
1511
1512   `cp --sparse=always F /dev/hdx' no longer tries to use lseek to create
1513   holes in the destination.
1514
1515   nohup now sets the close-on-exec flag for its copy of the stderr file
1516   descriptor.  This avoids some nohup-induced hangs.  For example, before
1517   this change, if you ran `ssh localhost', then `nohup sleep 600 </dev/null &',
1518   and then exited that remote shell, the ssh session would hang until the
1519   10-minute sleep terminated.  With the fixed nohup, the ssh session
1520   terminates immediately.
1521
1522   `expr' now conforms to POSIX better:
1523
1524     Integers like -0 and 00 are now treated as zero.
1525
1526     The `|' operator now returns 0, not its first argument, if both
1527     arguments are null or zero.  E.g., `expr "" \| ""' now returns 0,
1528     not the empty string.
1529
1530     The `|' and `&' operators now use short-circuit evaluation, e.g.,
1531     `expr 1 \| 1 / 0' no longer reports a division by zero.
1532
1533 ** New features
1534
1535   `chown user.group file' now has its traditional meaning even when
1536   conforming to POSIX 1003.1-2001, so long as no user has a name
1537   containing `.' that happens to equal `user.group'.
1538
1539
1540 * Major changes in release 5.2.0 (2004-02-19) [stable]
1541
1542 ** Bug fixes
1543
1544   none
1545
1546
1547 * Major changes in release 5.1.3 (2004-02-08): candidate to become stable 5.2.0
1548
1549 ** Bug fixes
1550
1551   `cp -d' now works as required even on systems like OSF V5.1 that
1552   declare stat and lstat as `static inline' functions.
1553
1554   time stamps output by stat now include actual fractional seconds,
1555   when available -- or .0000000 for files without that information.
1556
1557   seq no longer infloops when printing 2^31 or more numbers.
1558   For reference, seq `echo 2^31|bc` > /dev/null takes about one hour
1559   on a 1.6 GHz Athlon 2000 XP.  Now it can output 2^53-1 numbers before
1560   misbehaving.
1561
1562 * Major changes in release 5.1.2 (2004-01-25):
1563
1564 ** Bug fixes
1565
1566   rmdir -p exits with status 1 on error; formerly it sometimes exited
1567   with status 0 when given more than one argument.
1568
1569   nohup now always exits with status 127 when it finds an error,
1570   as POSIX requires; formerly it sometimes exited with status 1.
1571
1572   Several programs (including cut, date, dd, env, hostname, nl, pr,
1573   stty, and tr) now always exit with status 1 when they find an error;
1574   formerly they sometimes exited with status 2.
1575
1576   factor no longer reports a usage error if stdin has the wrong format.
1577
1578   paste no longer infloops on ppc systems (bug introduced in 5.1.1)
1579
1580
1581 * Major changes in release 5.1.1 (2004-01-17):
1582
1583 ** Configuration option
1584
1585   You can select the default level of POSIX conformance at configure-time,
1586   e.g., by ./configure DEFAULT_POSIX2_VERSION=199209
1587
1588 ** Bug fixes
1589
1590   fold -s works once again on systems with differing sizes for int
1591   and size_t (bug introduced in 5.1.0)
1592
1593 ** New features
1594
1595   touch -r now specifies the origin for any relative times in the -d
1596   operand, if both options are given.  For example, "touch -r FOO -d
1597   '-5 seconds' BAR" sets BAR's modification time to be five seconds
1598   before FOO's.
1599
1600   join: The obsolete options "-j1 FIELD", "-j2 FIELD", and
1601   "-o LIST1 LIST2..." are no longer supported on POSIX 1003.1-2001 systems.
1602   Portable scripts should use "-1 FIELD", "-2 FIELD", and
1603   "-o LIST1,LIST2..." respectively.  If join was compiled on a
1604   POSIX 1003.1-2001 system, you may enable the old behavior
1605   by setting _POSIX2_VERSION=199209 in your environment.
1606   [This change was reverted in coreutils 5.3.1.]
1607
1608
1609 * Major changes in release 5.1.0 (2003-12-21):
1610
1611 ** New features
1612
1613   chgrp, chmod, and chown can now process (with -R) hierarchies of virtually
1614   unlimited depth.  Before, they would fail to operate on any file they
1615   encountered with a relative name of length PATH_MAX (often 4096) or longer.
1616
1617   chgrp, chmod, chown, and rm accept the new options:
1618   --preserve-root, --no-preserve-root (default)
1619
1620   chgrp and chown now accept POSIX-mandated -L, -H, and -P options
1621
1622   du can now process hierarchies of virtually unlimited depth.
1623   Before, du was limited by the user's stack size and it would get a
1624   stack overflow error (often a segmentation fault) when applied to
1625   a hierarchy of depth around 30,000 or larger.
1626
1627   du works even when run from an inaccessible directory
1628
1629   du -D now dereferences all symlinks specified on the command line,
1630   not just the ones that reference directories
1631
1632   du now accepts -P (--no-dereference), for compatibility with du
1633   of NetBSD and for consistency with e.g., chown and chgrp
1634
1635   du's -H option will soon have the meaning required by POSIX
1636   (--dereference-args, aka -D) rather then the current meaning of --si.
1637   Now, using -H elicits a warning to that effect.
1638
1639   When given -l and similar options, ls now adjusts the output column
1640   widths to fit the data, so that output lines are shorter and have
1641   columns that line up better.  This may adversely affect shell
1642   scripts that expect fixed-width columns, but such shell scripts were
1643   not portable anyway, even with old GNU ls where the columns became
1644   ragged when a datum was too wide.
1645
1646   du accepts a new option, -0/--null, to make it produce NUL-terminated
1647   output lines
1648
1649 ** Bug fixes
1650
1651   printf, seq, tail, and sleep now parse floating-point operands
1652   and options in the C locale.  POSIX requires this for printf.
1653
1654   od -c -w9999999 no longer segfaults
1655
1656   csplit no longer reads from freed memory (dumping core on some systems)
1657
1658   csplit would mistakenly exhaust virtual memory in some cases
1659
1660   ls --width=N (for very large N) is no longer subject to an address
1661   arithmetic bug that could result in bounds violations.
1662
1663   ls --width=N (with -x or -C) no longer allocates more space
1664   (potentially much more) than necessary for a given directory.
1665
1666   dd `unblock' and `sync' may now be combined (e.g., dd conv=unblock,sync)
1667
1668 * Major changes in release 5.0.91 (2003-09-08):
1669
1670 ** New features
1671
1672   date accepts a new option --rfc-2822, an alias for --rfc-822.
1673
1674   split accepts a new option -d or --numeric-suffixes.
1675
1676   cp, install, mv, and touch now preserve microsecond resolution on
1677   file timestamps, on platforms that have the 'utimes' system call.
1678   Unfortunately there is no system call yet to preserve file
1679   timestamps to their full nanosecond resolution; microsecond
1680   resolution is the best we can do right now.
1681
1682   sort now supports the zero byte (NUL) as a field separator; use -t '\0'.
1683   The -t '' option, which formerly had no effect, is now an error.
1684
1685   sort option order no longer matters for the options -S, -d, -i, -o, and -t.
1686   Stronger options override weaker, and incompatible options are diagnosed.
1687
1688   `sha1sum --check' now accepts the BSD format for SHA1 message digests
1689   in addition to the BSD format for MD5 ones.
1690
1691   who -l now means `who --login', not `who --lookup', per POSIX.
1692   who's -l option has been eliciting an unconditional warning about
1693   this impending change since sh-utils-2.0.12 (April 2002).
1694
1695 ** Bug fixes
1696
1697   Mistakenly renaming a file onto itself, e.g., via `mv B b' when `B' is
1698   the same directory entry as `b' no longer destroys the directory entry
1699   referenced by both `b' and `B'.  Note that this would happen only on
1700   file systems like VFAT where two different names may refer to the same
1701   directory entry, usually due to lower->upper case mapping of file names.
1702   Now, the above can happen only on file systems that perform name mapping and
1703   that support hard links (stat.st_nlink > 1).  This mitigates the problem
1704   in two ways: few file systems appear to be affected (hpfs and ntfs are),
1705   when the bug is triggered, mv no longer removes the last hard link to a file.
1706   *** ATTENTION ***: if you know how to distinguish the following two cases
1707   without writing to the file system in question, please let me know:
1708   1) B and b refer to the same directory entry on a file system like NTFS
1709        (B may well have a link count larger than 1)
1710   2) B and b are hard links to the same file
1711
1712   stat no longer overruns a buffer for format strings ending in `%'
1713
1714   fold -s -wN would infloop for N < 8 with TABs in the input.
1715   E.g., this would not terminate: printf 'a\t' | fold -w2 -s
1716
1717   `split -a0', although of questionable utility, is accepted once again.
1718
1719   `df DIR' used to hang under some conditions on OSF/1 5.1.  Now it doesn't.
1720
1721   seq's --width (-w) option now works properly even when the endpoint
1722   requiring the larger width is negative and smaller than the other endpoint.
1723
1724   seq's default step is 1, even if LAST < FIRST.
1725
1726   paste no longer mistakenly outputs 0xFF bytes for a nonempty input file
1727   without a trailing newline.
1728
1729   `tail -n0 -f FILE' and `tail -c0 -f FILE' no longer perform what amounted
1730   to a busy wait, rather than sleeping between iterations.
1731
1732   tail's long-undocumented --allow-missing option now elicits a warning
1733
1734
1735 * Major changes in release 5.0.90 (2003-07-29):
1736
1737 ** New features
1738
1739   sort is now up to 30% more CPU-efficient in some cases
1740
1741   `test' is now more compatible with Bash and POSIX:
1742
1743     `test -t', `test --help', and `test --version' now silently exit
1744     with status 0.  To test whether standard output is a terminal, use
1745     `test -t 1'.  To get help and version info for `test', use
1746     `[ --help' and `[ --version'.
1747
1748     `test' now exits with status 2 (not 1) if there is an error.
1749
1750   wc count field widths now are heuristically adjusted depending on the input
1751   size, if known.  If only one count is printed, it is guaranteed to
1752   be printed without leading spaces.
1753
1754   Previously, wc did not align the count fields if POSIXLY_CORRECT was set,
1755   but POSIX did not actually require this undesirable behavior, so it
1756   has been removed.
1757
1758 ** Bug fixes
1759
1760   kill no longer tries to operate on argv[0] (introduced in 5.0.1)
1761   Why wasn't this noticed?  Although many tests use kill, none of
1762   them made an effort to avoid using the shell's built-in kill.
1763
1764   `[' invoked with no arguments no longer evokes a segfault
1765
1766   rm without --recursive (aka -r or -R) no longer prompts regarding
1767   unwritable directories, as required by POSIX.
1768
1769   uniq -c now uses a SPACE, not a TAB between the count and the
1770   corresponding line, as required by POSIX.
1771
1772   expr now exits with status 2 if the expression is syntactically valid,
1773   and with status 3 if an error occurred.  POSIX requires this.
1774
1775   expr now reports trouble if string comparison fails due to a collation error.
1776
1777   split now generates suffixes properly on EBCDIC hosts.
1778
1779   split -a0 now works, as POSIX requires.
1780
1781   `sort --version' and `sort --help' fail, as they should
1782   when their output is redirected to /dev/full.
1783
1784   `su --version > /dev/full' now fails, as it should.
1785
1786 ** Fewer arbitrary limitations
1787
1788   cut requires 97% less memory when very large field numbers or
1789   byte offsets are specified.
1790
1791
1792 * Major changes in release 5.0.1 (2003-07-15):
1793
1794 ** New programs
1795 - new program: `[' (much like `test')
1796
1797 ** New features
1798 - head now accepts --lines=-N (--bytes=-N) to print all but the
1799   N lines (bytes) at the end of the file
1800 - md5sum --check now accepts the output of the BSD md5sum program, e.g.,
1801   MD5 (f) = d41d8cd98f00b204e9800998ecf8427e
1802 - date -d DATE can now parse a DATE string like May-23-2003
1803 - chown: `.' is no longer recognized as a separator in the OWNER:GROUP
1804   specifier on POSIX 1003.1-2001 systems.  If chown *was not* compiled
1805   on such a system, then it still accepts `.', by default.  If chown
1806   was compiled on a POSIX 1003.1-2001 system, then you may enable the
1807   old behavior by setting _POSIX2_VERSION=199209 in your environment.
1808 - chown no longer tries to preserve set-user-ID and set-group-ID bits;
1809   on some systems, the chown syscall resets those bits, and previous
1810   versions of the chown command would call chmod to restore the original,
1811   pre-chown(2) settings, but that behavior is problematic.
1812   1) There was a window whereby a malicious user, M, could subvert a
1813   chown command run by some other user and operating on files in a
1814   directory where M has write access.
1815   2) Before (and even now, on systems with chown(2) that doesn't reset
1816   those bits), an unwary admin. could use chown unwittingly to create e.g.,
1817   a set-user-ID root copy of /bin/sh.
1818
1819 ** Bug fixes
1820 - chown --dereference no longer leaks a file descriptor per symlink processed
1821 - `du /' once again prints the `/' on the last line
1822 - split's --verbose option works once again [broken in 4.5.10 and 5.0]
1823 - tail -f is no longer subject to a race condition that could make it
1824   delay displaying the last part of a file that had stopped growing.  That
1825   bug could also make tail -f give an unwarranted `file truncated' warning.
1826 - du no longer runs out of file descriptors unnecessarily
1827 - df and `readlink --canonicalize' no longer corrupt the heap on
1828   non-glibc, non-solaris systems
1829 - `env -u UNSET_VARIABLE' no longer dumps core on non-glibc systems
1830 - readlink's --canonicalize option now works on systems like Solaris that
1831   lack the canonicalize_file_name function but do have resolvepath.
1832 - mv now removes `a' in this example on all systems: touch a; ln a b; mv a b
1833   This behavior is contrary to POSIX (which requires that the mv command do
1834   nothing and exit successfully), but I suspect POSIX will change.
1835 - date's %r format directive now honors locale settings
1836 - date's `-' (no-pad) format flag now affects the space-padded-by-default
1837   conversion specifiers, %e, %k, %l
1838 - fmt now diagnoses invalid obsolescent width specifications like `-72x'
1839 - fmt now exits nonzero when unable to open an input file
1840 - tsort now fails when given an odd number of input tokens,
1841   as required by POSIX.  Before, it would act as if the final token
1842   appeared one additional time.
1843
1844 ** Fewer arbitrary limitations
1845 - tail's byte and line counts are no longer limited to OFF_T_MAX.
1846   Now the limit is UINTMAX_MAX (usually 2^64).
1847 - split can now handle --bytes=N and --lines=N with N=2^31 or more.
1848
1849 ** Portability
1850 - `kill -t' now prints signal descriptions (rather than `?') on systems
1851   like Tru64 with __sys_siglist but no strsignal function.
1852 - stat.c now compiles on Ultrix systems
1853 - sleep now works on AIX systems that lack support for clock_gettime
1854 - rm now works around Darwin6.5's broken readdir function
1855   Before `rm -rf DIR' would fail to remove all files in DIR
1856   if there were more than 338.
1857
1858 * Major changes in release 5.0 (2003-04-02):
1859 - false --help now exits nonzero
1860
1861 [4.5.12]
1862 * printf no longer treats \x specially when POSIXLY_CORRECT is set
1863 * printf avoids buffer overrun with format ending in a backslash and
1864 * printf avoids buffer overrun with incomplete conversion specifier
1865 * printf accepts multiple flags in a single conversion specifier
1866
1867 [4.5.11]
1868 * seq no longer requires that a field width be specified
1869 * seq no longer fails when given a field width of `0'
1870 * seq now accepts ` ' and `'' as valid format flag characters
1871 * df now shows a HOSTNAME: prefix for each remote-mounted file system on AIX 5.1
1872 * portability tweaks for HP-UX, AIX 5.1, DJGPP
1873
1874 [4.5.10]
1875 * printf no longer segfaults for a negative field width or precision
1876 * shred now always enables --exact for non-regular files
1877 * du no longer lists hard-linked files more than once
1878 * du no longer dumps core on some systems due to `infinite' recursion
1879   via nftw's use of the buggy replacement function in getcwd.c
1880 * portability patches for a few vendor compilers and 64-bit systems
1881 * du -S *really* now works like it did before the change in 4.5.5
1882
1883 [4.5.9]
1884 * du no longer truncates file sizes or sums to fit in 32-bit size_t
1885 * work around Linux kernel bug in getcwd (fixed in 2.4.21-pre4), so that pwd
1886   now fails if the name of the working directory is so long that getcwd
1887   truncates it.  Before it would print the truncated name and exit successfully.
1888 * `df /some/mount-point' no longer hangs on a GNU libc system when another
1889   hard-mounted NFS file system (preceding /some/mount-point in /proc/mounts)
1890   is inaccessible.
1891 * rm -rf now gives an accurate diagnostic when failing to remove a file
1892   under certain unusual conditions
1893 * mv and `cp --preserve=links' now preserve multiple hard links even under
1894   certain unusual conditions where they used to fail
1895
1896 [4.5.8]
1897 * du -S once again works like it did before the change in 4.5.5
1898 * stat accepts a new file format, %B, for the size of each block reported by %b
1899 * du accepts new option: --apparent-size
1900 * du --bytes (-b) works the same way it did in fileutils-3.16 and before
1901 * du reports proper sizes for directories (not zero) (broken in 4.5.6 or 4.5.7)
1902 * df now always displays under `Filesystem', the device file name
1903   corresponding to the listed mount point.  Before, for a block- or character-
1904   special file command line argument, df would display that argument.  E.g.,
1905   `df /dev/hda' would list `/dev/hda' as the `Filesystem', rather than say
1906   /dev/hda3 (the device on which `/' is mounted), as it does now.
1907 * test now works properly when invoked from a set user ID or set group ID
1908   context and when testing access to files subject to alternate protection
1909   mechanisms.  For example, without this change, a set-UID program that invoked
1910   `test -w F' (to see if F is writable) could mistakenly report that it *was*
1911   writable, even though F was on a read-only file system, or F had an ACL
1912   prohibiting write access, or F was marked as immutable.
1913
1914 [4.5.7]
1915 * du would fail with more than one DIR argument when any but the last did not
1916   contain a slash (due to a bug in ftw.c)
1917
1918 [4.5.6]
1919 * du no longer segfaults on Solaris systems (fixed heap-corrupting bug in ftw.c)
1920 * du --exclude=FILE works once again (this was broken by the rewrite for 4.5.5)
1921 * du no longer gets a failed assertion for certain hierarchy lay-outs
1922   involving hard-linked directories
1923 * `who -r' no longer segfaults when using non-C-locale messages
1924 * df now displays a mount point (usually `/') for non-mounted
1925   character-special and block files
1926
1927 [4.5.5]
1928 * ls --dired produces correct byte offset for file names containing
1929   nonprintable characters in a multibyte locale
1930 * du has been rewritten to use a variant of GNU libc's ftw.c
1931 * du now counts the space associated with a directory's directory entry,
1932   even if it cannot list or chdir into that subdirectory.
1933 * du -S now includes the st_size of each entry corresponding to a subdirectory
1934 * rm on FreeBSD can once again remove directories from NFS-mounted file systems
1935 * ls has a new option --dereference-command-line-symlink-to-dir, which
1936   corresponds to the new default behavior when none of -d, -l -F, -H, -L
1937   has been specified.
1938 * ls dangling-symlink now prints `dangling-symlink'.
1939   Before, it would fail with `no such file or directory'.
1940 * ls -s symlink-to-non-dir and ls -i symlink-to-non-dir now print
1941   attributes of `symlink', rather than attributes of their referents.
1942 * Fix a bug introduced in 4.5.4 that made it so that ls --color would no
1943   longer highlight the names of files with the execute bit set when not
1944   specified on the command line.
1945 * shred's --zero (-z) option no longer gobbles up any following argument.
1946   Before, `shred --zero file' would produce `shred: missing file argument',
1947   and worse, `shred --zero f1 f2 ...' would appear to work, but would leave
1948   the first file untouched.
1949 * readlink: new program
1950 * cut: new feature: when used to select ranges of byte offsets (as opposed
1951   to ranges of fields) and when --output-delimiter=STRING is specified,
1952   output STRING between ranges of selected bytes.
1953 * rm -r can no longer be tricked into mistakenly reporting a cycle.
1954 * when rm detects a directory cycle, it no longer aborts the entire command,
1955   but rather merely stops processing the affected command line argument.
1956
1957 [4.5.4]
1958 * cp no longer fails to parse options like this: --preserve=mode,ownership
1959 * `ls --color -F symlink-to-dir' works properly
1960 * ls is much more efficient on directories with valid dirent.d_type.
1961 * stty supports all baud rates defined in linux-2.4.19.
1962 * `du symlink-to-dir/' would improperly remove the trailing slash
1963 * `du ""' would evoke a bounds violation.
1964 * In the unlikely event that running `du /' resulted in `stat ("/", ...)'
1965   failing, du would give a diagnostic about `' (empty string) rather than `/'.
1966 * printf: a hexadecimal escape sequence has at most two hex. digits, not three.
1967 * The following features have been added to the --block-size option
1968   and similar environment variables of df, du, and ls.
1969   - A leading "'" generates numbers with thousands separators.
1970     For example:
1971       $ ls -l --block-size="'1" file
1972       -rw-rw-r--    1 eggert   src      47,483,707 Sep 24 23:40 file
1973   - A size suffix without a leading integer generates a suffix in the output.
1974     For example:
1975       $ ls -l --block-size="K"
1976       -rw-rw-r--    1 eggert   src          46371K Sep 24 23:40 file
1977 * ls's --block-size option now affects file sizes in all cases, not
1978   just for --block-size=human-readable and --block-size=si.  Fractional
1979   sizes are now always rounded up, for consistency with df and du.
1980 * df now displays the block size using powers of 1000 if the requested
1981   block size seems to be a multiple of a power of 1000.
1982 * nl no longer gets a segfault when run like this `yes|nl -s%n'
1983
1984 [4.5.3]
1985 * du --dereference-args (-D) no longer fails in certain cases
1986 * `ln --target-dir=DIR' no longer fails when given a single argument
1987
1988 [4.5.2]
1989 * `rm -i dir' (without --recursive (-r)) no longer recurses into dir
1990 * `tail -c N FILE' now works with files of size >= 4GB
1991 * `mkdir -p' can now create very deep (e.g. 40,000-component) directories
1992 * rmdir -p dir-with-trailing-slash/ no longer fails
1993 * printf now honors the `--' command line delimiter
1994 * od's 8-byte formats x8, o8, and u8 now work
1995 * tail now accepts fractional seconds for its --sleep-interval=S (-s) option
1996
1997 [4.5.1]
1998 * du and ls now report sizes of symbolic links (before they'd always report 0)
1999 * uniq now obeys the LC_COLLATE locale, as per POSIX 1003.1-2001 TC1.
2000
2001 ========================================================================
2002 Here are the NEWS entries made from fileutils-4.1 until the
2003 point at which the packages merged to form the coreutils:
2004
2005 [4.1.11]
2006 * `rm symlink-to-unwritable' doesn't prompt [introduced in 4.1.10]
2007 [4.1.10]
2008 * rm once again gives a reasonable diagnostic when failing to remove a file
2009     owned by someone else in a sticky directory [introduced in 4.1.9]
2010 * df now rounds all quantities up, as per POSIX.
2011 * New ls time style: long-iso, which generates YYYY-MM-DD HH:MM.
2012 * Any time style can be preceded by "posix-"; this causes "ls" to
2013   use traditional timestamp format when in the POSIX locale.
2014 * The default time style is now posix-long-iso instead of posix-iso.
2015   Set TIME_STYLE="posix-iso" to revert to the behavior of 4.1.1 thru 4.1.9.
2016 * `rm dangling-symlink' doesn't prompt [introduced in 4.1.9]
2017 * stat: remove support for --secure/-s option and related %S and %C format specs
2018 * stat: rename --link/-l to --dereference/-L.
2019     The old options will continue to work for a while.
2020 [4.1.9]
2021 * rm can now remove very deep hierarchies, in spite of any limit on stack size
2022 * new programs: link, unlink, and stat
2023 * New ls option: --author (for the Hurd).
2024 * `touch -c no-such-file' no longer fails, per POSIX
2025 [4.1.8]
2026 * mv no longer mistakenly creates links to preexisting destination files
2027     that aren't moved
2028 [4.1.7]
2029 * rm: close a hole that would allow a running rm process to be subverted
2030 [4.1.6]
2031 * New cp option: --copy-contents.
2032 * cp -r is now equivalent to cp -R.  Use cp -R -L --copy-contents to get the
2033   traditional (and rarely desirable) cp -r behavior.
2034 * ls now accepts --time-style=+FORMAT, where +FORMAT works like date's format
2035 * The obsolete usage `touch [-acm] MMDDhhmm[YY] FILE...' is no longer
2036   supported on systems conforming to POSIX 1003.1-2001.  Use touch -t instead.
2037 * cp and inter-partition mv no longer give a misleading diagnostic in some
2038     unusual cases
2039 [4.1.5]
2040 * cp -r no longer preserves symlinks
2041 * The block size notation is now compatible with SI and with IEC 60027-2.
2042   For example, --block-size=1MB now means --block-size=1000000,
2043   whereas --block-size=1MiB now means --block-size=1048576.
2044   A missing `B' (e.g. `1M') has the same meaning as before.
2045   A trailing `B' now means decimal, not binary; this is a silent change.
2046   The nonstandard `D' suffix (e.g. `1MD') is now obsolescent.
2047 * -H or --si now outputs the trailing 'B', for consistency with the above.
2048 * Programs now output trailing 'K' (not 'k') to mean 1024, as per IEC 60027-2.
2049 * New df, du short option -B is short for --block-size.
2050 * You can omit an integer `1' before a block size suffix,
2051   e.g. `df -BG' is equivalent to `df -B 1G' and to `df --block-size=1G'.
2052 * The following options are now obsolescent, as their names are
2053   incompatible with IEC 60027-2:
2054    df, du: -m or --megabytes (use -BM or --block-size=1M)
2055    df, du, ls: --kilobytes (use --block-size=1K)
2056 [4.1.4]
2057 * df --local no longer lists smbfs file systems whose name starts with //
2058 * dd now detects the Linux/tape/lseek bug at run time and warns about it.
2059 [4.1.3]
2060 * ls -R once again outputs a blank line between per-directory groups of files.
2061     This was broken by the cycle-detection change in 4.1.1.
2062 * dd once again uses `lseek' on character devices like /dev/mem and /dev/kmem.
2063     On systems with the linux kernel (at least up to 2.4.16), dd must still
2064     resort to emulating `skip=N' behavior using reads on tape devices, because
2065     lseek has no effect, yet appears to succeed.  This may be a kernel bug.
2066 [4.1.2]
2067 * cp no longer fails when two or more source files are the same;
2068     now it just gives a warning and doesn't copy the file the second time.
2069     E.g., cp a a d/ produces this:
2070     cp: warning: source file `a' specified more than once
2071 * chmod would set the wrong bit when given symbolic mode strings like
2072     these: g=o, o=g, o=u.  E.g., `chmod a=,o=w,ug=o f' would give a mode
2073     of --w-r---w- rather than --w--w--w-.
2074 [4.1.1]
2075 * mv (likewise for cp), now fails rather than silently clobbering one of
2076     the source files in the following example:
2077     rm -rf a b c; mkdir a b c; touch a/f b/f; mv a/f b/f c
2078 * ls -R detects directory cycles, per POSIX.  It warns and doesn't infloop.
2079 * cp's -P option now means the same as --no-dereference, per POSIX.
2080     Use --parents to get the old meaning.
2081 * When copying with the -H and -L options, cp can preserve logical
2082     links between source files with --preserve=links
2083 * cp accepts new options:
2084     --preserve[={mode,ownership,timestamps,links,all}]
2085     --no-preserve={mode,ownership,timestamps,links,all}
2086 * cp's -p and --preserve options remain unchanged and are equivalent
2087     to `--preserve=mode,ownership,timestamps'
2088 * mv and cp accept a new option: --reply={yes,no,query};  provides a consistent
2089     mechanism to control whether one is prompted about certain existing
2090     destination files.  Note that cp's and mv's -f options don't have the
2091     same meaning: cp's -f option no longer merely turns off `-i'.
2092 * remove portability limitations (e.g., PATH_MAX on the Hurd, fixes for
2093     64-bit systems)
2094 * mv now prompts before overwriting an existing, unwritable destination file
2095     when stdin is a tty, unless --force (-f) is specified, as per POSIX.
2096 * mv: fix the bug whereby `mv -uf source dest' would delete source,
2097     even though it's older than dest.
2098 * chown's --from=CURRENT_OWNER:CURRENT_GROUP option now works
2099 * cp now ensures that the set-user-ID and set-group-ID bits are cleared for
2100     the destination file when when copying and not preserving permissions.
2101 * `ln -f --backup k k' gives a clearer diagnostic
2102 * ls no longer truncates user names or group names that are longer
2103     than 8 characters.
2104 * ls's new --dereference-command-line option causes it to dereference
2105   symbolic links on the command-line only.  It is the default unless
2106   one of the -d, -F, or -l options are given.
2107 * ls -H now means the same as ls --dereference-command-line, as per POSIX.
2108 * ls -g now acts like ls -l, except it does not display owner, as per POSIX.
2109 * ls -n now implies -l, as per POSIX.
2110 * ls can now display dates and times in one of four time styles:
2111
2112   - The `full-iso' time style gives full ISO-style time stamps like
2113     `2001-05-14 23:45:56.477817180 -0700'.
2114   - The 'iso' time style gives ISO-style time stamps like '2001-05-14 '
2115     and '05-14 23:45'.
2116   - The 'locale' time style gives locale-dependent time stamps like
2117     'touko  14  2001' and 'touko  14 23:45' (in a Finnish locale).
2118   - The 'posix-iso' time style gives traditional POSIX-locale
2119     time stamps like 'May 14  2001' and 'May 14 23:45' unless the user
2120     specifies a non-POSIX locale, in which case it uses ISO-style dates.
2121     This is the default.
2122
2123   You can specify a time style with an option like --time-style='iso'
2124   or with an environment variable like TIME_STYLE='iso'.  GNU Emacs 21
2125   and later can parse ISO dates, but older Emacs versions cannot, so
2126   if you are using an older version of Emacs outside the default POSIX
2127   locale, you may need to set TIME_STYLE="locale".
2128
2129 * --full-time is now an alias for "-l --time-style=full-iso".
2130
2131
2132 ========================================================================
2133 Here are the NEWS entries made from sh-utils-2.0 until the
2134 point at which the packages merged to form the coreutils:
2135
2136  [2.0.15]
2137 * date no longer accepts e.g., September 31 in the MMDDhhmm syntax
2138 * fix a bug in this package's .m4 files and in configure.ac
2139  [2.0.14]
2140 * nohup's behavior is changed as follows, to conform to POSIX 1003.1-2001:
2141   - nohup no longer adjusts scheduling priority; use "nice" for that.
2142   - nohup now redirects stderr to stdout, if stderr is not a terminal.
2143   - nohup exit status is now 126 if command was found but not invoked,
2144     127 if nohup failed or if command was not found.
2145  [2.0.13]
2146 * uname and uptime work better on *BSD systems
2147 * pathchk now exits nonzero for a path with a directory component
2148     that specifies a non-directory
2149  [2.0.12]
2150 * kill: new program
2151 * who accepts new options: --all (-a), --boot (-b), --dead (-d), --login,
2152    --process (-p), --runlevel (-r), --short (-s), --time (-t), --users (-u).
2153    The -u option now produces POSIX-specified results and is the same as
2154    the long option `--users'.  --idle is no longer the same as -u.
2155 * The following changes apply on systems conforming to POSIX 1003.1-2001:
2156    - `date -I' is no longer supported.  Instead, use `date --iso-8601'.
2157    - `nice -NUM' is no longer supported.  Instead, use `nice -n NUM'.
2158   [This change was reverted in coreutils 5.3.1.]
2159 * New 'uname' options -i or --hardware-platform, and -o or --operating-system.
2160    'uname -a' now outputs -i and -o information at the end.
2161    New uname option --kernel-version is an alias for -v.
2162    Uname option --release has been renamed to --kernel-release,
2163    and --sysname has been renamed to --kernel-name;
2164    the old options will work for a while, but are no longer documented.
2165 * 'expr' now uses the LC_COLLATE locale for string comparison, as per POSIX.
2166 * 'expr' now requires '+' rather than 'quote' to quote tokens;
2167     this removes an incompatibility with POSIX.
2168 * date -d 'last friday' would print a date/time that was one hour off
2169     (e.g., 23:00 on *thursday* rather than 00:00 of the preceding friday)
2170     when run such that the current time and the target date/time fall on
2171     opposite sides of a daylight savings time transition.
2172     This problem arose only with relative date strings like `last monday'.
2173     It was not a problem with strings that include absolute dates.
2174 * factor is twice as fast, for large numbers
2175  [2.0.11]
2176 * setting the date now works properly, even when using -u
2177 * `date -f - < /dev/null' no longer dumps core
2178 * some DOS/Windows portability changes
2179  [2.0j]
2180 * `date -d DATE' now parses certain relative DATEs correctly
2181  [2.0i]
2182 * fixed a bug introduced in 2.0h that made many programs fail with a
2183  `write error' when invoked with the --version option
2184  [2.0h]
2185 * all programs fail when printing --help or --version output to a full device
2186 * printf exits nonzero upon write failure
2187 * yes now detects and terminates upon write failure
2188 * date --rfc-822 now always emits day and month names from the `C' locale
2189 * portability tweaks for Solaris8, Ultrix, and DOS
2190  [2.0g]
2191 * date now handles two-digit years with leading zeros correctly.
2192 * printf interprets unicode, \uNNNN \UNNNNNNNN, on systems with the
2193   required support;  from Bruno Haible.
2194 * stty's rprnt attribute now works on HPUX 10.20
2195 * seq's --equal-width option works more portably
2196  [2.0f]
2197 * fix build problems with ut_name vs. ut_user
2198  [2.0e]
2199 * stty: fix long-standing bug that caused test failures on at least HPUX
2200   systems when COLUMNS was set to zero
2201 * still more portability fixes
2202 * unified lib/: now that directory and most of the configuration framework
2203   is common between fileutils, textutils, and sh-utils
2204  [2.0d]
2205 * fix portability problem with sleep vs lib/strtod.c's requirement for -lm
2206  [2.0c]
2207 * fix portability problems with nanosleep.c and with the new code in sleep.c
2208  [2.0b]
2209 * Regenerate lib/Makefile.in so that nanosleep.c is distributed.
2210  [2.0a]
2211 * sleep accepts floating point arguments on command line
2212 * sleep's clock continues counting down when sleep is suspended
2213 * when a suspended sleep process is resumed, it continues sleeping if
2214   there is any time remaining
2215 * who once again prints whatever host information it has, even without --lookup
2216
2217 ========================================================================
2218 For older NEWS entries for the fileutils, textutils, and sh-utils
2219 packages, see ./old/*/NEWS.
2220
2221   This package began as the union of the following:
2222   textutils-2.1, fileutils-4.1.11, sh-utils-2.0.15.
2223
2224 ========================================================================
2225
2226 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software
2227 Foundation, Inc.
2228
2229 Permission is granted to copy, distribute and/or modify this document
2230 under the terms of the GNU Free Documentation License, Version 1.2 or
2231 any later version published by the Free Software Foundation; with no
2232 Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
2233 Texts.  A copy of the license is included in the ``GNU Free
2234 Documentation License'' file as part of this distribution.