1 2003-03-16 Jim Meyering <jim@meyering.net>
5 * src/remove.c (rm): Put two local variables in static storage,
6 so they can't be clobbered by the potential longjmp.
8 2003-03-15 Jim Meyering <jim@meyering.net>
10 * Makefile.cfg (gnu_rel_host): Fix code to match the comment
11 so that a version number with a two-digit component can still count
12 as an alpha release. Reported by Richard A Downing.
13 (gnu_rel_host): Define in terms of $(RELEASE_TYPE) instead.
15 2003-03-14 Jim Meyering <jim@meyering.net>
17 * src/ansi2knr.c: Remove no-longer-used file.
18 * src/ansi2knr.1: Likewise.
20 * Makefile.maint (prev_version_file): Don't use ?= for this particular
21 assignment, since it causes trouble with old versions of GNU make
22 (e.g. 3.76.1). The other uses of `?=' are inoffensive. Details here.
23 http://mail.gnu.org/archive/html/bug-coreutils/2003-03/msg00028.html
24 Patch from Alexandre Duret-Lutz.
26 * Use patched automake-1.7.3. Regenerate Makefile.in files in
27 subdirectories so that each includes a definition of ACLOCAL_M4.
29 * announce-gen (main): Label the compressed source URLs.
33 * tests/du/slink: Relax the test for the `local'ness of a file system,
34 so that now it works also for tmpfs.
36 * tests/du/hard-link: Transform output from first du, so that this
37 test doesn't fail on file systems like tmpfs that order directory
40 2003-03-13 Jim Meyering <jim@meyering.net>
42 * tests/du/8gb: Work around what appears to be an NFS failure that
43 would make this test fail on some systems.
45 2003-03-11 Jim Meyering <jim@meyering.net>
47 * tests/du/basic: Make the test file exactly 4k bytes long.
49 * src/split.c (longopts): Don't hard-code `2' here.
50 Instead, just specify `&verbose', and ...
51 (main): ... remove the `case 2:' block for --verbose.
53 * tests/du/basic: Make the test file larger than 64 bytes, so that
54 we don't immediately disqualify file systems (e.g., NetApp) on which
55 smaller files take up zero disk blocks. Reported by Vin Shelton.
57 2003-03-10 Jim Meyering <jim@meyering.net>
59 Don't segfault for a negative field width or precision in format string.
60 Note that this is just a stopgap fix. The longer term solution may
61 involve adapting bash's builtins/printf.def.
63 * src/printf.c: (UNSPECIFIED): Define.
64 (print_direc): Use the special value, UNSPECIFIED, to indicate
65 that field_width or precision has not been specified.
66 (print_formatted): Fail if field_width or precision is the
67 special value, UNSPECIFIED.
68 Reported by Oliver Kiddle <okiddle@yahoo.co.uk>
70 * src/sys2.h (INT_MIN): Define, if necessary.
71 * tests/misc/printf: Add a test for the above-fixed bug.
73 2003-03-09 Jim Meyering <jim@meyering.net>
75 * src/remove.c (AD_stack_pop): Cast sizeof... to int before
76 changing its sign. This avoids a warning from gcc on 64-bit systems.
77 Reported by Bob Proulx.
78 (pop_dir): Reverse order of sign change and cast, to be consistent
81 2003-03-08 Jim Meyering <jim@meyering.net>
83 * tests/Makefile.am (evar-check): Check for POSIXLY_CORRECT not as a
84 shell variable, but only in the environment. With /bin/sh->bash, the
85 shell variable is set to `y', and that would cause a spurious warning.
86 Reported by Bob Proulx.
88 * tests/Makefile.am (check-root): Remove touch/fifo.
89 It doesn't appear to have to be run as root.
91 * tests/rm/fail-2eperm: Rather than simply using the first non-root
92 user name, make sure that the selected user name has a usable shell.
93 Reported by Paul Jarc.
95 Before, when using shred on a device, one had to specify --exact,
96 or be careful to choose a size that would not be rounded up and
97 exceed the maximum value; that could result in a failure of
99 * src/shred.c (do_wipefd): --exact is now the default for non-regular
100 files. Suggestion from Ben Elliston.
103 * tests/misc/tty-eof: Require at least version 1.11 of Expect.pm.
104 Old versions of Expect.pm (e.g., 1.07) lack the log_user function.
107 * src/Makefile.am (check-misc): Check for use of `defined' in
109 Change to $(srcdir) before running grep.
111 * src/sleep.c: Remove now-unused #include and #define directives.
113 * src/du.c (process_file): If a file's size is not being counted
114 e.g., because it's a hard link to a file we've already counted,
115 then don't print a line for it.
117 * tests/du/hard-link: New test for the above-fixed bug.
118 * tests/du/Makefile.am (TESTS): Add hard-link.
121 * src/du.c: Revert most of the `reorganization' change of 2003-02-20,
122 and make the two-array approach work.
124 * tests/du/basic: Correct/add tests for the above fix.
125 Set LC_ALL, etc., now that we use sort.
126 Check the block/size of a small file, too.
127 Correct expected results for simple dir1/dir2/file case.
128 Add another test of du -S.
130 2003-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
132 Avoid build failure with gcc on hppa1.1-hp-hpux10.20 (see GCC PR
133 middle-end/9986). As one of GCC's optimizations, it transforms a
134 fputs_unlocked call to a fputc_unlocked call when the string is
135 one character long. However, hpux doesn't have fputc_unlocked.
137 * expr.c (usage): Use putchar, not fputs, to output a single character.
138 * ls.c (dired_dump_obstack): Likewise.
139 * ptx.c (output_one_tex_line, output_one_dumb_line): Likewise.
140 * stat.c (print_it): Likewise.
142 2003-03-07 Jim Meyering <jim@meyering.net>
144 * src/cp.c: Remove everything associated with mmap-stack.c.
145 This reverts the two changes of 2003-02-21.
146 * src/du.c: Remove everything associated with mmap-stack.c.
147 This reverts the change of 2003-02-19.
149 2003-03-06 Jim Meyering <jim@meyering.net>
151 * tests/cp/same-file: Unset CDPATH. Otherwise, having the
152 CDPATH shell variable set could cause this test to fail.
153 Reported by Karl Berry.
155 2003-03-05 Jim Meyering <jim@meyering.net>
159 * src/printf.c (print_esc): Remove pointless comparison of unsigned
160 integer with zero, to avoid a warning from Intel's ecc.
161 Reported by Nelson Beebe.
163 * src/du.c (process_file): Sizes must all be of type uintmax_t.
164 Otherwise, for files or totals that are too big, numbers would
165 be truncated. Patch mostly by Michael Stone.
166 Reported by Ingo Saitz as Debian bug #183210.
168 * tests/du/8gb: New test for the above-fixed bug.
169 * tests/du/Makefile.am (TESTS): Add 8gb.
171 * src/du.c (MAX_N_DESCRIPTORS): Use 3 * UTILS_OPEN_MAX / 4
172 rather than UTILS_OPEN_MAX - 10.
174 2003-03-04 Jim Meyering <jim@meyering.net>
176 * README: Refer new feature discussion to bug-coreutils@gnu.org,
177 rather than bug-gnu-utils, now that the former is better known.
178 Suggestion from Göran Uddeborg.
180 * src/stat.c (usage): Capitalize consistently.
181 Reported by Göran Uddeborg.
183 * Makefile.maint (rel-files): Include $(signatures), so that
184 those files are also copied into $(release_archive_dir).
186 * src/df.c (find_mount_point): Call error here, now that restore_cwd
188 * src/remove.c (AD_pop_and_chdir): Likewise.
190 * tests/Makefile.am (check-root): Add fail-2eperm.
192 2003-03-03 Jim Meyering <jim@meyering.net>
194 * src/remove.c (remove_cwd_entries): Include the full filename of
195 the offending file, not just the basename.
197 * tests/misc/tty-eof: Set $ME properly.
199 * Makefile.maint (THIS_VERSION_REGEXP, PREV_VERSION_REGEXP):
200 Remove now-unused variables.
201 (tag-prev-version, prev-cvs-tag): Likewise.
203 * src/remove.c (remove_cwd_entries) [!ROOT_CAN_UNLINK_DIRS]: Give an
204 accurate diagnostic when failing to remove a file owned by some other
205 user. Reported by Ivo Timmermans via Michael Stone.
206 This fixes Debian bug# 178471.
208 * tests/rm/Makefile.am (TESTS): Add fail-2eperm.
209 * tests/rm/fail-2eperm: New test, for the above-fixed bug.
210 Based on a report from Ivo Timmermans.
212 2003-03-02 Jim Meyering <jim@meyering.net>
214 * src/copy.c (copy_internal) [un_backup]: When recovering from a
215 failure to create a hard link, do not remove the entry associating
216 the source dev/ino with the destination file name.
217 * tests/mv/Makefile.am (TESTS): Add hard-3.
218 * tests/mv/hard-3: New test, for the above-fixed bug.
219 Inspired by a report from Iida Yosiaki.
221 2003-03-01 Jim Meyering <jim@meyering.net>
223 * src/df.c (print_header): Don't embed spaces in a separate `Type'
224 header string. Instead, put `Filesystem' and `Type' headers in the
225 same string, so translators can use horizontal space as needed.
226 Reported by Jean Charles Delepine.
228 2003-02-28 Jim Meyering <jim@meyering.net>
230 * src/copy.c (copy_internal): When link fails because of an
231 existing destination file, unlink that file and try again.
232 Reported by Iida Yosiaki.
234 * tests/mv/Makefile.am (TESTS): Add hard-2.
235 * tests/mv/hard-2: New test for the above-fixed bug.
236 Based on a test case from Iida Yosiaki.
238 2003-02-26 Jim Meyering <jim@meyering.net>
240 * tests/du/basic: Don't test du's -b option here. Directory byte
241 counts are smaller (512 rather than 4096) on at least OSF/1 5.1
242 and IBM AIX 4.2. Reported by Nelson Beebe.
244 2003-02-25 Jim Meyering <jim@meyering.net>
246 * Makefile.maint (announcement): Now that ChangeLog entries
247 are output by announce-gen, don't do it here.
248 * announce-gen (print_changelog_deltas): New function.
251 2003-02-22 Jim Meyering <jim@meyering.net>
253 * announce-gen: New option: --release-type=TYPE
254 * Makefile.maint (beta, major): New targets. Remove `release'.
255 Put them all together on a line.
256 Pass the release type (via RELEASE_TYPE envvar) to the MAKE
257 invocation of `announcement'.
258 (announcement): Invoke announce-gen with --release-type=$RELEASE_TYPE.
260 * announce-gen: New option: --news=NEWS_FILE.
261 Extract NEWS entries here, not via rules in Makefile.maint.
262 * Makefile.maint (announcement): Now that NEWS entries are
263 extracted by announce-gen, don't do it here.
264 (news-r1, news-r2): Remove now-unused definitions.
266 2003-02-21 Jim Meyering <jim@meyering.net>
270 Merge in changes from autoconf's version of this file.
271 * Makefile.maint (www-gnu): Define.
272 (standards.texi-url_prefix): Use $(www-gnu).
273 (make-stds.texi-url_prefix): Likewise.
275 * src/cp.c: Include "mmap-stack.h".
276 (main): Invoke `run' through a macro that (when possible) runs it
277 with a large, mmap'd stack.
279 * src/cp.c (run): New function, preparing for the above.
280 Exit from this function, not from main
283 * src/du.c: New option: --apparent-size.
284 (enum) [APPARENT_SIZE_OPTION]: New member.
285 (long_options): Add it.
286 (usage): Describe it.
288 ['b']: Set apparent_size.
289 David Eisner reported that the behavior of --bytes had changed.
290 Paul Eggert proposed the use of a new option, --apparent-size.
292 * src/du.c (apparent_size): New global.
293 (print_only_size): Reflect the fact that we're printing byte counts,
294 not ST_NBLOCKSIZE-byte-block counts.
295 (print_size): Call print_only_size rather than duplicating its code.
296 (process_file): Accumulate byte counts, rather than block counts.
298 * src/du.c (process_file): Always reset size_to_propagate_to_parent
299 for --separate-dirs (-S).
301 2003-02-20 Jim Meyering <jim@meyering.net>
303 * Use automake-1.7.3. Regenerate dependent files.
305 * src/stat.c (print_stat): New format: %B (to print ST_NBLOCKSIZE).
306 This makes %b (number of ST_NBLOCKSIZE-byte blocks) more useful.
307 (usage) [%B]: Describe it.
310 * src/du.c (process_file): Reorganize the code to use only
311 one `sum' array, and change how -S works back to the way it was
312 before 2003-01-31. Patch by Bruno Haible.
314 * tests/du/basic: New test.
315 * tests/du/Makefile.am (TESTS): Add basic.
317 * tests/envvar-check: Add checks for the following:
318 BLOCK_SIZE, DU_BLOCK_SIZE, DF_BLOCK_SIZE, LS_BLOCK_SIZE.
320 * tests/Makefile.am: Rename phony target envvar-check to evar-check
321 so as not to conflict with the distributed file by the same name.
323 * src/du.c (process_file): Set info->skip before any possible return.
325 Report correct usage for directories, not 0.
326 * src/du.c (process_file): Return for `file_type == FTW_DPRE'
327 _before_ recording the dev/ino of a directory.
328 Reported by Bruno Haible.
330 Now, df always displays the device file name corresponding to the
331 listed mount point under `Filesystem'. Before, for an unmounted
332 block- or character-special file argument, it would display the
333 command-line argument instead.
334 * src/df.c (show_disk): Return a value indicating whether
335 there was a match. Don't try to find a mount point here.
336 (show_entry): If show_disk doesn't find a match, call show_point.
338 2003-02-19 Jim Meyering <jim@meyering.net>
340 * src/du.c: Include "mmap-stack.h".
341 (du_files): Add prototype with ATTRIBUTE_NORETURN.
342 Exit from this function, not from...
344 Instead, if possible, invoke du_files through a macro that
345 runs it with a large, mmap'd stack.
347 * src/join.c (usage): Change wording in --help output:
348 use FILENUM instead of `SIDE' and say what FILENUM means.
349 Reported by Bernhard Gabler.
351 * src/df.c (print_header): Rather than using a hard-coded literal
352 string of spaces matching the length of the English `...Type' header,
353 output the right number of spaces to match the selected translation.
354 Reported by Yann Dirson and Jean Charles Delepine as Debian bug 131113.
356 * src/split.c (bytes_split): Remove unnecessary `else' after break.
357 (lines_split): Likewise. and correct misleading indentation.
359 * src/split.c: Include "full-read.h".
360 (bytes_split, lines_split, line_bytes_split): Use full_read,
361 not safe_read. The way split was using the latter, a short read
362 could cause split to terminate before EOF.
364 * tests/misc/tty-eof: Test all programs that can read stdin,
365 requiring no arguments and that write to standard output.
367 * tests/misc/tty-eof: New file. Renamed from ...
368 * tests/misc/cat-tty-eof: Remove file. Rename to tty-eof.
369 * tests/misc/Makefile.am (TESTS): Reflect renaming.
371 2003-02-18 Jim Meyering <jim@meyering.net>
373 cksum would perform an extra read after encountering EOF
374 * src/cksum.c (cksum): Exit the loop upon EOF, too.
375 Patch by Michael Bacarella.
377 Test for the bug fixed today in cksum, md5sum, and sha1sum.
378 * tests/misc/cat-tty-eof: Generalize, clean-up, and test for
379 cat, cksum, md5sum, and sha1sum all in the same loop.
381 2003-02-14 Jim Meyering <jim@meyering.net>
383 * src/remove.c: Include "euidaccess.h".
384 Remove declaration of euidaccess.
386 2003-02-12 Jim Meyering <jim@meyering.net>
388 * src/pathchk.c (portable_chars_only): Remove unnecessary `const'
389 in cast to avoid warning from icc. Reported by Alexandre Duret-Lutz.
391 2003-02-10 Jim Meyering <jim@meyering.net>
393 * src/test.c: Don't include group-member.h.
394 Include euidaccess.h.
395 (eaccess): Rewrite function to set the real uid and gid temporarily
396 to the effective uid and gid, then invoke 'access', and then set the
397 real uid and gid back. On systems that lack setreuid or setregid,
398 fall back on the kludges in euidaccess. Before, it would not work
399 for e.g., files with ACLs, files that were marked immutable,
400 or on file systems mounted read-only. Nelson Beebe raised the issue.
401 Paul Eggert suggested the new implementation.
403 2003-02-09 Jim Meyering <jim@meyering.net>
405 * src/test.c (test_stat): Remove function. It's job is done (only
406 when necessary) by the wrapper in lib/stat.c. Adjust all uses.
408 2003-02-08 Jim Meyering <jim@meyering.net>
412 * tests/mv/part-symlink: Don't assume that the file owner username
413 length is less than 9 in ls output: instead, omit that field
414 altogether. Reported by, and suggested fix from, Ferdinand.
416 * tests/du/restore-wd: New test for just-fixed bug in ftw.c.
417 * tests/du/Makefile.am (TESTS): Add restore-wd.
419 * src/rm.c: Correct now-invalid comment about cycle-detection.
421 2003-02-06 Jim Meyering <jim@meyering.net>
423 * NEWS: Add entries from old/*/NEWS
424 from fileutils-4.1 through 4.1.11 and
425 from sh-utils-2.0 through 2.0.15. Suggestion from Karl Berry.
429 * src/du.c (process_file): Don't return early for excluded files
430 or for files whose dev/inode we've already seen.
432 2003-02-05 Jim Meyering <jim@meyering.net>
434 * tests/du/exclude: New file.
435 * tests/du/Makefile.am (TESTS): Add exclude.
437 2003-02-04 Dmitry V. Levin <ldv@altlinux.org>
439 * src/who.c (print_boottime, print_deadprocs, print_runlevel):
440 Fix memory allocation arithmetic.
442 2003-02-04 Jim Meyering <jim@meyering.net>
444 `df /dev/block-or-char-device-file--not-mounted' now reports
445 the name of the file system on which the file resides, usually `/'.
446 Before, it would leave the `Mounted on' field blank.
447 * src/df.c (show_disk): Move function to precede find_mount_point.
448 (show_disk): Add parameter: STATP.
449 If we don't find a matching device name, then resort to calling
450 find_mount_point. Reported by Bob Proulx.
452 2003-02-03 Andreas Schwab <schwab@suse.de>
454 * tests/rm/cycle: Require non-root.
455 * tests/rm/isatty: Likewise.
457 2003-02-02 Jim Meyering <jim@meyering.net>
461 * man/Makefile.am (check-x-vs-1): Use @PATH_SEPARATOR@, not `:'.
463 Ensure that there are no offending uses of `:'.
464 * Makefile.maint (makefile_path_separator_check): New rule.
465 (local-check): Add it to the list.
467 2003-02-01 Jim Meyering <jim@meyering.net>
469 * src/du.c (MAX_N_DESCRIPTORS): Define.
471 * src/stat.c (G_fail): New global.
472 (human_time): Diagnose failed localtime, not failed nstrftime.
473 (main): Fail if G_fail is set.
475 2003-01-31 Richard Dawe <rich@phekda.freeserve.co.uk>
477 * tests/basename/Makefile.am: Use @PATH_SEPARATOR@ instead of
478 hard-coding the path-separator. Also double-quote the new PATH,
479 to avoid problems when the path-separator is a semi-colon or when
480 `pwd` contains e.g. a space.
481 * tests/chgrp/Makefile.am: Likewise.
482 * tests/chmod/Makefile.am: Likewise.
483 * tests/chown/Makefile.am: Likewise.
484 * tests/cp/Makefile.am: Likewise.
485 * tests/dd/Makefile.am: Likewise.
486 * tests/dircolors/Makefile.am: Likewise.
487 * tests/du/Makefile.am: Likewise.
488 * tests/expr/Makefile.am: Likewise.
489 * tests/factor/Makefile.am: Likewise.
490 * tests/fmt/Makefile.am: Likewise.
491 * tests/install/Makefile.am: Likewise.
492 * tests/ln/Makefile.am: Likewise.
493 * tests/ls/Makefile.am: Likewise.
494 * tests/ls-2/Makefile.am: Likewise.
495 * tests/md5sum/Makefile.am: Likewise.
496 * tests/misc/Makefile.am: Likewise.
497 * tests/mkdir/Makefile.am: Likewise.
498 * tests/mv/Makefile.am: Likewise.
499 * tests/od/Makefile.am: Likewise.
500 * tests/rm/Makefile.am: Likewise.
501 * tests/rmdir/Makefile.am: Likewise.
502 * tests/seq/Makefile.am: Likewise.
503 * tests/sha1sum/Makefile.am: Likewise.
504 * tests/shred/Makefile.am: Likewise.
505 * tests/stty/Makefile.am: Likewise.
506 * tests/sum/Makefile.am: Likewise.
507 * tests/tail-2/Makefile.am: Likewise.
508 * tests/touch/Makefile.am: Likewise.
509 * tests/tsort/Makefile.am: Likewise.
510 * tests/unexpand/Makefile.am: Likewise.
512 2003-01-31 Jim Meyering <jim@meyering.net>
514 * src/stat.c: Include "file-type.h"
515 (print_human_type): Remove function.
516 (human_access): Rename from print_human_access. Return a string.
517 (human_time): Rename from print_human_time. Return a string.
518 (print_stat): Arrange so that field width and an alignment specifier
519 are honored for the %A, %F, %x, %y, and %z formats.
520 [%F]: Use file_type; this gives slightly different file type strings,
521 e.g., `directory' instead of `Directory' and `regular file' or
522 `regular empty file' instead of `Regular file'.
523 Prompted by a report from Richard Dawe that the uses of
524 S_IFSOCK and S_IFIFO in print_human_time were not portable
525 to systems using e.g., DJGPP.
527 2003-01-31 Richard Dawe <rich@phekda.freeserve.co.uk>
529 * src/stat.c (print_stat): Use S_ISLNK rather than an explicit
530 test using S_IFMT and S_IFLNK. S_IFLNK may not be defined.
532 2003-01-31 Jim Meyering <jim@meyering.net>
534 * src/du.c (main): Upon processing an invalid option or an invalid
535 --exclude-from or --max-depth option argument, don't exit right away,
536 in case there are others. Rather record the failure and exit after
537 processing other options.
539 * GNUmakefile (TAR_OPTIONS): Set and export, in order to make
540 tar archive easier to reproduce.
542 Rewrite to perform directory traversal using nftw.
544 * src/du.c: Include "dirname.h", "ftw.h", and "quotearg.h".
546 (opt_one_file_system): Move global into `main'.
547 (path, xstat, exit_status): Remove declarations.
548 (arg_length, suffix_length): New globals.
549 (G_fail): New global, sort of like the old `exit_status'.
550 (IS_FTW_DIR_TYPE): Define.
551 (print_only_size): New function.
552 (process_file): New function.
553 (str_init, ensure_space, str_copyc, str_concatc): Remove functions.
554 (str_trunc, pop_dir, count_entry): Likewise.
555 (du_files): Rewrite to use nftw.
557 2003-01-30 Jim Meyering <jim@meyering.net>
559 * tests/du/trailing-slash: Ensure that du/ftw follows a command-line
560 symlink-to-directory with -L, even without the trailing slash.
562 2003-01-27 Jim Meyering <jim@meyering.net>
564 * src/Makefile.am (check-misc): Check for st_blocks, too.
566 * src/stat.c (print_stat): Use ST_NBLOCKS rather than `->st_blocks'.
567 Reported by Richard Dawe.
569 2003-01-27 Andreas Schwab <schwab@suse.de>
571 * src/ls.c (quote_name): Add fourth parameter, width, into which to
572 store the screen columns, and return the number of bytes instead.
573 (print_dir): Pass NULL as fourth parameter of quote_name.
574 (print_name_with_quoting): Likewise.
575 (length_of_file_name_and_frills): Get the width from the fourth
576 parameter of quote_name instead of return value.
578 2003-01-27 Jim Meyering <jim@meyering.net>
580 * src/ls.c (decode_switches): If `dired' is set without
581 `format == long_format', then silently reset dired. This doesn't
582 change the behavior of ls (all prior uses of dired were protected
583 by `&& format == long_format'), and lets us...
584 (DIRED_INDENT): ... remove the `format == long_format' conjunct.
585 (PUSH_CURRENT_DIRED_POS): Likewise.
588 2003-01-22 Jim Meyering <jim@meyering.net>
590 * tests/du/no-x: New test, for functionality added to lib/ftw.c.
591 * tests/du/Makefile.am (TESTS): Add no-x.
593 2003-01-21 Jim Meyering <jim@meyering.net>
595 * src/remove.c (remove_entry) [ROOT_CAN_UNLINK_DIRS
596 && HAVE_STRUCT_DIRENT_D_TYPE]: If a file has d_type == DT_UNKNOWN
597 it may still be a directory -- or not (e.g., with FreeBSD on an
598 NFS-mounted file system), so resort to calling lstat to find out.
599 Based on a patch by Michael van Elst.
601 * tests/cp/same-file: Don't assume that the file owner username
602 length is less than 9 in ls output: instead, omit that field
603 altogether. Reported by, and suggested fix from, Ferdinand.
605 2003-01-20 Jim Meyering <jim@meyering.net>
607 * tests/date/Test.pm (wide-fmt): New test to demonstrate that
608 large format widths no longer cause strftime to infloop.
610 * Makefile.maint (mail_gpg_sign_cookie): Remove now-unused definition.
612 2003-01-19 Jim Meyering <jim@meyering.net>
614 * src/readlink.c: Include "canonicalize.h".
616 2003-01-18 Jim Meyering <jim@meyering.net>
618 * src/ls.c (Dereference_symlink) [DEREF_COMMAND_LINE_SYMLINK_TO_DIR]:
620 (enum) [DEREFERENCE_COMMAND_LINE_SYMLINK_TO_DIR_OPTION]: New member.
621 (long_options): Add option --dereference-command-line-symlink-to-dir.
622 (main): Make DEREF_COMMAND_LINE_SYMLINK_TO_DIR be the default,
623 rather than DEREF_COMMAND_LINE_ARGUMENTS, when none of the
624 -d, -F, -l options is specified.
625 (decode_switches): Handle --dereference-command-line-symlink-to-dir.
626 (gobble_file): Honor DEREF_COMMAND_LINE_SYMLINK_TO_DIR.
627 Change --dereference-command-line (-H) to dereference *all*
628 command line arguments, including broken symlinks.
630 2003-01-15 Paul Eggert <eggert@twinsun.com>
632 Change ls -H back to the way it was yesterday, since this is
633 compatible with FreeBSD and the POSIX spec is confusing
634 and somewhat contradictory.
636 * src/ls.c (DEREF_COMMAND_LINE_ARGUMENTS): Change name back
637 from DEREF_COMMAND_LINE_SYMLINK_TO_DIR, updating all uses.
638 (long_options): Change the long option name back.
639 (usage): Change the usage back.
640 (gobble_file): When -H is specified, dereference a top-level
641 arg even if it points to a non-directory.
643 2003-01-15 Jim Meyering <jim@meyering.net>
645 * src/ls.c (gobble_file): Fall back on using lstat when required:
646 when --dereference (-L) is not specified, and
647 - when operating on a dangling symlink
648 - when operating on command-line-symlink-to-directories
649 This fixes numerous problems. Here are examples:
650 - `ls dangling-symlink' would fail with `no such file...'
651 Now it prints `dangling-symlink'.
652 - `ls -i symlink' would mistakenly print the inode of the referent.
653 Now it prints the inode of the symlink. Likewise for --size (-s).
654 Based on a patch from Michael Stone.
655 Reported by Deepak Goel as Debian bug #173793.
657 Rename ls's --dereference-command-line (-H)
658 option to --dereference-command-line-symlink-to-dir.
659 * src/ls.c [enum Dereference_symlink]
660 (DEREF_COMMAND_LINE_SYMLINK_TO_DIR): Rename from
661 DEREF_COMMAND_LINE_ARGUMENTS. Update all uses.
662 (long_options): Rename the long option.
663 (usage): Say that --dereference-... changes how ls treats
664 only symlinks to directories specified on the command line.
666 2003-01-14 Jim Meyering <jim@meyering.net>
668 * tests/ls/dangle: New file/test, for the above fix.
669 * tests/ls/inode: Another new file/test, for the above fix.
670 * tests/ls/Makefile.am (TESTS): Add dangle and inode.
672 * src/ls.c (gobble_file): Fix a bug introduced in 4.5.4 that made it
673 so that ls --color would no longer highlight the names of files with
674 the execute bit set when not specified on the command line.
675 Patch by Michael Stone. Reported by Stephen Depooter as
678 * tests/ls-2/tests (color-exe): New test, for the above fix.
680 2003-01-13 Jim Meyering <jim@meyering.net>
682 * tests/shred/exact: Also test for just fixed bug with --zero.
684 * src/shred.c (long_opts): --zero does not require an argument.
685 Patch by Michael Stone. Reported by Roland Turner as Debian bug 172019.
687 2003-01-12 Jim Meyering <jim@meyering.net>
689 * Makefile.maint (cvs-update): Skip any file with local modifications.
691 * src/unexpand.c (usage): Document --first-only and mention that
692 --tabs=N (-t) enables --all (-a). Reported by wiregauze@yahoo.com.
694 2002-12-01 Dmitry V. Levin <ldv@altlinux.org>
696 * src/df.c: Include "canonicalize.h".
697 Use canonicalize_file_name unconditionally.
699 2003-01-09 Jim Meyering <jim@meyering.net>
701 * README: Add readlink.
703 2002-11-30 Dmitry V. Levin <ldv@altlinux.org>
705 * src/df.c: Include "xgetcwd.h".
706 * src/pwd.c: Likewise.
708 2002-11-30 Dmitry V. Levin <ldv@altlinux.org>
710 * src/shred.c: Remove declaration of xstrdup.
711 We already get it via xalloc.h which is included via system.h.
713 2002-08-27 Dmitry V. Levin <ldv@altlinux.org>
715 New program: readlink.
717 * src/Makefile.am (bin_PROGRAMS): Add readlink.
718 * src/readlink.c: New file.
720 * man/readlink.x: New file.
721 * man/Makefile.am (dist_man_MANS): Add readlink.1.
722 (readlink.1): New rule.
724 2003-01-09 Jim Meyering <jim@meyering.net>
726 When selecting ranges of byte offsets (as opposed to ranges of fields)
727 and when --output-delimiter=STRING is specified, output STRING between
728 ranges of selected bytes.
729 * src/cut.c (RANGE_START_SENTINEL): Define.
730 (output_delimiter_specified): New global.
731 (print_kth): Add parameter. Adjust all callers.
732 (set_fields): Mark each range-start index with RANGE_START_SENTINEL.
733 (cut_bytes): When requested, output STRING between ranges of
735 (main): Make a diagnostic a little clearer.
736 Based on a patch from Jan Nieuwenhuizen.
738 * tests/cut/Test.pm: New tests for the above.
740 * src/cut.c (set_fields): Make code agree with comment:
741 Don't merge abutting ranges like 4- and 2-3. This makes no
742 difference currently, but is required to support an upcoming change.
744 2003-01-07 Jim Meyering <jim@meyering.net>
746 * src/cut.c (set_fields): Fix typo in comment.
748 * tests/touch/not-owner: New test, mostly extracted from fail-diag.
749 * tests/touch/Makefile.am (TESTS): Add not-owner.
750 * tests/touch/fail-diag: Remove the test for non-owner diagnostic.
751 Now, this tests only the nonexistent-directory diagnostic.
752 Suggestion from Michael Stone.
754 * tests/touch/fail-diag: Fix typo: s/ld/ls/.
756 2003-01-04 Jim Meyering <jim@meyering.net>
758 * src/copy.h: Remove use of PARAMS.
759 * src/remove.h: Likewise.
760 * src/chown-core.h: Likewise.
762 rm could be tricked into mistakenly reporting a cycle.
763 * src/remove.c: [cycle_check_state]: New global.
764 (remove_cwd_entries): Adapt to new semantics of cycle_check.
765 (rm): Call cycle_check_init and cycle_check_free for each file.
766 * tests/rm/cycle (rm): New test, for the above fix.
767 * tests/rm/Makefile.am (TESTS): Add cycle.
769 When rm detects a cycle, don't abort the entire command,
770 but rather just the affected command line argument.
771 * src/remove.c: Include <setjmp.h>
772 (struct dirstack_state) [current_arg_jumpbuf]: New member.
773 (remove_cwd_entries): Call longjmp if we detect a cycle.
774 (rm): Call setjmp here.
776 * src/remove.c (cycle_check, is_power_of_two): Remove functions.
777 Instead, include cycle-check.h and use it.
779 * src/remove.h (struct dev_ino): Remove declaration.
781 * src/remove.c (remove_cwd_entries): Fix typos in comment.
783 Don't include trailing /. in diagnostics about directories.
784 * src/remove.c (full_filename_): When FILENAME is just `.'
785 and there is a nonempty directory-name part, don't append `/.'.
786 * tests/rm/unread2: Remove trailing /. from diagnostic.
787 * tests/rm/rm2: Likewise.
789 * src/remove.c (struct dirstack_state): Define.
790 To be used in place of these file-scoped globals ...
791 (dir_stack, len_stack, Active_dir): Remove globals.
792 (ds_init, ds_free): New functions.
793 (full_filename): Define.
794 (full_filename_): Rename from full_filename.
796 Begin to make AD_* functions more generic.
797 * src/remove.c (AD_push_initial): Don't set status to RM_OK here.
799 (AD_INIT_OTHER_MEMBERS): Define.
800 (remove_dir): Define the `status' member manually after each
801 call to AD_push or AD_push_initial.
803 * src/Makefile.am (check-misc): New rule, to ensure that no more
804 S_IS* macro definitions sneak into the code.
805 (check): Depend on check-misc.
807 * src/remove.c [S_ISLNK]: Don't define. It's already defined in sys2.h.
808 * src/du.c (count_entry) [S_ISLNK]: Don't define.
809 * src/shred.c [S_ISLNK, S_ISFIFO, S_ISSOCK]: Don't define.
811 2003-01-03 Jim Meyering <jim@meyering.net>
813 * src/true.c: Add copyright.
814 (AUTHORS): I suppose I've written it.
816 * src/Makefile.am (false.c): Make the generated file be read-only.
818 2003-01-04 Jim Meyering <meyering@lucent.com>
820 * src/ls.c: Include "dev-ino.h".
821 [struct dev_ino]: Remove declaration.
823 2003-01-02 Jim Meyering <meyering@lucent.com>
825 * src/cp.c (do_copy): Tweak diagnostic to be consistent with the one
826 from mv: s/missing file arguments/missing file argument/.
827 With --target-directory=DIR, cp and mv work with a single file argument.
828 Reported by Karl Berry.
830 * tests/rm/isatty: Enable this test.
832 2002-12-31 Jim Meyering <meyering@lucent.com>
834 * src/remove.c (AD_push_initial): Don't set status to RM_OK here.
836 (AD_INIT_OTHER_MEMBERS): Define.
837 (remove_dir): Define the `status' member manually after each
838 call to AD_push or AD_push_initial.
840 * src/ls.c [struct dev_ino]: Remove definition.
841 Include "dev-ino.h" instead.
843 2002-12-28 Jim Meyering <meyering@lucent.com>
845 * tests/du/Makefile.am (TESTS): Add no-deref.
846 * tests/du/no-deref: New script.
848 2002-12-23 Jim Meyering <meyering@lucent.com>
850 * src/remove.c (remove_cwd_entries): Fix typo in comment.
852 2002-12-21 Jim Meyering <jim@meyering.net>
854 * announce-gen: Generate MML-formatted announcement.
855 This makes it a *lot* harder to send stale MD5/SHA1 signatures.
857 2002-12-20 Jim Meyering <jim@meyering.net>
859 * src/touch.c (touch): Change the wording of a diagnostic so
860 that it makes sense both when the file exists and when it doesn't.
861 Suggestion from Michael Stone.
863 2002-12-18 Jim Meyering <jim@meyering.net>
865 * src/stty.c (valid_options): Declare to be static.
867 2002-12-15 Jim Meyering <jim@meyering.net>
869 * Makefile.cfg: Remove rules related to generating m4/jm-glibc-io.m4.
871 * src/chmod.c, src/copy.c, src/copy.h, src/cp-hash.h, src/csplit.c:
872 * src/date.c, src/expr.c, src/fmt.c, src/id.c, src/install.c:
873 * src/ls.c, src/od.c, src/pathchk.c, src/pr.c, src/remove.c:
874 * src/shred.c, src/sort.c, src/stat.c, src/stty.c, src/sum.c:
875 * src/tee.c, src/test.c: Remove all uses of `PARAMS'.
877 * src/remove.c (PARAMS): Remove definition.
878 * src/sys2.h: Likewise.
880 * src/ls.c, src/stat.c, src/date.c: Remove declaration of nstrftime.
881 Include strftime.h instead.
883 2002-12-14 Jim Meyering <jim@meyering.net>
885 * Makefile.cfg ($(url_dir_list)): Use .../coreutils, not .../fetish.
887 * src/system.h [! HAVE_DECL_MEMRCHR]: Declare memrchr.
888 This is necessary at least for Irix6.5 when using c89.
889 Reported by Nelson Beebe.
891 * tests/misc/Makefile.am (TESTS): Add cat-tty-eof.
893 * tests/misc/cat-tty-eof: New test.
895 * src/mknod.c (usage): Specify how major and minor mode numbers
896 are interpreted. Report forwarded by Kristin E Thomas.
897 * src/mknod.c: Remove now-redundant usage-specifying comment.
899 2002-12-13 Jim Meyering <jim@meyering.net>
903 * tests/du/trailing-slash: Allow for a directory of size `0'.
904 That happens at least on file systems of type tmpfs on linux-2.4.18.
906 * announce-gen: New script to begin replacing the commands
907 associated with the rule here...
908 * Makefile.maint (announcement): Invoke announce-gen.
909 * Makefile.am (EXTRA_DIST): Add announce-gen.
911 * tests/cp/preserve-2: New file/test, for latest fix.
912 * tests/cp/Makefile.am (TESTS): Add preserve-2.
914 2002-12-11 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
916 Fix a bug whereby cp would fail to parse an option like
917 --preserve=mode,ownership.
918 * src/cp.c (decode_preserve_arg): Advance `comma' to
919 point the character following the comma.
921 2002-12-11 Jim Meyering <jim@meyering.net>
923 * src/pathchk.c (NEED_PATHCONF_WRAPPER): Undefine before defining,
924 in case it's already defined.
926 2002-12-09 Jim Meyering <jim@meyering.net>
928 * tests/touch/fail-diag: Don't get a test failure if /no exists.
929 Instead, evoke a framework failure if /no-$$ exists.
930 Reported by Michael Stone.
932 2002-12-08 Jim Meyering <jim@meyering.net>
934 * src/du.c (lstat) [! LSTAT_FOLLOWS_SLASHED_SYMLINK]:
935 Define to rpl_lstat, so that even on systems like Solaris 2.8,
936 du honors (per POSIX) the trailing slash on an argument referring
937 to a symlink-to-directory.
939 2002-12-06 Jim Meyering <jim@meyering.net>
941 * Use autoconf-2.57. Regenerate dependent files.
942 * Use automake-1.7.2. Regenerate dependent files.
944 * src/ls.c (gobble_file): Also stat the file if it's a
945 regular file and --indicator-style=classify (aka -F).
946 Thanks to Ed Santiago for opening my eyes.
948 * tests/ls/file-type: New file. Test for the above.
949 A test to contrast ls -F and ls --indicator-style=file-type.
950 * tests/ls/Makefile.am (TESTS): Add file-type.
952 2002-12-04 Jim Meyering <jim@meyering.net>
954 * tests/ls/follow-slink: Make sure the symlink was created.
955 Richard Dawe reported that `ln -s link link' succeeds, but creates
956 no file on systems running some version of the DJGPP libc.
958 2002-12-03 Jim Meyering <jim@meyering.net>
960 * src/Makefile.am (AUTOMAKE_OPTIONS): Remove definition (to ansi2knr)
961 since this package no longer panders to K&R compilers.
963 2002-12-02 Jim Meyering <jim@meyering.net>
965 * tests/du/slink: Skip this test if `.' is on a non-local file system.
967 * tests/Fetish.pm (_at_replace): Do the substitution only if there's
968 something to replace.
970 2002-12-01 Jim Meyering <jim@meyering.net>
972 * src/stat.c: Don't include <string.h> or <ctype.h>.
973 That's already done via system.h.
974 * src/dircolors.c: Don't include <ctype.h>.
976 2002-11-30 Jim Meyering <jim@meyering.net>
978 * ls.c (gobble_file): Remove the block of code that caused
979 `ls --color -F symlink-to-dir' to list the files in
980 `symlink-to-dir/.'. Now, it prints `symlink-to-dir@', (just
981 like `ls -F symlink-to-dir') but with the addition of highlighting.
982 Similarly, `ls --color -dF symlink-to-dir' would print
983 `symlink-to-dir/'; now it prints `symlink-to-dir@'.
984 Reported by Jeff Sheinberg as Debian bug #168203.
985 * tests/ls-2/tests (sl-F-color, sl-dF-color): New tests for the above.
987 ls is now more efficient: with certain options, it no longer needs
988 to stat each directory entry on systems with valid dirent.d_type.
989 * src/ls.c (print_dir): Add DT_LNK and DT_REG.
990 (main): Make --recursive set format_needs_type, not format_needs_stat.
991 (gobble_file): Remove a FIXME comment, now that it's fixed.
993 2002-11-24 Jim Meyering <jim@meyering.net>
995 * src/du.c (du_files): Don't strip any trailing slash.
996 Rewrite so that `/' is no longer represented internally as
998 (count_entry): When appending a file name component,
999 account for the fact that the current path may end in `/'.
1000 François Pinard reported that `du symlink-to-dir/' was not
1001 equivalent to `du symlink-to-dir/.'. Now it is.
1002 * tests/du/trailing-slash: New file/test, for the above fix.
1003 * tests/du/Makefile.am (TESTS): Add trailing-slash.
1005 2002-11-23 Jim Meyering <jim@meyering.net>
1007 * src/tac.c (output): Declare some local variables to be of type size_t,
1008 rather than `int' to avoid warnings from gcc.
1010 2002-11-21 Paul Eggert <eggert@twinsun.com>
1012 * src/ls.c (decode_switches): Use case-sensitive matching to
1013 decode the QUOTING_STYLE environment variable. This is more
1014 consistent with the documentation, and with --quoting-style.
1016 2002-11-21 Martin Buck <martin.buck@ascom.ch
1018 * src/stty.c (struct speeds): Add support for all baud rates defined
1021 2002-11-19 Jim Meyering <jim@meyering.net>
1023 * tests/sum/sysv: Export LC_ALL=C, to avoid failure when
1024 run in a UTF locale. Report and suggested fix by Bruno Haible.
1025 * tests/fmt/basic: Likewise.
1027 2002-11-17 Jim Meyering <jim@meyering.net>
1029 * configure.ac: Update via autoupdate.
1030 Add `AM_GNU_GETTEXT_VERSION(0.11.5)'.
1032 * src/mv.c (movefile): Don't remove trailing slashes from SOURCE.
1033 Reported by Hans Ginzel.
1035 2002-11-15 Jim Meyering <jim@meyering.net>
1037 * Makefile.cfg (gnu_rel_host): Define.
1038 (url_dir_list): Choose from (alpha|ftp).gnu.org depending
1039 on whether $(VERSION) looks like a major release number.
1041 * Makefile.maint (mail_gpg_sign_cookie): Backslash-escape `#'.
1042 (release): Rename from `alpha'.
1043 (alpha): Depend on release.
1045 * Makefile.maint (signatures): Define with ?=, so it's easy to override.
1047 2002-11-14 Jim Meyering <jim@meyering.net>
1049 * Makefile.maint (mail_gpg_sign_cookie): Make optional.
1050 (announcement): Use the new variable.
1052 * Makefile.maint: Sync with Bison, i.e.:
1053 (po-check): Scan .l and .y files instead of the
1054 .c and the .h files that they generate. This fixes the bug
1055 reported by Tim Van Holder in:
1056 <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
1057 Look for N_ as well as for _. Try to avoid matching #define for
1061 2002-11-12 Jim Meyering <jim@meyering.net>
1063 * src/ls.c (HAVE_SYMLINKS): Remove unnecessary macro definition.
1064 Replace sole use with equivalent `#ifdef S_ISLNK'.
1065 Inconsistency reported by Dmitry V. Levin.
1067 2002-11-11 Jim Meyering <jim@meyering.net>
1069 * src/stat.c (usage): Transform --help items output via s/ - / /,
1070 so that help2man produces properly formatted man pages.
1071 Reported by Herbert Xu as Debian bug #168400.
1073 2002-11-10 Jim Meyering <jim@meyering.net>
1075 * src/ls.c (sighandler): Handle SIGTSTP specially.
1076 Based on suggestions from Solar Designer and Dmitry V. Levin.
1079 * Makefile.cfg (cvs_files): Define. From autoconf.
1080 (local_updates): Likewise.
1082 * src/ls.c (restore_default_color_handler, sigtstp_handler):
1084 (sighandler): New function, based on the one in sort.c.
1085 (main): Use sigaction, if possible; otherwise signal.
1086 Handle these signals:
1087 SIGHUP, SIGINT, SIGPIPE, SIGQUIT, SIGTERM, SIGTSTP.
1088 Don't register our handler if the signal is already being ignored.
1090 * src/dd.c (interrupt_handler): Use raise, rather than kill+getpid.
1091 * src/csplit.c (interrupt_handler): Likewise.
1092 * src/sort.c (sighandler): Likewise.
1093 (main): Declare `i' and `nsigs' to be unsigned, not int.
1095 2002-11-09 Jim Meyering <jim@meyering.net>
1097 ls --color: restore terminal text color upon signal.
1098 * src/ls.c: Include "full-write.h" and <signal.h>.
1099 (restore_default_color, restore_default_color_handler): New functions.
1100 (sigtstp_handler, put_indicator_direct): New functions.
1101 (main) [print_with_color]: Register signal handlers.
1102 Patch mostly by Solar Designer and Stanislav Ievlev.
1104 Update from autoconf.
1105 * Makefile.maint (AMTAR): Remove definition.
1106 (update, cvs-update, po-update, do-po-update): New rules.
1107 (wget-update): Update (thus renaming to cvs-update).
1108 (automake_repo): Use anoncvs@sources.redhat.com.
1110 2002-11-06 Jim Meyering <jim@meyering.net>
1112 * tests/misc/Makefile.am (TESTS): Add printf-hex.
1114 * tests/misc/printf: Be careful to test the code in this package,
1115 not the shell built-in function.
1117 * src/printf.c (print_esc): A hexadecimal escape sequence has
1118 at most two hex. digits, not three. Reported by Padraig Brady.
1119 (usage): Update description.
1120 * tests/misc/printf-hex: New file/test, for the above fix.
1122 2002-10-07 Paul Eggert <eggert@twinsun.com>
1124 Add support for locale-specific size indications (e.g.,
1125 thousands-separators) and for explicit size suffixes on output.
1127 * doc/coreutils.texi (Block size): Say that:
1128 This affects display format as well as block size.
1129 Fractional block counts are rounded up.
1130 ls file size blocksize defaults to 1.
1131 A block size spec preceded by ' generates thousands separators.
1132 A suffix without a preceding integer generates suffixes.
1133 (tail invocation): 32k -> 32 KiB.
1134 (What information is listed): ls -h is now equivalent to
1135 ls --block-size=human, and ls -H is now equivalent to
1136 ls --block-size=si. Displayed file size is now always affected by
1139 * lib/inttostr.c, lib/inttostr.h, lib/imaxtostr.c, lib/offtostr.c,
1140 lib/umaxtostr.c: New files, taken from GNU tar.
1142 * lib/Makefile.am (libfetish_a_SOURCES): Add imaxtostr.c, offtostr.c,
1144 (EXTRA_DIST): Add inttostr.c.
1146 * lib/human.c, lib/human.h: Rewrite to support locale-specific
1147 notations like thousands separators.
1148 Specify what includer of include.h must include beforehand.
1149 (human_group_digits, human_suppress_point_zero, human_autoscale,
1150 human_base_1024, human_SI, human_B): New enum values.
1151 (human_readable): Rename from human_readable_inexact; put the
1152 options before the sizes. All uses changed. The old human_readable
1153 function has been removed; use inttostr.h instead.
1154 (human_options): Renamed from human_block_size, with new signature
1155 that allows block sizes up to UINTMAX_MAX. All callers changed.
1157 * m4/prereq.m4 (jm_PREREQ_HUMAN): Check for locale.h, localeconv,
1158 AC_HEADER_STDBOOL. No need to check for limits.h since it's in
1159 freestanding C89. No need to check for stdlib.h or string.h since
1160 autoconf does this now.
1162 * src/cksum.c (cksum): Use primitives from inttostr.h, not
1163 human.h, to print large numbers simply.
1164 * src/csplit.c (handle_line_error, parse_patterns): Likewise.
1165 * src/dd.c (print_stats, main): Likewise.
1166 * src/df.c (print_header): Likewise.
1167 * src/factor.c (print_factors): Likewise.
1168 * src/ls.c (print_long_format, print_file_name_and_frills): Likewise.
1169 * src/shred.c (dopass): Likewise.
1170 * src/sort.c (checkfp): Likewise.
1171 * src/sum.c (bsd_sum_file, sysv_sym_file): Likewise.
1172 * src/tail.c (xlseek): Likewise.
1173 * src/wc.c (write_counts, wc): Likewise.
1175 * src/df.c (human_output_opts): New var.
1176 (output_block_size): Now uintmax_t, not int, to handle larger
1177 block sizes. All uses changed.
1178 * src/du.c: Likewise.
1179 * src/ls.c: Likewise.
1181 * src/df.c (print_header): In the header line, prefer SI to human
1182 representation if it's shorter; if neither is shorter, try to
1183 intuit what the user would prefer.
1185 * src/expr.c (inttostr): Remove; use new imaxtostr library
1188 * src/ls.c (file_output_block_size): New var, to distinguish
1189 file sizes from other sizes.
1190 (decode_switches): Set it.
1192 * src/shred.c (OUTPUT_BLOCK_SIZE): remove.
1193 (dopass): When printing progress, use floor for what has been done
1194 so far (since we should be conservative there), and ceiling for
1195 what needs to be done (since that's what other programs use).
1197 2002-10-19 Jim Meyering <jim@meyering.net>
1199 * src/pinky.c (print_heading): Align TTY and Name headings.
1200 Reported by Karl Eichwalder.
1202 2002-10-18 Jim Meyering <jim@meyering.net>
1204 * src/split.c (cwrite): Change type of `bytes' parameter to size_t
1205 Remove now-useless cast.
1206 (stdread): Remove function.
1207 (bytes_split): Use size_t instead of int.
1208 Use safe_read, not stdread.
1209 (lines_split): Likewise.
1210 Use memchr rather than a `while' loop.
1211 (line_bytes_split): Use size_t instead of int.
1212 Use safe_read, not stdread.
1213 (main): Add some FIXME comments to remind me to remove casts.
1215 * src/system.h (ST_BLKSIZE): Correct comment describing how to
1216 reproduce HPUX-11 cat failure. From Petter Reinholdtsen.
1218 2002-10-17 Jim Meyering <jim@meyering.net>
1220 Fix a problem that could make e.g., `cat' misbehave on systems which
1221 give invalid (unreasonably large) values for stat.st_blksize.
1222 * src/system.h (ST_BLKSIZE): Ensure that the result is in [1..4MB].
1223 Reported by Petter Reinholdtsen.
1225 2002-10-14 Jim Meyering <jim@meyering.net>
1227 Specifying a printf conversion specifer as nl's separator string
1228 could cause nl to segfault.
1229 * src/nl.c (build_print_fmt): Don't include separator string
1230 in the printf format; it might contain `%'.
1231 Use a better bound on the length of the print_fmt buffer.
1232 (print_lineno): Print the separator here instead.
1233 Reported by Doug Coleman.
1235 * tests/misc/nl: New file/tests, including a test for the above.
1236 * tests/misc/Makefile.am (TESTS): Add nl.
1238 * tests/misc/split-l: New test, to make sure `split --lines=N' works.
1239 * tests/misc/Makefile.am (TESTS): Add split-l.
1241 2002-10-13 Jim Meyering <jim@meyering.net>
1245 * src/du.c (usage): Tweak description of --dereference-args/-D.
1247 * src/du.c (count_entry): Also save cwd when dereferencing (via
1248 --dereference-args, -D) a command-line argument.
1249 Reported by Michal Svec. Based on a patch by Andreas Schwab.
1251 * src/Makefile.am (../AUTHORS): New target/rule.
1253 2002-10-12 Jim Meyering <jim@meyering.net>
1255 * src/paste.c (paste_parallel): Declare local, `delims_saved', to be
1256 of type size_t, since that's the way it's used and avoids a warning.
1258 * src/csplit.c (struct cstring) [len]: Declare to be unsigned int,
1259 since that's how it's always used and avoids a new warning from gcc.
1260 (read_input): Adapt to new safe_read ABI.
1262 * src/cut.c (cut_fields): Add a temporary size_t variable, n_bytes,
1265 * src/pinky.c (print_long_entry): fread returns size_t.
1266 Declare local `bytes' accordingly, to avoid warning.
1268 tail -c +N would perform an extra read after encountering EOF
1269 [this change is analogous (bytes vs. lines) to the one of 2002-01-27]
1270 * src/tail.c (start_bytes): Detect EOF, inform caller.
1271 (tail_bytes): Upon EOF in start_bytes, return immediately.
1272 (file_lines): Reorganize to use memrchr rather than an explicit loop.
1273 Adapt to new safe_read ABI.
1275 2002-10-11 Jim Meyering <jim@meyering.net>
1277 * tests/du/deref: New file/test, for the above fix.
1278 * tests/du/Makefile.am (TESTS): Add deref.
1280 2002-10-10 Jim Meyering <jim@meyering.net>
1282 * tests/ln/Makefile.am (TESTS): Add target-1.
1283 * tests/ln/target-1: New file/test, for the fix on 2002-10-08.
1285 2002-10-09 Jim Meyering <jim@meyering.net>
1287 * tests/cp/backup-is-src: Ensure that certain environment variables
1288 are not set (e.g., SIMPLE_BACKUP_SUFFIX). Reported by Duncan Roe.
1290 * tests/tail-2/big-4gb: Mark this as an expensive test; it would
1291 consume 4GB of disk space on systems without support for sparse files.
1292 Fix a logic error that'd make it `cat err' even though dd didn't fail.
1294 * src/dircolors.hin (.jar): Fix typo: s/;3$/;31/.
1295 Patch by steven@magelico.net, forwarded by Michael Stone.
1297 * tests/ls/dired: Ensure that ls produces English messages.
1298 Patch by Alexey Vyskubov, forwarded by Michael Stone.
1300 2002-10-08 Dmitry V. Levin <ldv@altlinux.org>
1302 * src/ln.c (main): Fix target_directory parsing when n_files == 1.
1304 2002-10-08 Jim Meyering <jim@meyering.net>
1306 * tests/tail-2/big-4gb: Use double quotes around diagnostic.
1307 Fix syntax in test: use =, not ==.
1308 Reported by Bob Proulx.
1309 Change all the rest like this: grep -lR "testing framework'" .\
1310 |xargs perl -pi -e 's/'\''(\$0: failure in testing framework)'\''/"$1"/'
1312 * src/sum.c (sysv_sum_file): Adapt to new safe_read ABI.
1313 * src/tr.c (squeeze_filter, read_and_delete, read_and_xlate): Likewise.
1314 * src/tac.c (save_stdin, tac_stdin_to_mem): Likewise.
1315 * src/wc.c (wc): Likewise.
1317 2002-10-07 Paul Eggert <eggert@twinsun.com>
1320 Don't advance the write pointer past the end of the write buffer.
1321 * src/sort.c (begfield, limfield): Likewise.
1323 2002-10-07 Jim Meyering <jim@meyering.net>
1325 * src/cat.c (simple_cat, cat): Adapt to new safe_read ABI.
1326 * src/head.c (head_bytes, head_lines): Likewise.
1328 2002-10-06 Jim Meyering <jim@meyering.net>
1330 * src/dd.c (scanargs): Ensure that specified block sizes (specified
1331 via ibs=N, obs=N, and bs=N) are no larger than SSIZE_MAX.
1332 (skip, dd_copy): Adapt to new safe_read ABI.
1334 * Makefile.maint (signatures): Define.
1336 (announcement): Depend on $(signatures).
1338 * Makefile.maint (announcement): Output all URLs for detached
1339 signatures, not just the last one from the previous loop.
1341 2002-10-05 Jim Meyering <jim@meyering.net>
1345 * src/remove.c (remove_entry) [ROOT_CAN_UNLINK_DIRS]: With `rm -i DIR',
1346 don't recurse into directory, DIR. Prompted by a report from
1349 * tests/rm/i-no-r: New file/test, for the above fix.
1350 * tests/rm/Makefile.am (TESTS): Add i-no-r.
1352 * tests/tail-2/big-4gb: New file/test, for the fix of 2002-09-27.
1353 * tests/tail-2/Makefile.am (TESTS): Add big-4gb.
1355 2002-10-03 Jim Meyering <jim@meyering.net>
1357 * src/rm.c (AUTHORS): Mark translatable string with `N_ (...)'.
1358 * src/df.c (AUTHORS): Likewise.
1359 * src/du.c (AUTHORS): Likewise.
1360 * src/tail.c (AUTHORS): Likewise.
1361 * src/touch.c (AUTHORS): Likewise.
1363 2002-10-02 Jim Meyering <jim@meyering.net>
1365 * Makefile.am (SUBDIRS): Remove `old'.
1366 (EXTRA_DIST): List the files in old/.
1367 * configure.ac (AC_CONFIG_FILES): Remove old/* names.
1368 Suggestion from Akim Demaille.
1370 2002-10-01 Jim Meyering <jim@meyering.net>
1372 * src/sys2.h (SSIZE_MAX): Define.
1374 2002-09-30 Jim Meyering <jim@meyering.net>
1376 * src/csplit.c: Don't include stdlib.h here. It's already included
1379 2002-09-29 Jim Meyering <jim@meyering.net>
1381 * src/tr.c (find_bracketed_repeat): Rearrange pointer/integer
1382 expression to avoid bogus warning from gcc.
1384 * src/cat.c (simple_cat): Use a temporary to avoid bogus warnings.
1385 (cat): Declare insize and outsize to be of type size_t, not int.
1386 Rearrange pointer/integer expressions to avoid bogus warnings.
1387 (main): Declare insize and outsize to be of type size_t, not int.
1389 * src/tail.c (parse_options): Give a sensible diagnostic for
1390 an invalid byte or line count. Reported by Mikko Tuumanen.
1392 * src/touch.c (main): Split a long line.
1394 * tests/du/Makefile.am (TESTS): Add slink.
1395 * tests/du/slink: New test for system.h change of 2002-08-31.
1397 In move mode, always first try to rename. Before, upon failure to
1398 rename a directory, this code would never attempt to rename any
1399 other file in that directory, but would thenceforth always copy.
1400 On some systems (e.g., NetApp's OnTap-6.4), renaming a directory
1401 may fail with EXDEV, yet renaming files within that directory to
1402 a newly-created destination directory succeeds.
1403 * src/copy.c (copy_internal): Remove local, move_mode;
1404 use x->move_mode instead. Based on a patch from Tom Haynes.
1406 2002-09-28 Jim Meyering <jim@meyering.net>
1408 * src/split.c (FAIL_ONLY_ONE_WAY): New macro.
1409 Factor out some duplication.
1411 [case 'a']: Use strtoul rather than strtol to avoid compiler warnings.
1413 * src/sort.c (begfield, limfield): Rearrange comparisons to avoid
1415 (fillbuf, keycompare): Cast literal `-1' to size_t in comparisons,
1416 to avoid compiler warnings.
1418 * src/shred.c (dopass): Use a uintmax_t temporary to avoid bogus
1421 Fix things so `mkdir -p' can create very deep directories, e.g.,
1422 mkdir -p $(perl -e 'print "a/" x 40000') now works.
1423 * src/mkdir.c (main): For --parents (-p), call make_path with the
1424 entire directory name, so we don't ever require that file operations
1425 like stat or chmod be performed on the entire command line argument.
1426 * makepath.c (make_path): Restore umask *before* creating the final
1429 2002-09-27 Andreas Schwab <schwab@suse.de>
1431 * src/tail.c (tail_bytes): Change type of bytes_remaining to off_t
1432 to avoid overflow. Reported by Hans Lermen.
1434 2002-09-26 Jim Meyering <jim@meyering.net>
1436 * src/install.c (get_ids): Use strtoul, not strtol. Remove some casts.
1438 2002-09-25 Jim Meyering <jim@meyering.net>
1440 * src/test.c (eaccess): Change type of local `euid' from int to uid_t
1441 and add a cast, to avoid a warning about `signed and unsigned type in
1442 conditional expression'.
1444 2002-09-22 Jim Meyering <jim@meyering.net>
1446 * src/rmdir.c: Include "dirname.h", for declaration of
1447 strip_trailing_slashes.
1449 * src/stat.c (PRIdMAX, PRIuMAX): Remove definitions.
1450 Now they're defined through system.h.
1452 * src/cp-hash.c, src/dd.c, src/df.c, src/du.c, src/ls.c,
1453 * src/stat.c, src/wc.c: Remove all inclusions of inttypes.h,
1454 since it's already included from sys2.h via system.h.
1456 * Use automake-1.6f. Regenerate dependent files.
1458 * src/Makefile.am (PERL): Remove duplicate definition.
1460 fmt's -s, -t, -c options didn't work properly for long lines.
1461 Since get_line may end up calling put_paragraph (for long lines),
1462 be sure to set global, `other_indent', before it is used there.
1464 * src/fmt.c (set_other_indent): New function, factored out of...
1465 (get_paragraph): ... here. Call it.
1466 (get_line): Call set_other_indent before calling flush_paragraph,
1467 which calls fmt_paragraph, which in turn calls put_paragraph,
1468 which uses other_indent.
1470 * tests/fmt/Makefile.am (TESTS): Add long-line.
1471 * tests/fmt/long-line: New file/test, for the above fix.
1473 2002-09-21 Jim Meyering <jim@meyering.net>
1475 * src/od.c: No longer include deprecated <values.h>.
1476 It was required solely for now-removed reference to BITSPERBYTE.
1477 * src/install.c: Likewise.
1478 Suggestion from Bruno Haible.
1480 2002-09-06 Andreas Schwab <schwab@suse.de>
1482 `rmdir -p dir-specified-with-trailing-slash/' would fail.
1483 * src/rmdir.c (remove_parents): Strip trailing slashes.
1485 2002-09-20 Jim Meyering <jim@meyering.net>
1487 * tests/rmdir/t-slash: New file/test, for the above fix.
1488 * tests/rmdir/Makefile.am (TESTS): Add t-slash.
1490 * Makefile.maint (announcement): Arrange to gpg-sign the message.
1491 Add a URL for each detached signature file.
1493 2002-09-07 Bruno Haible <bruno@clisp.org>
1495 * configure.ac: Add need-ngettext to AM_GNU_GETTEXT invocation.
1497 2002-09-18 Jim Meyering <jim@meyering.net>
1499 `od -t x8' used the wrong (`l'-prefixed) printf format.
1500 Likewise for the o8 and u8 formats.
1501 * src/od.c (ISPEC_TO_FORMAT): Define macro.
1502 (decode_one_format): Use PRIdMAX, PRIoMAX, etc. for LONG_LONG.
1503 Reported by Arun Sharma.
1505 2002-09-17 Jim Meyering <jim@meyering.net>
1507 * src/sys2.h (PRIdMAX, PRIoMAX, PRIuMAX, PRIxMAX): Define if necessary.
1508 From gettext's intl/loadmsgcat.c.
1510 * tests/od/x8: New file/test, for the above fix.
1511 * tests/od/Makefile.am (TESTS): Add x8.
1513 2002-09-15 Jim Meyering <jim@meyering.net>
1515 * Use autoconf-2.54. Regenerate dependent files.
1517 * src/csplit.c (get_format_width): Add cast to avoid
1518 warning about `signed and unsigned type in conditional expression'.
1520 2002-09-14 Jim Meyering <jim@meyering.net>
1522 * src/who.c (print_user): Change type of local to size_t
1523 to avoid warnings about `comparison between signed and unsigned'.
1524 * src/ptx.c (generate_all_output): Likewise.
1526 * src/dd.c (main, skip): Add casts to avoid warnings about
1527 `comparison between signed and unsigned'.
1529 * src/id.c (print_full_info, print_group_list): Add casts to avoid
1530 warnings about `signed and unsigned type in conditional expression'.
1532 * src/md5sum.c: Change type of global, digest_hex_bytes, to size_t
1533 to avoid warnings about `comparison between signed and unsigned'.
1534 (split_3): Change parameter names to be readable and add comment.
1535 Clean up the test for whether a line may be ignored.
1537 2002-09-13 Jim Meyering <jim@meyering.net>
1539 * src/printf.c (main): Handle leading command line argument of `--'.
1540 Reported by Raul: DervishD <raul@pleyades.net>
1541 * tests/misc/printf: New file: test for the above.
1542 * tests/misc/Makefile.am (TESTS): Add printf.
1544 * src/date.c (usage): Explain that %S's range of [0..60] is required --
1545 rather than 0..59 -- to accommodate the occasional positive leap second.
1546 Reported by Richard Neill.
1548 2002-09-12 Jim Meyering <jim@meyering.net>
1550 * src/Makefile.am (nanosec_libs): Define.
1551 (sleep_LDADD, tail_LDADD): Use it here.
1553 Factor nanosleep-related code into ../lib/xnanosleep.c.
1554 * src/sleep.c: Include xnanosleep.h.
1555 Factor out fenv.h-related code.
1556 (timespec_subtract): Remove function.
1557 (main): Remove code that deals with computing start and stop times
1558 as well as the loop around nanosleep. Now that's in xnanosleep.c.
1560 Allow S (in --sleep-interval=S) to be a floating point value.
1561 * src/tail.c: Include xnanosleep.h and xstrtod.h.
1562 Move declaration of global variable, sleep_interval, to ...
1564 (usage): Update description of --sleep-interval option.
1565 (tail_forever): New parameter, sleep_interval. Update caller.
1566 Use xnanosleep, rather than sleep.
1567 (parse_options): New parameter, sleep_interval. Update caller.
1568 Use xstrtod, now that we accept floating point values.
1569 Prompted by a patch from Augey Mikus.
1571 2002-09-06 Jim Meyering <jim@meyering.net>
1573 * src/remove.c (prompt): Change comment to give a better note to
1574 translators. From Michael Piefel.
1576 2002-09-02 Jim Meyering <jim@meyering.net>
1578 * README: A good problem report/patch includes diffs against
1579 the most recent test release.
1581 * src/pathchk.c (NEED_PATHCONF_WRAPPER): Define.
1582 (pathconf_wrapper): Define only if NEED_PATHCONF_WRAPPER is set.
1584 * src/kill.c (print_table_row): Use an unsigned type for widths
1585 to avoid warning about comparison between signed and unsigned.
1586 (list_signals): Likewise.
1588 * src/od.c (skip): Add a cast to avoid warning about comparison
1589 between signed and unsigned.
1590 * src/install.c (get_ids): Likewise. Also rearrange range-checking
1591 comparisons to make them more readable.
1593 2002-09-01 Jim Meyering <jim@meyering.net>
1597 2002-08-31 Jim Meyering <jim@meyering.net>
1599 Symlinks were always reported as using 0 blocks.
1600 * src/system.h (ST_NBLOCKS): Don't depend on file type.
1601 This reverts the change of 2000-01-30.
1602 Based on a report and patch from Neil Brown via Michael Stone.
1603 This fixes Debian Bug#156358.
1605 * Most files: Change `exit (0)' to `exit (EXIT_SUCCESS)',
1606 `exit (1)' to `exit (EXIT_FAILURE)', and
1607 `usage (1)' to `usage (EXIT_FAILURE)'.
1609 * chgrp.c, chmod.c, chown.c, chroot.c, cp.c, date.c, dd.c, du.c,
1610 * hostname.c, id.c, install.c, ln.c, mkdir.c, mkfifo.c, mknod.c,
1611 * nice.c, pinky.c, printf.c, pwd.c, shred.c, sleep.c, stty.c,
1612 * su.c, tac-pipe.c, tail.c, tee.c, touch.c, uname.c, uptime.c,
1613 * users.c, who.c: Change `error (1, ...' to `error (EXIT_FAILURE, ...'.
1614 But don't change `error (0, ...' to `error (EXIT_SUCCESS, ...', since
1615 error never exits successfully.
1617 2002-08-29 Jim Meyering <jim@meyering.net>
1619 * src/remove.c (remove_cwd_entries): Use closedir (not CLOSEDIR)
1620 when ignoring any return value.
1622 * src/remove.c (remove_cwd_entries): Detect and diagnose readdir
1623 failures. On some systems (at least EMC Celerra and Solaris5.8),
1624 this appears to be necessary.
1625 (is_empty_dir): Likewise. Also, always close directory handle.
1626 * src/ls.c (print_dir): Likewise.
1627 (print_dir): Rename local variable: reading -> dirp.
1628 Reported by Mike Coleman.
1630 2002-08-28 Jim Meyering <jim@meyering.net>
1632 * src/remove.c (remove_cwd_entries): Use CLOSEDIR, not closedir.
1633 Give a diagnostic and fail if closedir fails.
1635 2002-08-26 Jim Meyering <jim@meyering.net>
1637 * Makefile.am (THANKS-to-translators): New rule.
1638 (EXTRA_DIST): Add both THANKS-to-translators and THANKStt.in.
1639 * THANKStt.in: New file.
1641 * src/cat.c (close_stdout_wrapper): New, kludgey, function and
1643 (main): Register it with atexit.
1644 Close STDOUT_FILENO, to avoid a problem when writing to
1645 /dev/audio on at least Solaris 2.7 and 2.8 systems.
1646 Reported by Shing-Shong Shei.
1648 2002-08-25 Jim Meyering <jim@meyering.net>
1650 * src/cat.c (main): Close STDIN_FILENO rather than a literal `0'.
1651 * src/tac.c (main): Likewise.
1652 * src/tail.c (main): Likewise.
1653 * src/tee.c (main): Likewise.
1654 * src/tr.c (main): Likewise.
1655 * src/wc.c (main): Likewise.
1657 2002-08-20 Jim Meyering <jim@meyering.net>
1659 * tests/mv/setup: Rewrite not to use `: ${VAR=not_set}' paradigm.
1661 2002-08-10 Paul Eggert <eggert@twinsun.com>
1663 * src/nohup.sh: Don't use "exec --"; it's not portable and
1664 shouldn't be needed.
1666 2002-08-09 Jim Meyering <jim@meyering.net>
1668 * src/pr.c (main): Don't ignore -COLUMN if it's the last option.
1669 (usage): Clarify help text for the -COLUMN option.
1670 Patch by Padraig Brady.
1671 * tests/pr/Test.pm [col-last]: New test for the above.
1673 * configure.ac: Start with version 4.5.1, chosen so that it's larger
1674 than the latest version numbers of the component packages.
1676 * man/Makefile.am (check-x-vs-1): Set and export PATH so we use
1679 2002-08-08 Jim Meyering <jim@meyering.net>
1681 * src/date.c: Guard inclusion of <langinfo.h> with
1682 `#if HAVE_LANGINFO_CODESET', not `#if HAVE_LANGINFO_H'.
1683 * src/sort.c: Likewise.
1684 Patch by GOTO Masanori.
1686 2002-08-05 Paul Eggert <eggert@twinsun.com>
1688 Fix some minor time-related bugs with POSIX time arguments.
1689 Some valid time stamps were being rejected (notably -1, and
1690 time stamps before 1900 on 64-bit hosts). And some invalid
1691 time stamps were being accepted, e.g. September 31.
1693 * src/date.c (main): Adjust to posixtime signature change.
1694 * src/touch.c (main): Likewise. Remove unnecessary initialization.
1695 Use localtime, not posixtm, to warn about obsolete "touch".
1697 2002-08-05 Jim Meyering <jim@meyering.net>
1699 * tests/misc/Makefile.am (TESTS): Add nice and pathchk1.
1701 2002-08-04 Jim Meyering <jim@meyering.net>
1703 * src/Makefile.am (check-README): New target/rule.
1704 (check): Depend on it.
1706 * configure.ac (AC_CONFIG_FILES): Add old/Makefile and old/*/Makefile.
1708 2002-08-03 Jim Meyering <jim@meyering.net>
1710 * Makefile.am (SUBDIRS): Add old.
1711 * old/: New directory, containing legacy ChangeLog* and NEWS files
1712 from the fileutils, sh-utils, and textutils packages.
1714 * src/Makefile.am (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Set to false.
1716 2002-08-02 Paul Eggert <eggert@twinsun.com>
1718 * NEWS, doc/coreutils.texi: uniq now obeys LC_COLLATE.
1720 * src/uniq.c: Include hard-locale.h, xmemcoll.h.
1721 (hard_LC_COLLATE): New var.
1722 (different): Args are now char *, not const char *.
1723 Use xmemcoll instead of memcmp to compare lines, so that
1724 LC_COLLATE has effect. However, use memcmp if it is an
1726 (check_file): Do not include newline in comparison, so that
1727 xmemcoll has a byte to stomp on temporarily.
1728 (main): Set hard_LC_COLLATE.
1730 2002-07-29 Jim Meyering <jim@meyering.net>
1732 * Makefile.am (SUBDIRS): Remove djgpp, for now.
1734 2002-07-08 Jim Meyering <jim@meyering.net>
1736 * src/Makefile.am (uninstall-local): Search for @GNU_PACKAGE@,
1737 rather than the hard-coded `sh-utils'.
1739 2002-07-01 Jim Meyering <jim@meyering.net>
1741 * configure.ac: Merge the three files from fileutils,
1742 textutils, and sh-utils.
1743 * Makefile.am: Likewise.
1744 * src/Makefile.am: Likewise.
1747 version-control: never