1 2003-03-19 Jim Meyering <jim@meyering.net>
5 * tests/mv/part-symlink: Unset CDPATH. Otherwise, having the
6 CDPATH shell variable set could cause this test to fail.
7 Reported by Karl Berry.
9 2003-03-18 Jim Meyering <jim@meyering.net>
11 * src/fmt.c [struct Word] (paren, period, punct, final): Change the
12 type of each member from bool <MEMBER>:1 to unsigned int <MEMBER>:1.
13 AIX 5.1's xlc could not compile the former.
14 Patch by Petter Reinholdtsen. Also reported by Mike Jetzer.
16 2003-03-17 Richard Dawe <rich@phekda.freeserve.co.uk>
18 * configure.ac: Include $(EXEEXT) in OPTIONAL_BIN_PROGS'
19 program names, since automake only adds $(EXEEXT) to programs
22 2003-03-16 Jim Meyering <jim@meyering.net>
24 * src/remove.c (rm): Put two local variables in static storage,
25 so they can't be clobbered by the potential longjmp.
27 2003-03-15 Jim Meyering <jim@meyering.net>
29 * Makefile.cfg (gnu_rel_host): Fix code to match the comment
30 so that a version number with a two-digit component can still count
31 as an alpha release. Reported by Richard A Downing.
32 (gnu_rel_host): Define in terms of $(RELEASE_TYPE) instead.
34 2003-03-14 Jim Meyering <jim@meyering.net>
36 * src/ansi2knr.c: Remove no-longer-used file.
37 * src/ansi2knr.1: Likewise.
39 * Makefile.maint (prev_version_file): Don't use ?= for this particular
40 assignment, since it causes trouble with old versions of GNU make
41 (e.g. 3.76.1). The other uses of `?=' are inoffensive. Details here.
42 http://mail.gnu.org/archive/html/bug-coreutils/2003-03/msg00028.html
43 Patch from Alexandre Duret-Lutz.
45 * Use patched automake-1.7.3. Regenerate Makefile.in files in
46 subdirectories so that each includes a definition of ACLOCAL_M4.
48 * announce-gen (main): Label the compressed source URLs.
52 * tests/du/slink: Relax the test for the `local'ness of a file system,
53 so that now it works also for tmpfs.
55 * tests/du/hard-link: Transform output from first du, so that this
56 test doesn't fail on file systems like tmpfs that order directory
59 2003-03-13 Jim Meyering <jim@meyering.net>
61 * tests/du/8gb: Work around what appears to be an NFS failure that
62 would make this test fail on some systems.
64 2003-03-11 Jim Meyering <jim@meyering.net>
66 * tests/du/basic: Make the test file exactly 4k bytes long.
68 * src/split.c (longopts): Don't hard-code `2' here.
69 Instead, just specify `&verbose', and ...
70 (main): ... remove the `case 2:' block for --verbose.
72 * tests/du/basic: Make the test file larger than 64 bytes, so that
73 we don't immediately disqualify file systems (e.g., NetApp) on which
74 smaller files take up zero disk blocks. Reported by Vin Shelton.
76 2003-03-10 Jim Meyering <jim@meyering.net>
78 Don't segfault for a negative field width or precision in format string.
79 Note that this is just a stopgap fix. The longer term solution may
80 involve adapting bash's builtins/printf.def.
82 * src/printf.c: (UNSPECIFIED): Define.
83 (print_direc): Use the special value, UNSPECIFIED, to indicate
84 that field_width or precision has not been specified.
85 (print_formatted): Fail if field_width or precision is the
86 special value, UNSPECIFIED.
87 Reported by Oliver Kiddle <okiddle@yahoo.co.uk>
89 * src/sys2.h (INT_MIN): Define, if necessary.
90 * tests/misc/printf: Add a test for the above-fixed bug.
92 2003-03-09 Jim Meyering <jim@meyering.net>
94 * src/remove.c (AD_stack_pop): Cast sizeof... to int before
95 changing its sign. This avoids a warning from gcc on 64-bit systems.
96 Reported by Bob Proulx.
97 (pop_dir): Reverse order of sign change and cast, to be consistent
100 2003-03-08 Jim Meyering <jim@meyering.net>
102 * tests/Makefile.am (evar-check): Check for POSIXLY_CORRECT not as a
103 shell variable, but only in the environment. With /bin/sh->bash, the
104 shell variable is set to `y', and that would cause a spurious warning.
105 Reported by Bob Proulx.
107 * tests/Makefile.am (check-root): Remove touch/fifo.
108 It doesn't appear to have to be run as root.
110 * tests/rm/fail-2eperm: Rather than simply using the first non-root
111 user name, make sure that the selected user name has a usable shell.
112 Reported by Paul Jarc.
114 Before, when using shred on a device, one had to specify --exact,
115 or be careful to choose a size that would not be rounded up and
116 exceed the maximum value; that could result in a failure of
118 * src/shred.c (do_wipefd): --exact is now the default for non-regular
119 files. Suggestion from Ben Elliston.
122 * tests/misc/tty-eof: Require at least version 1.11 of Expect.pm.
123 Old versions of Expect.pm (e.g., 1.07) lack the log_user function.
126 * src/Makefile.am (check-misc): Check for use of `defined' in
128 Change to $(srcdir) before running grep.
130 * src/sleep.c: Remove now-unused #include and #define directives.
132 * src/du.c (process_file): If a file's size is not being counted
133 e.g., because it's a hard link to a file we've already counted,
134 then don't print a line for it.
136 * tests/du/hard-link: New test for the above-fixed bug.
137 * tests/du/Makefile.am (TESTS): Add hard-link.
140 * src/du.c: Revert most of the `reorganization' change of 2003-02-20,
141 and make the two-array approach work.
143 * tests/du/basic: Correct/add tests for the above fix.
144 Set LC_ALL, etc., now that we use sort.
145 Check the block/size of a small file, too.
146 Correct expected results for simple dir1/dir2/file case.
147 Add another test of du -S.
149 2003-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
151 Avoid build failure with gcc on hppa1.1-hp-hpux10.20 (see GCC PR
152 middle-end/9986). As one of GCC's optimizations, it transforms a
153 fputs_unlocked call to a fputc_unlocked call when the string is
154 one character long. However, hpux doesn't have fputc_unlocked.
156 * expr.c (usage): Use putchar, not fputs, to output a single character.
157 * ls.c (dired_dump_obstack): Likewise.
158 * ptx.c (output_one_tex_line, output_one_dumb_line): Likewise.
159 * stat.c (print_it): Likewise.
161 2003-03-07 Jim Meyering <jim@meyering.net>
163 * src/cp.c: Remove everything associated with mmap-stack.c.
164 This reverts the two changes of 2003-02-21.
165 * src/du.c: Remove everything associated with mmap-stack.c.
166 This reverts the change of 2003-02-19.
168 2003-03-06 Jim Meyering <jim@meyering.net>
170 * tests/cp/same-file: Unset CDPATH. Otherwise, having the
171 CDPATH shell variable set could cause this test to fail.
172 Reported by Karl Berry.
174 2003-03-05 Jim Meyering <jim@meyering.net>
178 * src/printf.c (print_esc): Remove pointless comparison of unsigned
179 integer with zero, to avoid a warning from Intel's ecc.
180 Reported by Nelson Beebe.
182 * src/du.c (process_file): Sizes must all be of type uintmax_t.
183 Otherwise, for files or totals that are too big, numbers would
184 be truncated. Patch mostly by Michael Stone.
185 Reported by Ingo Saitz as Debian bug #183210.
187 * tests/du/8gb: New test for the above-fixed bug.
188 * tests/du/Makefile.am (TESTS): Add 8gb.
190 * src/du.c (MAX_N_DESCRIPTORS): Use 3 * UTILS_OPEN_MAX / 4
191 rather than UTILS_OPEN_MAX - 10.
193 2003-03-04 Jim Meyering <jim@meyering.net>
195 * README: Refer new feature discussion to bug-coreutils@gnu.org,
196 rather than bug-gnu-utils, now that the former is better known.
197 Suggestion from Göran Uddeborg.
199 * src/stat.c (usage): Capitalize consistently.
200 Reported by Göran Uddeborg.
202 * Makefile.maint (rel-files): Include $(signatures), so that
203 those files are also copied into $(release_archive_dir).
205 * src/df.c (find_mount_point): Call error here, now that restore_cwd
207 * src/remove.c (AD_pop_and_chdir): Likewise.
209 * tests/Makefile.am (check-root): Add fail-2eperm.
211 2003-03-03 Jim Meyering <jim@meyering.net>
213 * src/remove.c (remove_cwd_entries): Include the full filename of
214 the offending file, not just the basename.
216 * tests/misc/tty-eof: Set $ME properly.
218 * Makefile.maint (THIS_VERSION_REGEXP, PREV_VERSION_REGEXP):
219 Remove now-unused variables.
220 (tag-prev-version, prev-cvs-tag): Likewise.
222 * src/remove.c (remove_cwd_entries) [!ROOT_CAN_UNLINK_DIRS]: Give an
223 accurate diagnostic when failing to remove a file owned by some other
224 user. Reported by Ivo Timmermans via Michael Stone.
225 This fixes Debian bug# 178471.
227 * tests/rm/Makefile.am (TESTS): Add fail-2eperm.
228 * tests/rm/fail-2eperm: New test, for the above-fixed bug.
229 Based on a report from Ivo Timmermans.
231 2003-03-02 Jim Meyering <jim@meyering.net>
233 * src/copy.c (copy_internal) [un_backup]: When recovering from a
234 failure to create a hard link, do not remove the entry associating
235 the source dev/ino with the destination file name.
236 * tests/mv/Makefile.am (TESTS): Add hard-3.
237 * tests/mv/hard-3: New test, for the above-fixed bug.
238 Inspired by a report from Iida Yosiaki.
240 2003-03-01 Jim Meyering <jim@meyering.net>
242 * src/df.c (print_header): Don't embed spaces in a separate `Type'
243 header string. Instead, put `Filesystem' and `Type' headers in the
244 same string, so translators can use horizontal space as needed.
245 Reported by Jean Charles Delepine.
247 2003-02-28 Jim Meyering <jim@meyering.net>
249 * src/copy.c (copy_internal): When link fails because of an
250 existing destination file, unlink that file and try again.
251 Reported by Iida Yosiaki.
253 * tests/mv/Makefile.am (TESTS): Add hard-2.
254 * tests/mv/hard-2: New test for the above-fixed bug.
255 Based on a test case from Iida Yosiaki.
257 2003-02-26 Jim Meyering <jim@meyering.net>
259 * tests/du/basic: Don't test du's -b option here. Directory byte
260 counts are smaller (512 rather than 4096) on at least OSF/1 5.1
261 and IBM AIX 4.2. Reported by Nelson Beebe.
263 2003-02-25 Jim Meyering <jim@meyering.net>
265 * Makefile.maint (announcement): Now that ChangeLog entries
266 are output by announce-gen, don't do it here.
267 * announce-gen (print_changelog_deltas): New function.
270 2003-02-22 Jim Meyering <jim@meyering.net>
272 * announce-gen: New option: --release-type=TYPE
273 * Makefile.maint (beta, major): New targets. Remove `release'.
274 Put them all together on a line.
275 Pass the release type (via RELEASE_TYPE envvar) to the MAKE
276 invocation of `announcement'.
277 (announcement): Invoke announce-gen with --release-type=$RELEASE_TYPE.
279 * announce-gen: New option: --news=NEWS_FILE.
280 Extract NEWS entries here, not via rules in Makefile.maint.
281 * Makefile.maint (announcement): Now that NEWS entries are
282 extracted by announce-gen, don't do it here.
283 (news-r1, news-r2): Remove now-unused definitions.
285 2003-02-21 Jim Meyering <jim@meyering.net>
289 Merge in changes from autoconf's version of this file.
290 * Makefile.maint (www-gnu): Define.
291 (standards.texi-url_prefix): Use $(www-gnu).
292 (make-stds.texi-url_prefix): Likewise.
294 * src/cp.c: Include "mmap-stack.h".
295 (main): Invoke `run' through a macro that (when possible) runs it
296 with a large, mmap'd stack.
298 * src/cp.c (run): New function, preparing for the above.
299 Exit from this function, not from main
302 * src/du.c: New option: --apparent-size.
303 (enum) [APPARENT_SIZE_OPTION]: New member.
304 (long_options): Add it.
305 (usage): Describe it.
307 ['b']: Set apparent_size.
308 David Eisner reported that the behavior of --bytes had changed.
309 Paul Eggert proposed the use of a new option, --apparent-size.
311 * src/du.c (apparent_size): New global.
312 (print_only_size): Reflect the fact that we're printing byte counts,
313 not ST_NBLOCKSIZE-byte-block counts.
314 (print_size): Call print_only_size rather than duplicating its code.
315 (process_file): Accumulate byte counts, rather than block counts.
317 * src/du.c (process_file): Always reset size_to_propagate_to_parent
318 for --separate-dirs (-S).
320 2003-02-20 Jim Meyering <jim@meyering.net>
322 * Use automake-1.7.3. Regenerate dependent files.
324 * src/stat.c (print_stat): New format: %B (to print ST_NBLOCKSIZE).
325 This makes %b (number of ST_NBLOCKSIZE-byte blocks) more useful.
326 (usage) [%B]: Describe it.
329 * src/du.c (process_file): Reorganize the code to use only
330 one `sum' array, and change how -S works back to the way it was
331 before 2003-01-31. Patch by Bruno Haible.
333 * tests/du/basic: New test.
334 * tests/du/Makefile.am (TESTS): Add basic.
336 * tests/envvar-check: Add checks for the following:
337 BLOCK_SIZE, DU_BLOCK_SIZE, DF_BLOCK_SIZE, LS_BLOCK_SIZE.
339 * tests/Makefile.am: Rename phony target envvar-check to evar-check
340 so as not to conflict with the distributed file by the same name.
342 * src/du.c (process_file): Set info->skip before any possible return.
344 Report correct usage for directories, not 0.
345 * src/du.c (process_file): Return for `file_type == FTW_DPRE'
346 _before_ recording the dev/ino of a directory.
347 Reported by Bruno Haible.
349 Now, df always displays the device file name corresponding to the
350 listed mount point under `Filesystem'. Before, for an unmounted
351 block- or character-special file argument, it would display the
352 command-line argument instead.
353 * src/df.c (show_disk): Return a value indicating whether
354 there was a match. Don't try to find a mount point here.
355 (show_entry): If show_disk doesn't find a match, call show_point.
357 2003-02-19 Jim Meyering <jim@meyering.net>
359 * src/du.c: Include "mmap-stack.h".
360 (du_files): Add prototype with ATTRIBUTE_NORETURN.
361 Exit from this function, not from...
363 Instead, if possible, invoke du_files through a macro that
364 runs it with a large, mmap'd stack.
366 * src/join.c (usage): Change wording in --help output:
367 use FILENUM instead of `SIDE' and say what FILENUM means.
368 Reported by Bernhard Gabler.
370 * src/df.c (print_header): Rather than using a hard-coded literal
371 string of spaces matching the length of the English `...Type' header,
372 output the right number of spaces to match the selected translation.
373 Reported by Yann Dirson and Jean Charles Delepine as Debian bug 131113.
375 * src/split.c (bytes_split): Remove unnecessary `else' after break.
376 (lines_split): Likewise. and correct misleading indentation.
378 * src/split.c: Include "full-read.h".
379 (bytes_split, lines_split, line_bytes_split): Use full_read,
380 not safe_read. The way split was using the latter, a short read
381 could cause split to terminate before EOF.
383 * tests/misc/tty-eof: Test all programs that can read stdin,
384 requiring no arguments and that write to standard output.
386 * tests/misc/tty-eof: New file. Renamed from ...
387 * tests/misc/cat-tty-eof: Remove file. Rename to tty-eof.
388 * tests/misc/Makefile.am (TESTS): Reflect renaming.
390 2003-02-18 Jim Meyering <jim@meyering.net>
392 cksum would perform an extra read after encountering EOF
393 * src/cksum.c (cksum): Exit the loop upon EOF, too.
394 Patch by Michael Bacarella.
396 Test for the bug fixed today in cksum, md5sum, and sha1sum.
397 * tests/misc/cat-tty-eof: Generalize, clean-up, and test for
398 cat, cksum, md5sum, and sha1sum all in the same loop.
400 2003-02-14 Jim Meyering <jim@meyering.net>
402 * src/remove.c: Include "euidaccess.h".
403 Remove declaration of euidaccess.
405 2003-02-12 Jim Meyering <jim@meyering.net>
407 * src/pathchk.c (portable_chars_only): Remove unnecessary `const'
408 in cast to avoid warning from icc. Reported by Alexandre Duret-Lutz.
410 2003-02-10 Jim Meyering <jim@meyering.net>
412 * src/test.c: Don't include group-member.h.
413 Include euidaccess.h.
414 (eaccess): Rewrite function to set the real uid and gid temporarily
415 to the effective uid and gid, then invoke 'access', and then set the
416 real uid and gid back. On systems that lack setreuid or setregid,
417 fall back on the kludges in euidaccess. Before, it would not work
418 for e.g., files with ACLs, files that were marked immutable,
419 or on file systems mounted read-only. Nelson Beebe raised the issue.
420 Paul Eggert suggested the new implementation.
422 2003-02-09 Jim Meyering <jim@meyering.net>
424 * src/test.c (test_stat): Remove function. It's job is done (only
425 when necessary) by the wrapper in lib/stat.c. Adjust all uses.
427 2003-02-08 Jim Meyering <jim@meyering.net>
431 * tests/mv/part-symlink: Don't assume that the file owner username
432 length is less than 9 in ls output: instead, omit that field
433 altogether. Reported by, and suggested fix from, Ferdinand.
435 * tests/du/restore-wd: New test for just-fixed bug in ftw.c.
436 * tests/du/Makefile.am (TESTS): Add restore-wd.
438 * src/rm.c: Correct now-invalid comment about cycle-detection.
440 2003-02-06 Jim Meyering <jim@meyering.net>
442 * NEWS: Add entries from old/*/NEWS
443 from fileutils-4.1 through 4.1.11 and
444 from sh-utils-2.0 through 2.0.15. Suggestion from Karl Berry.
448 * src/du.c (process_file): Don't return early for excluded files
449 or for files whose dev/inode we've already seen.
451 2003-02-05 Jim Meyering <jim@meyering.net>
453 * tests/du/exclude: New file.
454 * tests/du/Makefile.am (TESTS): Add exclude.
456 2003-02-04 Dmitry V. Levin <ldv@altlinux.org>
458 * src/who.c (print_boottime, print_deadprocs, print_runlevel):
459 Fix memory allocation arithmetic.
461 2003-02-04 Jim Meyering <jim@meyering.net>
463 `df /dev/block-or-char-device-file--not-mounted' now reports
464 the name of the file system on which the file resides, usually `/'.
465 Before, it would leave the `Mounted on' field blank.
466 * src/df.c (show_disk): Move function to precede find_mount_point.
467 (show_disk): Add parameter: STATP.
468 If we don't find a matching device name, then resort to calling
469 find_mount_point. Reported by Bob Proulx.
471 2003-02-03 Andreas Schwab <schwab@suse.de>
473 * tests/rm/cycle: Require non-root.
474 * tests/rm/isatty: Likewise.
476 2003-02-02 Jim Meyering <jim@meyering.net>
480 * man/Makefile.am (check-x-vs-1): Use @PATH_SEPARATOR@, not `:'.
482 Ensure that there are no offending uses of `:'.
483 * Makefile.maint (makefile_path_separator_check): New rule.
484 (local-check): Add it to the list.
486 2003-02-01 Jim Meyering <jim@meyering.net>
488 * src/du.c (MAX_N_DESCRIPTORS): Define.
490 * src/stat.c (G_fail): New global.
491 (human_time): Diagnose failed localtime, not failed nstrftime.
492 (main): Fail if G_fail is set.
494 2003-01-31 Richard Dawe <rich@phekda.freeserve.co.uk>
496 * tests/basename/Makefile.am: Use @PATH_SEPARATOR@ instead of
497 hard-coding the path-separator. Also double-quote the new PATH,
498 to avoid problems when the path-separator is a semi-colon or when
499 `pwd` contains e.g. a space.
500 * tests/chgrp/Makefile.am: Likewise.
501 * tests/chmod/Makefile.am: Likewise.
502 * tests/chown/Makefile.am: Likewise.
503 * tests/cp/Makefile.am: Likewise.
504 * tests/dd/Makefile.am: Likewise.
505 * tests/dircolors/Makefile.am: Likewise.
506 * tests/du/Makefile.am: Likewise.
507 * tests/expr/Makefile.am: Likewise.
508 * tests/factor/Makefile.am: Likewise.
509 * tests/fmt/Makefile.am: Likewise.
510 * tests/install/Makefile.am: Likewise.
511 * tests/ln/Makefile.am: Likewise.
512 * tests/ls/Makefile.am: Likewise.
513 * tests/ls-2/Makefile.am: Likewise.
514 * tests/md5sum/Makefile.am: Likewise.
515 * tests/misc/Makefile.am: Likewise.
516 * tests/mkdir/Makefile.am: Likewise.
517 * tests/mv/Makefile.am: Likewise.
518 * tests/od/Makefile.am: Likewise.
519 * tests/rm/Makefile.am: Likewise.
520 * tests/rmdir/Makefile.am: Likewise.
521 * tests/seq/Makefile.am: Likewise.
522 * tests/sha1sum/Makefile.am: Likewise.
523 * tests/shred/Makefile.am: Likewise.
524 * tests/stty/Makefile.am: Likewise.
525 * tests/sum/Makefile.am: Likewise.
526 * tests/tail-2/Makefile.am: Likewise.
527 * tests/touch/Makefile.am: Likewise.
528 * tests/tsort/Makefile.am: Likewise.
529 * tests/unexpand/Makefile.am: Likewise.
531 2003-01-31 Jim Meyering <jim@meyering.net>
533 * src/stat.c: Include "file-type.h"
534 (print_human_type): Remove function.
535 (human_access): Rename from print_human_access. Return a string.
536 (human_time): Rename from print_human_time. Return a string.
537 (print_stat): Arrange so that field width and an alignment specifier
538 are honored for the %A, %F, %x, %y, and %z formats.
539 [%F]: Use file_type; this gives slightly different file type strings,
540 e.g., `directory' instead of `Directory' and `regular file' or
541 `regular empty file' instead of `Regular file'.
542 Prompted by a report from Richard Dawe that the uses of
543 S_IFSOCK and S_IFIFO in print_human_time were not portable
544 to systems using e.g., DJGPP.
546 2003-01-31 Richard Dawe <rich@phekda.freeserve.co.uk>
548 * src/stat.c (print_stat): Use S_ISLNK rather than an explicit
549 test using S_IFMT and S_IFLNK. S_IFLNK may not be defined.
551 2003-01-31 Jim Meyering <jim@meyering.net>
553 * src/du.c (main): Upon processing an invalid option or an invalid
554 --exclude-from or --max-depth option argument, don't exit right away,
555 in case there are others. Rather record the failure and exit after
556 processing other options.
558 * GNUmakefile (TAR_OPTIONS): Set and export, in order to make
559 tar archive easier to reproduce.
561 Rewrite to perform directory traversal using nftw.
563 * src/du.c: Include "dirname.h", "ftw.h", and "quotearg.h".
565 (opt_one_file_system): Move global into `main'.
566 (path, xstat, exit_status): Remove declarations.
567 (arg_length, suffix_length): New globals.
568 (G_fail): New global, sort of like the old `exit_status'.
569 (IS_FTW_DIR_TYPE): Define.
570 (print_only_size): New function.
571 (process_file): New function.
572 (str_init, ensure_space, str_copyc, str_concatc): Remove functions.
573 (str_trunc, pop_dir, count_entry): Likewise.
574 (du_files): Rewrite to use nftw.
576 2003-01-30 Jim Meyering <jim@meyering.net>
578 * tests/du/trailing-slash: Ensure that du/ftw follows a command-line
579 symlink-to-directory with -L, even without the trailing slash.
581 2003-01-27 Jim Meyering <jim@meyering.net>
583 * src/Makefile.am (check-misc): Check for st_blocks, too.
585 * src/stat.c (print_stat): Use ST_NBLOCKS rather than `->st_blocks'.
586 Reported by Richard Dawe.
588 2003-01-27 Andreas Schwab <schwab@suse.de>
590 * src/ls.c (quote_name): Add fourth parameter, width, into which to
591 store the screen columns, and return the number of bytes instead.
592 (print_dir): Pass NULL as fourth parameter of quote_name.
593 (print_name_with_quoting): Likewise.
594 (length_of_file_name_and_frills): Get the width from the fourth
595 parameter of quote_name instead of return value.
597 2003-01-27 Jim Meyering <jim@meyering.net>
599 * src/ls.c (decode_switches): If `dired' is set without
600 `format == long_format', then silently reset dired. This doesn't
601 change the behavior of ls (all prior uses of dired were protected
602 by `&& format == long_format'), and lets us...
603 (DIRED_INDENT): ... remove the `format == long_format' conjunct.
604 (PUSH_CURRENT_DIRED_POS): Likewise.
607 2003-01-22 Jim Meyering <jim@meyering.net>
609 * tests/du/no-x: New test, for functionality added to lib/ftw.c.
610 * tests/du/Makefile.am (TESTS): Add no-x.
612 2003-01-21 Jim Meyering <jim@meyering.net>
614 * src/remove.c (remove_entry) [ROOT_CAN_UNLINK_DIRS
615 && HAVE_STRUCT_DIRENT_D_TYPE]: If a file has d_type == DT_UNKNOWN
616 it may still be a directory -- or not (e.g., with FreeBSD on an
617 NFS-mounted file system), so resort to calling lstat to find out.
618 Based on a patch by Michael van Elst.
620 * tests/cp/same-file: Don't assume that the file owner username
621 length is less than 9 in ls output: instead, omit that field
622 altogether. Reported by, and suggested fix from, Ferdinand.
624 2003-01-20 Jim Meyering <jim@meyering.net>
626 * tests/date/Test.pm (wide-fmt): New test to demonstrate that
627 large format widths no longer cause strftime to infloop.
629 * Makefile.maint (mail_gpg_sign_cookie): Remove now-unused definition.
631 2003-01-19 Jim Meyering <jim@meyering.net>
633 * src/readlink.c: Include "canonicalize.h".
635 2003-01-18 Jim Meyering <jim@meyering.net>
637 * src/ls.c (Dereference_symlink) [DEREF_COMMAND_LINE_SYMLINK_TO_DIR]:
639 (enum) [DEREFERENCE_COMMAND_LINE_SYMLINK_TO_DIR_OPTION]: New member.
640 (long_options): Add option --dereference-command-line-symlink-to-dir.
641 (main): Make DEREF_COMMAND_LINE_SYMLINK_TO_DIR be the default,
642 rather than DEREF_COMMAND_LINE_ARGUMENTS, when none of the
643 -d, -F, -l options is specified.
644 (decode_switches): Handle --dereference-command-line-symlink-to-dir.
645 (gobble_file): Honor DEREF_COMMAND_LINE_SYMLINK_TO_DIR.
646 Change --dereference-command-line (-H) to dereference *all*
647 command line arguments, including broken symlinks.
649 2003-01-15 Paul Eggert <eggert@twinsun.com>
651 Change ls -H back to the way it was yesterday, since this is
652 compatible with FreeBSD and the POSIX spec is confusing
653 and somewhat contradictory.
655 * src/ls.c (DEREF_COMMAND_LINE_ARGUMENTS): Change name back
656 from DEREF_COMMAND_LINE_SYMLINK_TO_DIR, updating all uses.
657 (long_options): Change the long option name back.
658 (usage): Change the usage back.
659 (gobble_file): When -H is specified, dereference a top-level
660 arg even if it points to a non-directory.
662 2003-01-15 Jim Meyering <jim@meyering.net>
664 * src/ls.c (gobble_file): Fall back on using lstat when required:
665 when --dereference (-L) is not specified, and
666 - when operating on a dangling symlink
667 - when operating on command-line-symlink-to-directories
668 This fixes numerous problems. Here are examples:
669 - `ls dangling-symlink' would fail with `no such file...'
670 Now it prints `dangling-symlink'.
671 - `ls -i symlink' would mistakenly print the inode of the referent.
672 Now it prints the inode of the symlink. Likewise for --size (-s).
673 Based on a patch from Michael Stone.
674 Reported by Deepak Goel as Debian bug #173793.
676 Rename ls's --dereference-command-line (-H)
677 option to --dereference-command-line-symlink-to-dir.
678 * src/ls.c [enum Dereference_symlink]
679 (DEREF_COMMAND_LINE_SYMLINK_TO_DIR): Rename from
680 DEREF_COMMAND_LINE_ARGUMENTS. Update all uses.
681 (long_options): Rename the long option.
682 (usage): Say that --dereference-... changes how ls treats
683 only symlinks to directories specified on the command line.
685 2003-01-14 Jim Meyering <jim@meyering.net>
687 * tests/ls/dangle: New file/test, for the above fix.
688 * tests/ls/inode: Another new file/test, for the above fix.
689 * tests/ls/Makefile.am (TESTS): Add dangle and inode.
691 * src/ls.c (gobble_file): Fix a bug introduced in 4.5.4 that made it
692 so that ls --color would no longer highlight the names of files with
693 the execute bit set when not specified on the command line.
694 Patch by Michael Stone. Reported by Stephen Depooter as
697 * tests/ls-2/tests (color-exe): New test, for the above fix.
699 2003-01-13 Jim Meyering <jim@meyering.net>
701 * tests/shred/exact: Also test for just fixed bug with --zero.
703 * src/shred.c (long_opts): --zero does not require an argument.
704 Patch by Michael Stone. Reported by Roland Turner as Debian bug 172019.
706 2003-01-12 Jim Meyering <jim@meyering.net>
708 * Makefile.maint (cvs-update): Skip any file with local modifications.
710 * src/unexpand.c (usage): Document --first-only and mention that
711 --tabs=N (-t) enables --all (-a). Reported by wiregauze@yahoo.com.
713 2002-12-01 Dmitry V. Levin <ldv@altlinux.org>
715 * src/df.c: Include "canonicalize.h".
716 Use canonicalize_file_name unconditionally.
718 2003-01-09 Jim Meyering <jim@meyering.net>
720 * README: Add readlink.
722 2002-11-30 Dmitry V. Levin <ldv@altlinux.org>
724 * src/df.c: Include "xgetcwd.h".
725 * src/pwd.c: Likewise.
727 2002-11-30 Dmitry V. Levin <ldv@altlinux.org>
729 * src/shred.c: Remove declaration of xstrdup.
730 We already get it via xalloc.h which is included via system.h.
732 2002-08-27 Dmitry V. Levin <ldv@altlinux.org>
734 New program: readlink.
736 * src/Makefile.am (bin_PROGRAMS): Add readlink.
737 * src/readlink.c: New file.
739 * man/readlink.x: New file.
740 * man/Makefile.am (dist_man_MANS): Add readlink.1.
741 (readlink.1): New rule.
743 2003-01-09 Jim Meyering <jim@meyering.net>
745 When selecting ranges of byte offsets (as opposed to ranges of fields)
746 and when --output-delimiter=STRING is specified, output STRING between
747 ranges of selected bytes.
748 * src/cut.c (RANGE_START_SENTINEL): Define.
749 (output_delimiter_specified): New global.
750 (print_kth): Add parameter. Adjust all callers.
751 (set_fields): Mark each range-start index with RANGE_START_SENTINEL.
752 (cut_bytes): When requested, output STRING between ranges of
754 (main): Make a diagnostic a little clearer.
755 Based on a patch from Jan Nieuwenhuizen.
757 * tests/cut/Test.pm: New tests for the above.
759 * src/cut.c (set_fields): Make code agree with comment:
760 Don't merge abutting ranges like 4- and 2-3. This makes no
761 difference currently, but is required to support an upcoming change.
763 2003-01-07 Jim Meyering <jim@meyering.net>
765 * src/cut.c (set_fields): Fix typo in comment.
767 * tests/touch/not-owner: New test, mostly extracted from fail-diag.
768 * tests/touch/Makefile.am (TESTS): Add not-owner.
769 * tests/touch/fail-diag: Remove the test for non-owner diagnostic.
770 Now, this tests only the nonexistent-directory diagnostic.
771 Suggestion from Michael Stone.
773 * tests/touch/fail-diag: Fix typo: s/ld/ls/.
775 2003-01-04 Jim Meyering <jim@meyering.net>
777 * src/copy.h: Remove use of PARAMS.
778 * src/remove.h: Likewise.
779 * src/chown-core.h: Likewise.
781 rm could be tricked into mistakenly reporting a cycle.
782 * src/remove.c: [cycle_check_state]: New global.
783 (remove_cwd_entries): Adapt to new semantics of cycle_check.
784 (rm): Call cycle_check_init and cycle_check_free for each file.
785 * tests/rm/cycle (rm): New test, for the above fix.
786 * tests/rm/Makefile.am (TESTS): Add cycle.
788 When rm detects a cycle, don't abort the entire command,
789 but rather just the affected command line argument.
790 * src/remove.c: Include <setjmp.h>
791 (struct dirstack_state) [current_arg_jumpbuf]: New member.
792 (remove_cwd_entries): Call longjmp if we detect a cycle.
793 (rm): Call setjmp here.
795 * src/remove.c (cycle_check, is_power_of_two): Remove functions.
796 Instead, include cycle-check.h and use it.
798 * src/remove.h (struct dev_ino): Remove declaration.
800 * src/remove.c (remove_cwd_entries): Fix typos in comment.
802 Don't include trailing /. in diagnostics about directories.
803 * src/remove.c (full_filename_): When FILENAME is just `.'
804 and there is a nonempty directory-name part, don't append `/.'.
805 * tests/rm/unread2: Remove trailing /. from diagnostic.
806 * tests/rm/rm2: Likewise.
808 * src/remove.c (struct dirstack_state): Define.
809 To be used in place of these file-scoped globals ...
810 (dir_stack, len_stack, Active_dir): Remove globals.
811 (ds_init, ds_free): New functions.
812 (full_filename): Define.
813 (full_filename_): Rename from full_filename.
815 Begin to make AD_* functions more generic.
816 * src/remove.c (AD_push_initial): Don't set status to RM_OK here.
818 (AD_INIT_OTHER_MEMBERS): Define.
819 (remove_dir): Define the `status' member manually after each
820 call to AD_push or AD_push_initial.
822 * src/Makefile.am (check-misc): New rule, to ensure that no more
823 S_IS* macro definitions sneak into the code.
824 (check): Depend on check-misc.
826 * src/remove.c [S_ISLNK]: Don't define. It's already defined in sys2.h.
827 * src/du.c (count_entry) [S_ISLNK]: Don't define.
828 * src/shred.c [S_ISLNK, S_ISFIFO, S_ISSOCK]: Don't define.
830 2003-01-03 Jim Meyering <jim@meyering.net>
832 * src/true.c: Add copyright.
833 (AUTHORS): I suppose I've written it.
835 * src/Makefile.am (false.c): Make the generated file be read-only.
837 2003-01-04 Jim Meyering <meyering@lucent.com>
839 * src/ls.c: Include "dev-ino.h".
840 [struct dev_ino]: Remove declaration.
842 2003-01-02 Jim Meyering <meyering@lucent.com>
844 * src/cp.c (do_copy): Tweak diagnostic to be consistent with the one
845 from mv: s/missing file arguments/missing file argument/.
846 With --target-directory=DIR, cp and mv work with a single file argument.
847 Reported by Karl Berry.
849 * tests/rm/isatty: Enable this test.
851 2002-12-31 Jim Meyering <meyering@lucent.com>
853 * src/remove.c (AD_push_initial): Don't set status to RM_OK here.
855 (AD_INIT_OTHER_MEMBERS): Define.
856 (remove_dir): Define the `status' member manually after each
857 call to AD_push or AD_push_initial.
859 * src/ls.c [struct dev_ino]: Remove definition.
860 Include "dev-ino.h" instead.
862 2002-12-28 Jim Meyering <meyering@lucent.com>
864 * tests/du/Makefile.am (TESTS): Add no-deref.
865 * tests/du/no-deref: New script.
867 2002-12-23 Jim Meyering <meyering@lucent.com>
869 * src/remove.c (remove_cwd_entries): Fix typo in comment.
871 2002-12-21 Jim Meyering <jim@meyering.net>
873 * announce-gen: Generate MML-formatted announcement.
874 This makes it a *lot* harder to send stale MD5/SHA1 signatures.
876 2002-12-20 Jim Meyering <jim@meyering.net>
878 * src/touch.c (touch): Change the wording of a diagnostic so
879 that it makes sense both when the file exists and when it doesn't.
880 Suggestion from Michael Stone.
882 2002-12-18 Jim Meyering <jim@meyering.net>
884 * src/stty.c (valid_options): Declare to be static.
886 2002-12-15 Jim Meyering <jim@meyering.net>
888 * Makefile.cfg: Remove rules related to generating m4/jm-glibc-io.m4.
890 * src/chmod.c, src/copy.c, src/copy.h, src/cp-hash.h, src/csplit.c:
891 * src/date.c, src/expr.c, src/fmt.c, src/id.c, src/install.c:
892 * src/ls.c, src/od.c, src/pathchk.c, src/pr.c, src/remove.c:
893 * src/shred.c, src/sort.c, src/stat.c, src/stty.c, src/sum.c:
894 * src/tee.c, src/test.c: Remove all uses of `PARAMS'.
896 * src/remove.c (PARAMS): Remove definition.
897 * src/sys2.h: Likewise.
899 * src/ls.c, src/stat.c, src/date.c: Remove declaration of nstrftime.
900 Include strftime.h instead.
902 2002-12-14 Jim Meyering <jim@meyering.net>
904 * Makefile.cfg ($(url_dir_list)): Use .../coreutils, not .../fetish.
906 * src/system.h [! HAVE_DECL_MEMRCHR]: Declare memrchr.
907 This is necessary at least for Irix6.5 when using c89.
908 Reported by Nelson Beebe.
910 * tests/misc/Makefile.am (TESTS): Add cat-tty-eof.
912 * tests/misc/cat-tty-eof: New test.
914 * src/mknod.c (usage): Specify how major and minor mode numbers
915 are interpreted. Report forwarded by Kristin E Thomas.
916 * src/mknod.c: Remove now-redundant usage-specifying comment.
918 2002-12-13 Jim Meyering <jim@meyering.net>
922 * tests/du/trailing-slash: Allow for a directory of size `0'.
923 That happens at least on file systems of type tmpfs on linux-2.4.18.
925 * announce-gen: New script to begin replacing the commands
926 associated with the rule here...
927 * Makefile.maint (announcement): Invoke announce-gen.
928 * Makefile.am (EXTRA_DIST): Add announce-gen.
930 * tests/cp/preserve-2: New file/test, for latest fix.
931 * tests/cp/Makefile.am (TESTS): Add preserve-2.
933 2002-12-11 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
935 Fix a bug whereby cp would fail to parse an option like
936 --preserve=mode,ownership.
937 * src/cp.c (decode_preserve_arg): Advance `comma' to
938 point the character following the comma.
940 2002-12-11 Jim Meyering <jim@meyering.net>
942 * src/pathchk.c (NEED_PATHCONF_WRAPPER): Undefine before defining,
943 in case it's already defined.
945 2002-12-09 Jim Meyering <jim@meyering.net>
947 * tests/touch/fail-diag: Don't get a test failure if /no exists.
948 Instead, evoke a framework failure if /no-$$ exists.
949 Reported by Michael Stone.
951 2002-12-08 Jim Meyering <jim@meyering.net>
953 * src/du.c (lstat) [! LSTAT_FOLLOWS_SLASHED_SYMLINK]:
954 Define to rpl_lstat, so that even on systems like Solaris 2.8,
955 du honors (per POSIX) the trailing slash on an argument referring
956 to a symlink-to-directory.
958 2002-12-06 Jim Meyering <jim@meyering.net>
960 * Use autoconf-2.57. Regenerate dependent files.
961 * Use automake-1.7.2. Regenerate dependent files.
963 * src/ls.c (gobble_file): Also stat the file if it's a
964 regular file and --indicator-style=classify (aka -F).
965 Thanks to Ed Santiago for opening my eyes.
967 * tests/ls/file-type: New file. Test for the above.
968 A test to contrast ls -F and ls --indicator-style=file-type.
969 * tests/ls/Makefile.am (TESTS): Add file-type.
971 2002-12-04 Jim Meyering <jim@meyering.net>
973 * tests/ls/follow-slink: Make sure the symlink was created.
974 Richard Dawe reported that `ln -s link link' succeeds, but creates
975 no file on systems running some version of the DJGPP libc.
977 2002-12-03 Jim Meyering <jim@meyering.net>
979 * src/Makefile.am (AUTOMAKE_OPTIONS): Remove definition (to ansi2knr)
980 since this package no longer panders to K&R compilers.
982 2002-12-02 Jim Meyering <jim@meyering.net>
984 * tests/du/slink: Skip this test if `.' is on a non-local file system.
986 * tests/Fetish.pm (_at_replace): Do the substitution only if there's
987 something to replace.
989 2002-12-01 Jim Meyering <jim@meyering.net>
991 * src/stat.c: Don't include <string.h> or <ctype.h>.
992 That's already done via system.h.
993 * src/dircolors.c: Don't include <ctype.h>.
995 2002-11-30 Jim Meyering <jim@meyering.net>
997 * ls.c (gobble_file): Remove the block of code that caused
998 `ls --color -F symlink-to-dir' to list the files in
999 `symlink-to-dir/.'. Now, it prints `symlink-to-dir@', (just
1000 like `ls -F symlink-to-dir') but with the addition of highlighting.
1001 Similarly, `ls --color -dF symlink-to-dir' would print
1002 `symlink-to-dir/'; now it prints `symlink-to-dir@'.
1003 Reported by Jeff Sheinberg as Debian bug #168203.
1004 * tests/ls-2/tests (sl-F-color, sl-dF-color): New tests for the above.
1006 ls is now more efficient: with certain options, it no longer needs
1007 to stat each directory entry on systems with valid dirent.d_type.
1008 * src/ls.c (print_dir): Add DT_LNK and DT_REG.
1009 (main): Make --recursive set format_needs_type, not format_needs_stat.
1010 (gobble_file): Remove a FIXME comment, now that it's fixed.
1012 2002-11-24 Jim Meyering <jim@meyering.net>
1014 * src/du.c (du_files): Don't strip any trailing slash.
1015 Rewrite so that `/' is no longer represented internally as
1017 (count_entry): When appending a file name component,
1018 account for the fact that the current path may end in `/'.
1019 François Pinard reported that `du symlink-to-dir/' was not
1020 equivalent to `du symlink-to-dir/.'. Now it is.
1021 * tests/du/trailing-slash: New file/test, for the above fix.
1022 * tests/du/Makefile.am (TESTS): Add trailing-slash.
1024 2002-11-23 Jim Meyering <jim@meyering.net>
1026 * src/tac.c (output): Declare some local variables to be of type size_t,
1027 rather than `int' to avoid warnings from gcc.
1029 2002-11-21 Paul Eggert <eggert@twinsun.com>
1031 * src/ls.c (decode_switches): Use case-sensitive matching to
1032 decode the QUOTING_STYLE environment variable. This is more
1033 consistent with the documentation, and with --quoting-style.
1035 2002-11-21 Martin Buck <martin.buck@ascom.ch
1037 * src/stty.c (struct speeds): Add support for all baud rates defined
1040 2002-11-19 Jim Meyering <jim@meyering.net>
1042 * tests/sum/sysv: Export LC_ALL=C, to avoid failure when
1043 run in a UTF locale. Report and suggested fix by Bruno Haible.
1044 * tests/fmt/basic: Likewise.
1046 2002-11-17 Jim Meyering <jim@meyering.net>
1048 * configure.ac: Update via autoupdate.
1049 Add `AM_GNU_GETTEXT_VERSION(0.11.5)'.
1051 * src/mv.c (movefile): Don't remove trailing slashes from SOURCE.
1052 Reported by Hans Ginzel.
1054 2002-11-15 Jim Meyering <jim@meyering.net>
1056 * Makefile.cfg (gnu_rel_host): Define.
1057 (url_dir_list): Choose from (alpha|ftp).gnu.org depending
1058 on whether $(VERSION) looks like a major release number.
1060 * Makefile.maint (mail_gpg_sign_cookie): Backslash-escape `#'.
1061 (release): Rename from `alpha'.
1062 (alpha): Depend on release.
1064 * Makefile.maint (signatures): Define with ?=, so it's easy to override.
1066 2002-11-14 Jim Meyering <jim@meyering.net>
1068 * Makefile.maint (mail_gpg_sign_cookie): Make optional.
1069 (announcement): Use the new variable.
1071 * Makefile.maint: Sync with Bison, i.e.:
1072 (po-check): Scan .l and .y files instead of the
1073 .c and the .h files that they generate. This fixes the bug
1074 reported by Tim Van Holder in:
1075 <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
1076 Look for N_ as well as for _. Try to avoid matching #define for
1080 2002-11-12 Jim Meyering <jim@meyering.net>
1082 * src/ls.c (HAVE_SYMLINKS): Remove unnecessary macro definition.
1083 Replace sole use with equivalent `#ifdef S_ISLNK'.
1084 Inconsistency reported by Dmitry V. Levin.
1086 2002-11-11 Jim Meyering <jim@meyering.net>
1088 * src/stat.c (usage): Transform --help items output via s/ - / /,
1089 so that help2man produces properly formatted man pages.
1090 Reported by Herbert Xu as Debian bug #168400.
1092 2002-11-10 Jim Meyering <jim@meyering.net>
1094 * src/ls.c (sighandler): Handle SIGTSTP specially.
1095 Based on suggestions from Solar Designer and Dmitry V. Levin.
1098 * Makefile.cfg (cvs_files): Define. From autoconf.
1099 (local_updates): Likewise.
1101 * src/ls.c (restore_default_color_handler, sigtstp_handler):
1103 (sighandler): New function, based on the one in sort.c.
1104 (main): Use sigaction, if possible; otherwise signal.
1105 Handle these signals:
1106 SIGHUP, SIGINT, SIGPIPE, SIGQUIT, SIGTERM, SIGTSTP.
1107 Don't register our handler if the signal is already being ignored.
1109 * src/dd.c (interrupt_handler): Use raise, rather than kill+getpid.
1110 * src/csplit.c (interrupt_handler): Likewise.
1111 * src/sort.c (sighandler): Likewise.
1112 (main): Declare `i' and `nsigs' to be unsigned, not int.
1114 2002-11-09 Jim Meyering <jim@meyering.net>
1116 ls --color: restore terminal text color upon signal.
1117 * src/ls.c: Include "full-write.h" and <signal.h>.
1118 (restore_default_color, restore_default_color_handler): New functions.
1119 (sigtstp_handler, put_indicator_direct): New functions.
1120 (main) [print_with_color]: Register signal handlers.
1121 Patch mostly by Solar Designer and Stanislav Ievlev.
1123 Update from autoconf.
1124 * Makefile.maint (AMTAR): Remove definition.
1125 (update, cvs-update, po-update, do-po-update): New rules.
1126 (wget-update): Update (thus renaming to cvs-update).
1127 (automake_repo): Use anoncvs@sources.redhat.com.
1129 2002-11-06 Jim Meyering <jim@meyering.net>
1131 * tests/misc/Makefile.am (TESTS): Add printf-hex.
1133 * tests/misc/printf: Be careful to test the code in this package,
1134 not the shell built-in function.
1136 * src/printf.c (print_esc): A hexadecimal escape sequence has
1137 at most two hex. digits, not three. Reported by Padraig Brady.
1138 (usage): Update description.
1139 * tests/misc/printf-hex: New file/test, for the above fix.
1141 2002-10-07 Paul Eggert <eggert@twinsun.com>
1143 Add support for locale-specific size indications (e.g.,
1144 thousands-separators) and for explicit size suffixes on output.
1146 * doc/coreutils.texi (Block size): Say that:
1147 This affects display format as well as block size.
1148 Fractional block counts are rounded up.
1149 ls file size blocksize defaults to 1.
1150 A block size spec preceded by ' generates thousands separators.
1151 A suffix without a preceding integer generates suffixes.
1152 (tail invocation): 32k -> 32 KiB.
1153 (What information is listed): ls -h is now equivalent to
1154 ls --block-size=human, and ls -H is now equivalent to
1155 ls --block-size=si. Displayed file size is now always affected by
1158 * lib/inttostr.c, lib/inttostr.h, lib/imaxtostr.c, lib/offtostr.c,
1159 lib/umaxtostr.c: New files, taken from GNU tar.
1161 * lib/Makefile.am (libfetish_a_SOURCES): Add imaxtostr.c, offtostr.c,
1163 (EXTRA_DIST): Add inttostr.c.
1165 * lib/human.c, lib/human.h: Rewrite to support locale-specific
1166 notations like thousands separators.
1167 Specify what includer of include.h must include beforehand.
1168 (human_group_digits, human_suppress_point_zero, human_autoscale,
1169 human_base_1024, human_SI, human_B): New enum values.
1170 (human_readable): Rename from human_readable_inexact; put the
1171 options before the sizes. All uses changed. The old human_readable
1172 function has been removed; use inttostr.h instead.
1173 (human_options): Renamed from human_block_size, with new signature
1174 that allows block sizes up to UINTMAX_MAX. All callers changed.
1176 * m4/prereq.m4 (jm_PREREQ_HUMAN): Check for locale.h, localeconv,
1177 AC_HEADER_STDBOOL. No need to check for limits.h since it's in
1178 freestanding C89. No need to check for stdlib.h or string.h since
1179 autoconf does this now.
1181 * src/cksum.c (cksum): Use primitives from inttostr.h, not
1182 human.h, to print large numbers simply.
1183 * src/csplit.c (handle_line_error, parse_patterns): Likewise.
1184 * src/dd.c (print_stats, main): Likewise.
1185 * src/df.c (print_header): Likewise.
1186 * src/factor.c (print_factors): Likewise.
1187 * src/ls.c (print_long_format, print_file_name_and_frills): Likewise.
1188 * src/shred.c (dopass): Likewise.
1189 * src/sort.c (checkfp): Likewise.
1190 * src/sum.c (bsd_sum_file, sysv_sym_file): Likewise.
1191 * src/tail.c (xlseek): Likewise.
1192 * src/wc.c (write_counts, wc): Likewise.
1194 * src/df.c (human_output_opts): New var.
1195 (output_block_size): Now uintmax_t, not int, to handle larger
1196 block sizes. All uses changed.
1197 * src/du.c: Likewise.
1198 * src/ls.c: Likewise.
1200 * src/df.c (print_header): In the header line, prefer SI to human
1201 representation if it's shorter; if neither is shorter, try to
1202 intuit what the user would prefer.
1204 * src/expr.c (inttostr): Remove; use new imaxtostr library
1207 * src/ls.c (file_output_block_size): New var, to distinguish
1208 file sizes from other sizes.
1209 (decode_switches): Set it.
1211 * src/shred.c (OUTPUT_BLOCK_SIZE): remove.
1212 (dopass): When printing progress, use floor for what has been done
1213 so far (since we should be conservative there), and ceiling for
1214 what needs to be done (since that's what other programs use).
1216 2002-10-19 Jim Meyering <jim@meyering.net>
1218 * src/pinky.c (print_heading): Align TTY and Name headings.
1219 Reported by Karl Eichwalder.
1221 2002-10-18 Jim Meyering <jim@meyering.net>
1223 * src/split.c (cwrite): Change type of `bytes' parameter to size_t
1224 Remove now-useless cast.
1225 (stdread): Remove function.
1226 (bytes_split): Use size_t instead of int.
1227 Use safe_read, not stdread.
1228 (lines_split): Likewise.
1229 Use memchr rather than a `while' loop.
1230 (line_bytes_split): Use size_t instead of int.
1231 Use safe_read, not stdread.
1232 (main): Add some FIXME comments to remind me to remove casts.
1234 * src/system.h (ST_BLKSIZE): Correct comment describing how to
1235 reproduce HPUX-11 cat failure. From Petter Reinholdtsen.
1237 2002-10-17 Jim Meyering <jim@meyering.net>
1239 Fix a problem that could make e.g., `cat' misbehave on systems which
1240 give invalid (unreasonably large) values for stat.st_blksize.
1241 * src/system.h (ST_BLKSIZE): Ensure that the result is in [1..4MB].
1242 Reported by Petter Reinholdtsen.
1244 2002-10-14 Jim Meyering <jim@meyering.net>
1246 Specifying a printf conversion specifer as nl's separator string
1247 could cause nl to segfault.
1248 * src/nl.c (build_print_fmt): Don't include separator string
1249 in the printf format; it might contain `%'.
1250 Use a better bound on the length of the print_fmt buffer.
1251 (print_lineno): Print the separator here instead.
1252 Reported by Doug Coleman.
1254 * tests/misc/nl: New file/tests, including a test for the above.
1255 * tests/misc/Makefile.am (TESTS): Add nl.
1257 * tests/misc/split-l: New test, to make sure `split --lines=N' works.
1258 * tests/misc/Makefile.am (TESTS): Add split-l.
1260 2002-10-13 Jim Meyering <jim@meyering.net>
1264 * src/du.c (usage): Tweak description of --dereference-args/-D.
1266 * src/du.c (count_entry): Also save cwd when dereferencing (via
1267 --dereference-args, -D) a command-line argument.
1268 Reported by Michal Svec. Based on a patch by Andreas Schwab.
1270 * src/Makefile.am (../AUTHORS): New target/rule.
1272 2002-10-12 Jim Meyering <jim@meyering.net>
1274 * src/paste.c (paste_parallel): Declare local, `delims_saved', to be
1275 of type size_t, since that's the way it's used and avoids a warning.
1277 * src/csplit.c (struct cstring) [len]: Declare to be unsigned int,
1278 since that's how it's always used and avoids a new warning from gcc.
1279 (read_input): Adapt to new safe_read ABI.
1281 * src/cut.c (cut_fields): Add a temporary size_t variable, n_bytes,
1284 * src/pinky.c (print_long_entry): fread returns size_t.
1285 Declare local `bytes' accordingly, to avoid warning.
1287 tail -c +N would perform an extra read after encountering EOF
1288 [this change is analogous (bytes vs. lines) to the one of 2002-01-27]
1289 * src/tail.c (start_bytes): Detect EOF, inform caller.
1290 (tail_bytes): Upon EOF in start_bytes, return immediately.
1291 (file_lines): Reorganize to use memrchr rather than an explicit loop.
1292 Adapt to new safe_read ABI.
1294 2002-10-11 Jim Meyering <jim@meyering.net>
1296 * tests/du/deref: New file/test, for the above fix.
1297 * tests/du/Makefile.am (TESTS): Add deref.
1299 2002-10-10 Jim Meyering <jim@meyering.net>
1301 * tests/ln/Makefile.am (TESTS): Add target-1.
1302 * tests/ln/target-1: New file/test, for the fix on 2002-10-08.
1304 2002-10-09 Jim Meyering <jim@meyering.net>
1306 * tests/cp/backup-is-src: Ensure that certain environment variables
1307 are not set (e.g., SIMPLE_BACKUP_SUFFIX). Reported by Duncan Roe.
1309 * tests/tail-2/big-4gb: Mark this as an expensive test; it would
1310 consume 4GB of disk space on systems without support for sparse files.
1311 Fix a logic error that'd make it `cat err' even though dd didn't fail.
1313 * src/dircolors.hin (.jar): Fix typo: s/;3$/;31/.
1314 Patch by steven@magelico.net, forwarded by Michael Stone.
1316 * tests/ls/dired: Ensure that ls produces English messages.
1317 Patch by Alexey Vyskubov, forwarded by Michael Stone.
1319 2002-10-08 Dmitry V. Levin <ldv@altlinux.org>
1321 * src/ln.c (main): Fix target_directory parsing when n_files == 1.
1323 2002-10-08 Jim Meyering <jim@meyering.net>
1325 * tests/tail-2/big-4gb: Use double quotes around diagnostic.
1326 Fix syntax in test: use =, not ==.
1327 Reported by Bob Proulx.
1328 Change all the rest like this: grep -lR "testing framework'" .\
1329 |xargs perl -pi -e 's/'\''(\$0: failure in testing framework)'\''/"$1"/'
1331 * src/sum.c (sysv_sum_file): Adapt to new safe_read ABI.
1332 * src/tr.c (squeeze_filter, read_and_delete, read_and_xlate): Likewise.
1333 * src/tac.c (save_stdin, tac_stdin_to_mem): Likewise.
1334 * src/wc.c (wc): Likewise.
1336 2002-10-07 Paul Eggert <eggert@twinsun.com>
1339 Don't advance the write pointer past the end of the write buffer.
1340 * src/sort.c (begfield, limfield): Likewise.
1342 2002-10-07 Jim Meyering <jim@meyering.net>
1344 * src/cat.c (simple_cat, cat): Adapt to new safe_read ABI.
1345 * src/head.c (head_bytes, head_lines): Likewise.
1347 2002-10-06 Jim Meyering <jim@meyering.net>
1349 * src/dd.c (scanargs): Ensure that specified block sizes (specified
1350 via ibs=N, obs=N, and bs=N) are no larger than SSIZE_MAX.
1351 (skip, dd_copy): Adapt to new safe_read ABI.
1353 * Makefile.maint (signatures): Define.
1355 (announcement): Depend on $(signatures).
1357 * Makefile.maint (announcement): Output all URLs for detached
1358 signatures, not just the last one from the previous loop.
1360 2002-10-05 Jim Meyering <jim@meyering.net>
1364 * src/remove.c (remove_entry) [ROOT_CAN_UNLINK_DIRS]: With `rm -i DIR',
1365 don't recurse into directory, DIR. Prompted by a report from
1368 * tests/rm/i-no-r: New file/test, for the above fix.
1369 * tests/rm/Makefile.am (TESTS): Add i-no-r.
1371 * tests/tail-2/big-4gb: New file/test, for the fix of 2002-09-27.
1372 * tests/tail-2/Makefile.am (TESTS): Add big-4gb.
1374 2002-10-03 Jim Meyering <jim@meyering.net>
1376 * src/rm.c (AUTHORS): Mark translatable string with `N_ (...)'.
1377 * src/df.c (AUTHORS): Likewise.
1378 * src/du.c (AUTHORS): Likewise.
1379 * src/tail.c (AUTHORS): Likewise.
1380 * src/touch.c (AUTHORS): Likewise.
1382 2002-10-02 Jim Meyering <jim@meyering.net>
1384 * Makefile.am (SUBDIRS): Remove `old'.
1385 (EXTRA_DIST): List the files in old/.
1386 * configure.ac (AC_CONFIG_FILES): Remove old/* names.
1387 Suggestion from Akim Demaille.
1389 2002-10-01 Jim Meyering <jim@meyering.net>
1391 * src/sys2.h (SSIZE_MAX): Define.
1393 2002-09-30 Jim Meyering <jim@meyering.net>
1395 * src/csplit.c: Don't include stdlib.h here. It's already included
1398 2002-09-29 Jim Meyering <jim@meyering.net>
1400 * src/tr.c (find_bracketed_repeat): Rearrange pointer/integer
1401 expression to avoid bogus warning from gcc.
1403 * src/cat.c (simple_cat): Use a temporary to avoid bogus warnings.
1404 (cat): Declare insize and outsize to be of type size_t, not int.
1405 Rearrange pointer/integer expressions to avoid bogus warnings.
1406 (main): Declare insize and outsize to be of type size_t, not int.
1408 * src/tail.c (parse_options): Give a sensible diagnostic for
1409 an invalid byte or line count. Reported by Mikko Tuumanen.
1411 * src/touch.c (main): Split a long line.
1413 * tests/du/Makefile.am (TESTS): Add slink.
1414 * tests/du/slink: New test for system.h change of 2002-08-31.
1416 In move mode, always first try to rename. Before, upon failure to
1417 rename a directory, this code would never attempt to rename any
1418 other file in that directory, but would thenceforth always copy.
1419 On some systems (e.g., NetApp's OnTap-6.4), renaming a directory
1420 may fail with EXDEV, yet renaming files within that directory to
1421 a newly-created destination directory succeeds.
1422 * src/copy.c (copy_internal): Remove local, move_mode;
1423 use x->move_mode instead. Based on a patch from Tom Haynes.
1425 2002-09-28 Jim Meyering <jim@meyering.net>
1427 * src/split.c (FAIL_ONLY_ONE_WAY): New macro.
1428 Factor out some duplication.
1430 [case 'a']: Use strtoul rather than strtol to avoid compiler warnings.
1432 * src/sort.c (begfield, limfield): Rearrange comparisons to avoid
1434 (fillbuf, keycompare): Cast literal `-1' to size_t in comparisons,
1435 to avoid compiler warnings.
1437 * src/shred.c (dopass): Use a uintmax_t temporary to avoid bogus
1440 Fix things so `mkdir -p' can create very deep directories, e.g.,
1441 mkdir -p $(perl -e 'print "a/" x 40000') now works.
1442 * src/mkdir.c (main): For --parents (-p), call make_path with the
1443 entire directory name, so we don't ever require that file operations
1444 like stat or chmod be performed on the entire command line argument.
1445 * makepath.c (make_path): Restore umask *before* creating the final
1448 2002-09-27 Andreas Schwab <schwab@suse.de>
1450 * src/tail.c (tail_bytes): Change type of bytes_remaining to off_t
1451 to avoid overflow. Reported by Hans Lermen.
1453 2002-09-26 Jim Meyering <jim@meyering.net>
1455 * src/install.c (get_ids): Use strtoul, not strtol. Remove some casts.
1457 2002-09-25 Jim Meyering <jim@meyering.net>
1459 * src/test.c (eaccess): Change type of local `euid' from int to uid_t
1460 and add a cast, to avoid a warning about `signed and unsigned type in
1461 conditional expression'.
1463 2002-09-22 Jim Meyering <jim@meyering.net>
1465 * src/rmdir.c: Include "dirname.h", for declaration of
1466 strip_trailing_slashes.
1468 * src/stat.c (PRIdMAX, PRIuMAX): Remove definitions.
1469 Now they're defined through system.h.
1471 * src/cp-hash.c, src/dd.c, src/df.c, src/du.c, src/ls.c,
1472 * src/stat.c, src/wc.c: Remove all inclusions of inttypes.h,
1473 since it's already included from sys2.h via system.h.
1475 * Use automake-1.6f. Regenerate dependent files.
1477 * src/Makefile.am (PERL): Remove duplicate definition.
1479 fmt's -s, -t, -c options didn't work properly for long lines.
1480 Since get_line may end up calling put_paragraph (for long lines),
1481 be sure to set global, `other_indent', before it is used there.
1483 * src/fmt.c (set_other_indent): New function, factored out of...
1484 (get_paragraph): ... here. Call it.
1485 (get_line): Call set_other_indent before calling flush_paragraph,
1486 which calls fmt_paragraph, which in turn calls put_paragraph,
1487 which uses other_indent.
1489 * tests/fmt/Makefile.am (TESTS): Add long-line.
1490 * tests/fmt/long-line: New file/test, for the above fix.
1492 2002-09-21 Jim Meyering <jim@meyering.net>
1494 * src/od.c: No longer include deprecated <values.h>.
1495 It was required solely for now-removed reference to BITSPERBYTE.
1496 * src/install.c: Likewise.
1497 Suggestion from Bruno Haible.
1499 2002-09-06 Andreas Schwab <schwab@suse.de>
1501 `rmdir -p dir-specified-with-trailing-slash/' would fail.
1502 * src/rmdir.c (remove_parents): Strip trailing slashes.
1504 2002-09-20 Jim Meyering <jim@meyering.net>
1506 * tests/rmdir/t-slash: New file/test, for the above fix.
1507 * tests/rmdir/Makefile.am (TESTS): Add t-slash.
1509 * Makefile.maint (announcement): Arrange to gpg-sign the message.
1510 Add a URL for each detached signature file.
1512 2002-09-07 Bruno Haible <bruno@clisp.org>
1514 * configure.ac: Add need-ngettext to AM_GNU_GETTEXT invocation.
1516 2002-09-18 Jim Meyering <jim@meyering.net>
1518 `od -t x8' used the wrong (`l'-prefixed) printf format.
1519 Likewise for the o8 and u8 formats.
1520 * src/od.c (ISPEC_TO_FORMAT): Define macro.
1521 (decode_one_format): Use PRIdMAX, PRIoMAX, etc. for LONG_LONG.
1522 Reported by Arun Sharma.
1524 2002-09-17 Jim Meyering <jim@meyering.net>
1526 * src/sys2.h (PRIdMAX, PRIoMAX, PRIuMAX, PRIxMAX): Define if necessary.
1527 From gettext's intl/loadmsgcat.c.
1529 * tests/od/x8: New file/test, for the above fix.
1530 * tests/od/Makefile.am (TESTS): Add x8.
1532 2002-09-15 Jim Meyering <jim@meyering.net>
1534 * Use autoconf-2.54. Regenerate dependent files.
1536 * src/csplit.c (get_format_width): Add cast to avoid
1537 warning about `signed and unsigned type in conditional expression'.
1539 2002-09-14 Jim Meyering <jim@meyering.net>
1541 * src/who.c (print_user): Change type of local to size_t
1542 to avoid warnings about `comparison between signed and unsigned'.
1543 * src/ptx.c (generate_all_output): Likewise.
1545 * src/dd.c (main, skip): Add casts to avoid warnings about
1546 `comparison between signed and unsigned'.
1548 * src/id.c (print_full_info, print_group_list): Add casts to avoid
1549 warnings about `signed and unsigned type in conditional expression'.
1551 * src/md5sum.c: Change type of global, digest_hex_bytes, to size_t
1552 to avoid warnings about `comparison between signed and unsigned'.
1553 (split_3): Change parameter names to be readable and add comment.
1554 Clean up the test for whether a line may be ignored.
1556 2002-09-13 Jim Meyering <jim@meyering.net>
1558 * src/printf.c (main): Handle leading command line argument of `--'.
1559 Reported by Raul: DervishD <raul@pleyades.net>
1560 * tests/misc/printf: New file: test for the above.
1561 * tests/misc/Makefile.am (TESTS): Add printf.
1563 * src/date.c (usage): Explain that %S's range of [0..60] is required --
1564 rather than 0..59 -- to accommodate the occasional positive leap second.
1565 Reported by Richard Neill.
1567 2002-09-12 Jim Meyering <jim@meyering.net>
1569 * src/Makefile.am (nanosec_libs): Define.
1570 (sleep_LDADD, tail_LDADD): Use it here.
1572 Factor nanosleep-related code into ../lib/xnanosleep.c.
1573 * src/sleep.c: Include xnanosleep.h.
1574 Factor out fenv.h-related code.
1575 (timespec_subtract): Remove function.
1576 (main): Remove code that deals with computing start and stop times
1577 as well as the loop around nanosleep. Now that's in xnanosleep.c.
1579 Allow S (in --sleep-interval=S) to be a floating point value.
1580 * src/tail.c: Include xnanosleep.h and xstrtod.h.
1581 Move declaration of global variable, sleep_interval, to ...
1583 (usage): Update description of --sleep-interval option.
1584 (tail_forever): New parameter, sleep_interval. Update caller.
1585 Use xnanosleep, rather than sleep.
1586 (parse_options): New parameter, sleep_interval. Update caller.
1587 Use xstrtod, now that we accept floating point values.
1588 Prompted by a patch from Augey Mikus.
1590 2002-09-06 Jim Meyering <jim@meyering.net>
1592 * src/remove.c (prompt): Change comment to give a better note to
1593 translators. From Michael Piefel.
1595 2002-09-02 Jim Meyering <jim@meyering.net>
1597 * README: A good problem report/patch includes diffs against
1598 the most recent test release.
1600 * src/pathchk.c (NEED_PATHCONF_WRAPPER): Define.
1601 (pathconf_wrapper): Define only if NEED_PATHCONF_WRAPPER is set.
1603 * src/kill.c (print_table_row): Use an unsigned type for widths
1604 to avoid warning about comparison between signed and unsigned.
1605 (list_signals): Likewise.
1607 * src/od.c (skip): Add a cast to avoid warning about comparison
1608 between signed and unsigned.
1609 * src/install.c (get_ids): Likewise. Also rearrange range-checking
1610 comparisons to make them more readable.
1612 2002-09-01 Jim Meyering <jim@meyering.net>
1616 2002-08-31 Jim Meyering <jim@meyering.net>
1618 Symlinks were always reported as using 0 blocks.
1619 * src/system.h (ST_NBLOCKS): Don't depend on file type.
1620 This reverts the change of 2000-01-30.
1621 Based on a report and patch from Neil Brown via Michael Stone.
1622 This fixes Debian Bug#156358.
1624 * Most files: Change `exit (0)' to `exit (EXIT_SUCCESS)',
1625 `exit (1)' to `exit (EXIT_FAILURE)', and
1626 `usage (1)' to `usage (EXIT_FAILURE)'.
1628 * chgrp.c, chmod.c, chown.c, chroot.c, cp.c, date.c, dd.c, du.c,
1629 * hostname.c, id.c, install.c, ln.c, mkdir.c, mkfifo.c, mknod.c,
1630 * nice.c, pinky.c, printf.c, pwd.c, shred.c, sleep.c, stty.c,
1631 * su.c, tac-pipe.c, tail.c, tee.c, touch.c, uname.c, uptime.c,
1632 * users.c, who.c: Change `error (1, ...' to `error (EXIT_FAILURE, ...'.
1633 But don't change `error (0, ...' to `error (EXIT_SUCCESS, ...', since
1634 error never exits successfully.
1636 2002-08-29 Jim Meyering <jim@meyering.net>
1638 * src/remove.c (remove_cwd_entries): Use closedir (not CLOSEDIR)
1639 when ignoring any return value.
1641 * src/remove.c (remove_cwd_entries): Detect and diagnose readdir
1642 failures. On some systems (at least EMC Celerra and Solaris5.8),
1643 this appears to be necessary.
1644 (is_empty_dir): Likewise. Also, always close directory handle.
1645 * src/ls.c (print_dir): Likewise.
1646 (print_dir): Rename local variable: reading -> dirp.
1647 Reported by Mike Coleman.
1649 2002-08-28 Jim Meyering <jim@meyering.net>
1651 * src/remove.c (remove_cwd_entries): Use CLOSEDIR, not closedir.
1652 Give a diagnostic and fail if closedir fails.
1654 2002-08-26 Jim Meyering <jim@meyering.net>
1656 * Makefile.am (THANKS-to-translators): New rule.
1657 (EXTRA_DIST): Add both THANKS-to-translators and THANKStt.in.
1658 * THANKStt.in: New file.
1660 * src/cat.c (close_stdout_wrapper): New, kludgey, function and
1662 (main): Register it with atexit.
1663 Close STDOUT_FILENO, to avoid a problem when writing to
1664 /dev/audio on at least Solaris 2.7 and 2.8 systems.
1665 Reported by Shing-Shong Shei.
1667 2002-08-25 Jim Meyering <jim@meyering.net>
1669 * src/cat.c (main): Close STDIN_FILENO rather than a literal `0'.
1670 * src/tac.c (main): Likewise.
1671 * src/tail.c (main): Likewise.
1672 * src/tee.c (main): Likewise.
1673 * src/tr.c (main): Likewise.
1674 * src/wc.c (main): Likewise.
1676 2002-08-20 Jim Meyering <jim@meyering.net>
1678 * tests/mv/setup: Rewrite not to use `: ${VAR=not_set}' paradigm.
1680 2002-08-10 Paul Eggert <eggert@twinsun.com>
1682 * src/nohup.sh: Don't use "exec --"; it's not portable and
1683 shouldn't be needed.
1685 2002-08-09 Jim Meyering <jim@meyering.net>
1687 * src/pr.c (main): Don't ignore -COLUMN if it's the last option.
1688 (usage): Clarify help text for the -COLUMN option.
1689 Patch by Padraig Brady.
1690 * tests/pr/Test.pm [col-last]: New test for the above.
1692 * configure.ac: Start with version 4.5.1, chosen so that it's larger
1693 than the latest version numbers of the component packages.
1695 * man/Makefile.am (check-x-vs-1): Set and export PATH so we use
1698 2002-08-08 Jim Meyering <jim@meyering.net>
1700 * src/date.c: Guard inclusion of <langinfo.h> with
1701 `#if HAVE_LANGINFO_CODESET', not `#if HAVE_LANGINFO_H'.
1702 * src/sort.c: Likewise.
1703 Patch by GOTO Masanori.
1705 2002-08-05 Paul Eggert <eggert@twinsun.com>
1707 Fix some minor time-related bugs with POSIX time arguments.
1708 Some valid time stamps were being rejected (notably -1, and
1709 time stamps before 1900 on 64-bit hosts). And some invalid
1710 time stamps were being accepted, e.g. September 31.
1712 * src/date.c (main): Adjust to posixtime signature change.
1713 * src/touch.c (main): Likewise. Remove unnecessary initialization.
1714 Use localtime, not posixtm, to warn about obsolete "touch".
1716 2002-08-05 Jim Meyering <jim@meyering.net>
1718 * tests/misc/Makefile.am (TESTS): Add nice and pathchk1.
1720 2002-08-04 Jim Meyering <jim@meyering.net>
1722 * src/Makefile.am (check-README): New target/rule.
1723 (check): Depend on it.
1725 * configure.ac (AC_CONFIG_FILES): Add old/Makefile and old/*/Makefile.
1727 2002-08-03 Jim Meyering <jim@meyering.net>
1729 * Makefile.am (SUBDIRS): Add old.
1730 * old/: New directory, containing legacy ChangeLog* and NEWS files
1731 from the fileutils, sh-utils, and textutils packages.
1733 * src/Makefile.am (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Set to false.
1735 2002-08-02 Paul Eggert <eggert@twinsun.com>
1737 * NEWS, doc/coreutils.texi: uniq now obeys LC_COLLATE.
1739 * src/uniq.c: Include hard-locale.h, xmemcoll.h.
1740 (hard_LC_COLLATE): New var.
1741 (different): Args are now char *, not const char *.
1742 Use xmemcoll instead of memcmp to compare lines, so that
1743 LC_COLLATE has effect. However, use memcmp if it is an
1745 (check_file): Do not include newline in comparison, so that
1746 xmemcoll has a byte to stomp on temporarily.
1747 (main): Set hard_LC_COLLATE.
1749 2002-07-29 Jim Meyering <jim@meyering.net>
1751 * Makefile.am (SUBDIRS): Remove djgpp, for now.
1753 2002-07-08 Jim Meyering <jim@meyering.net>
1755 * src/Makefile.am (uninstall-local): Search for @GNU_PACKAGE@,
1756 rather than the hard-coded `sh-utils'.
1758 2002-07-01 Jim Meyering <jim@meyering.net>
1760 * configure.ac: Merge the three files from fileutils,
1761 textutils, and sh-utils.
1762 * Makefile.am: Likewise.
1763 * src/Makefile.am: Likewise.
1766 version-control: never