1 2003-01-31 Jim Meyering <jim@meyering.net>
5 * src/du.c (main): Upon processing an invalid option or an invalid
6 --exclude-from or --max-depth option argument, don't exit right away,
7 in case there are others. Rather record the failure and exit after
8 processing other options.
10 * GNUmakefile (TAR_OPTIONS): Set and export, in order to make
11 tar archive easier to reproduce.
13 Rewrite to perform directory traversal using nftw.
15 * src/du.c: Include "dirname.h", "ftw.h", and "quotearg.h".
17 (opt_one_file_system): Move global into `main'.
18 (path, xstat, exit_status): Remove declarations.
19 (arg_length, suffix_length): New globals.
20 (G_fail): New global, sort of like the old `exit_status'.
21 (IS_FTW_DIR_TYPE): Define.
22 (print_only_size): New function.
23 (process_file): New function.
24 (str_init, ensure_space, str_copyc, str_concatc): Remove functions.
25 (str_trunc, pop_dir, count_entry): Likewise.
26 (du_files): Rewrite to use nftw.
28 2003-01-30 Jim Meyering <jim@meyering.net>
30 * tests/du/trailing-slash: Ensure that du/ftw follows a command-line
31 symlink-to-directory with -L, even without the trailing slash.
33 2003-01-27 Jim Meyering <jim@meyering.net>
35 * src/Makefile.am (check-misc): Check for st_blocks, too.
37 * src/stat.c (print_stat): Use ST_NBLOCKS rather than `->st_blocks'.
38 Reported by Richard Dawe.
40 2003-01-27 Andreas Schwab <schwab@suse.de>
42 * src/ls.c (quote_name): Add fourth parameter, width, into which to
43 store the screen columns, and return the number of bytes instead.
44 (print_dir): Pass NULL as fourth parameter of quote_name.
45 (print_name_with_quoting): Likewise.
46 (length_of_file_name_and_frills): Get the width from the fourth
47 parameter of quote_name instead of return value.
49 2003-01-27 Jim Meyering <jim@meyering.net>
51 * src/ls.c (decode_switches): If `dired' is set without
52 `format == long_format', then silently reset dired. This doesn't
53 change the behavior of ls (all prior uses of dired were protected
54 by `&& format == long_format'), and lets us...
55 (DIRED_INDENT): ... remove the `format == long_format' conjunct.
56 (PUSH_CURRENT_DIRED_POS): Likewise.
59 2003-01-22 Jim Meyering <jim@meyering.net>
61 * tests/du/no-x: New test, for functionality added to lib/ftw.c.
62 * tests/du/Makefile.am (TESTS): Add no-x.
64 2003-01-21 Jim Meyering <jim@meyering.net>
66 * src/remove.c (remove_entry) [ROOT_CAN_UNLINK_DIRS
67 && HAVE_STRUCT_DIRENT_D_TYPE]: If a file has d_type == DT_UNKNOWN
68 it may still be a directory -- or not (e.g., with FreeBSD on an
69 NFS-mounted file system), so resort to calling lstat to find out.
70 Based on a patch by Michael van Elst.
72 * tests/cp/same-file: Don't assume that the file owner username
73 length is less than 9 in ls output: instead, omit that field
74 altogether. Reported by, and suggested fix from, Ferdinand.
76 2003-01-20 Jim Meyering <jim@meyering.net>
78 * tests/date/Test.pm (wide-fmt): New test to demonstrate that
79 large format widths no longer cause strftime to infloop.
81 * Makefile.maint (mail_gpg_sign_cookie): Remove now-unused definition.
83 2003-01-19 Jim Meyering <jim@meyering.net>
85 * src/readlink.c: Include "canonicalize.h".
87 2003-01-18 Jim Meyering <jim@meyering.net>
89 * src/ls.c (Dereference_symlink) [DEREF_COMMAND_LINE_SYMLINK_TO_DIR]:
91 (enum) [DEREFERENCE_COMMAND_LINE_SYMLINK_TO_DIR_OPTION]: New member.
92 (long_options): Add option --dereference-command-line-symlink-to-dir.
93 (main): Make DEREF_COMMAND_LINE_SYMLINK_TO_DIR be the default,
94 rather than DEREF_COMMAND_LINE_ARGUMENTS, when none of the
95 -d, -F, -l options is specified.
96 (decode_switches): Handle --dereference-command-line-symlink-to-dir.
97 (gobble_file): Honor DEREF_COMMAND_LINE_SYMLINK_TO_DIR.
98 Change --dereference-command-line (-H) to dereference *all*
99 command line arguments, including broken symlinks.
101 2003-01-15 Paul Eggert <eggert@twinsun.com>
103 Change ls -H back to the way it was yesterday, since this is
104 compatible with FreeBSD and the POSIX spec is confusing
105 and somewhat contradictory.
107 * src/ls.c (DEREF_COMMAND_LINE_ARGUMENTS): Change name back
108 from DEREF_COMMAND_LINE_SYMLINK_TO_DIR, updating all uses.
109 (long_options): Change the long option name back.
110 (usage): Change the usage back.
111 (gobble_file): When -H is specified, dereference a top-level
112 arg even if it points to a non-directory.
114 2003-01-15 Jim Meyering <jim@meyering.net>
116 * src/ls.c (gobble_file): Fall back on using lstat when required:
117 when --dereference (-L) is not specified, and
118 - when operating on a dangling symlink
119 - when operating on command-line-symlink-to-directories
120 This fixes numerous problems. Here are examples:
121 - `ls dangling-symlink' would fail with `no such file...'
122 Now it prints `dangling-symlink'.
123 - `ls -i symlink' would mistakenly print the inode of the referent.
124 Now it prints the inode of the symlink. Likewise for --size (-s).
125 Based on a patch from Michael Stone.
126 Reported by Deepak Goel as Debian bug #173793.
128 Rename ls's --dereference-command-line (-H)
129 option to --dereference-command-line-symlink-to-dir.
130 * src/ls.c [enum Dereference_symlink]
131 (DEREF_COMMAND_LINE_SYMLINK_TO_DIR): Rename from
132 DEREF_COMMAND_LINE_ARGUMENTS. Update all uses.
133 (long_options): Rename the long option.
134 (usage): Say that --dereference-... changes how ls treats
135 only symlinks to directories specified on the command line.
137 2003-01-14 Jim Meyering <jim@meyering.net>
139 * tests/ls/dangle: New file/test, for the above fix.
140 * tests/ls/inode: Another new file/test, for the above fix.
141 * tests/ls/Makefile.am (TESTS): Add dangle and inode.
143 * src/ls.c (gobble_file): Fix a bug introduced in 4.5.4 that made it
144 so that ls --color would no longer highlight the names of files with
145 the execute bit set when not specified on the command line.
146 Patch by Michael Stone. Reported by Stephen Depooter as
149 * tests/ls-2/tests (color-exe): New test, for the above fix.
151 2003-01-13 Jim Meyering <jim@meyering.net>
153 * tests/shred/exact: Also test for just fixed bug with --zero.
155 * src/shred.c (long_opts): --zero does not require an argument.
156 Patch by Michael Stone. Reported by Roland Turner as Debian bug 172019.
158 2003-01-12 Jim Meyering <jim@meyering.net>
160 * Makefile.maint (cvs-update): Skip any file with local modifications.
162 * src/unexpand.c (usage): Document --first-only and mention that
163 --tabs=N (-t) enables --all (-a). Reported by wiregauze@yahoo.com.
165 2002-12-01 Dmitry V. Levin <ldv@altlinux.org>
167 * src/df.c: Include "canonicalize.h".
168 Use canonicalize_file_name unconditionally.
170 2003-01-09 Jim Meyering <jim@meyering.net>
172 * README: Add readlink.
174 2002-11-30 Dmitry V. Levin <ldv@altlinux.org>
176 * src/df.c: Include "xgetcwd.h".
177 * src/pwd.c: Likewise.
179 2002-11-30 Dmitry V. Levin <ldv@altlinux.org>
181 * src/shred.c: Remove declaration of xstrdup.
182 We already get it via xalloc.h which is included via system.h.
184 2002-08-27 Dmitry V. Levin <ldv@altlinux.org>
186 New program: readlink.
188 * src/Makefile.am (bin_PROGRAMS): Add readlink.
189 * src/readlink.c: New file.
191 * man/readlink.x: New file.
192 * man/Makefile.am (dist_man_MANS): Add readlink.1.
193 (readlink.1): New rule.
195 2003-01-09 Jim Meyering <jim@meyering.net>
197 When selecting ranges of byte offsets (as opposed to ranges of fields)
198 and when --output-delimiter=STRING is specified, output STRING between
199 ranges of selected bytes.
200 * src/cut.c (RANGE_START_SENTINEL): Define.
201 (output_delimiter_specified): New global.
202 (print_kth): Add parameter. Adjust all callers.
203 (set_fields): Mark each range-start index with RANGE_START_SENTINEL.
204 (cut_bytes): When requested, output STRING between ranges of
206 (main): Make a diagnostic a little clearer.
207 Based on a patch from Jan Nieuwenhuizen.
209 * tests/cut/Test.pm: New tests for the above.
211 * src/cut.c (set_fields): Make code agree with comment:
212 Don't merge abutting ranges like 4- and 2-3. This makes no
213 difference currently, but is required to support an upcoming change.
215 2003-01-07 Jim Meyering <jim@meyering.net>
217 * src/cut.c (set_fields): Fix typo in comment.
219 * tests/touch/not-owner: New test, mostly extracted from fail-diag.
220 * tests/touch/Makefile.am (TESTS): Add not-owner.
221 * tests/touch/fail-diag: Remove the test for non-owner diagnostic.
222 Now, this tests only the nonexistent-directory diagnostic.
223 Suggestion from Michael Stone.
225 * tests/touch/fail-diag: Fix typo: s/ld/ls/.
227 2003-01-04 Jim Meyering <jim@meyering.net>
229 * src/copy.h: Remove use of PARAMS.
230 * src/remove.h: Likewise.
231 * src/chown-core.h: Likewise.
233 rm could be tricked into mistakenly reporting a cycle.
234 * src/remove.c: [cycle_check_state]: New global.
235 (remove_cwd_entries): Adapt to new semantics of cycle_check.
236 (rm): Call cycle_check_init and cycle_check_free for each file.
237 * tests/rm/cycle (rm): New test, for the above fix.
238 * tests/rm/Makefile.am (TESTS): Add cycle.
240 When rm detects a cycle, don't abort the entire command,
241 but rather just the affected command line argument.
242 * src/remove.c: Include <setjmp.h>
243 (struct dirstack_state) [current_arg_jumpbuf]: New member.
244 (remove_cwd_entries): Call longjmp if we detect a cycle.
245 (rm): Call setjmp here.
247 * src/remove.c (cycle_check, is_power_of_two): Remove functions.
248 Instead, include cycle-check.h and use it.
250 * src/remove.h (struct dev_ino): Remove declaration.
252 * src/remove.c (remove_cwd_entries): Fix typos in comment.
254 Don't include trailing /. in diagnostics about directories.
255 * src/remove.c (full_filename_): When FILENAME is just `.'
256 and there is a nonempty directory-name part, don't append `/.'.
257 * tests/rm/unread2: Remove trailing /. from diagnostic.
258 * tests/rm/rm2: Likewise.
260 * src/remove.c (struct dirstack_state): Define.
261 To be used in place of these file-scoped globals ...
262 (dir_stack, len_stack, Active_dir): Remove globals.
263 (ds_init, ds_free): New functions.
264 (full_filename): Define.
265 (full_filename_): Rename from full_filename.
267 Begin to make AD_* functions more generic.
268 * src/remove.c (AD_push_initial): Don't set status to RM_OK here.
270 (AD_INIT_OTHER_MEMBERS): Define.
271 (remove_dir): Define the `status' member manually after each
272 call to AD_push or AD_push_initial.
274 * src/Makefile.am (check-misc): New rule, to ensure that no more
275 S_IS* macro definitions sneak into the code.
276 (check): Depend on check-misc.
278 * src/remove.c [S_ISLNK]: Don't define. It's already defined in sys2.h.
279 * src/du.c (count_entry) [S_ISLNK]: Don't define.
280 * src/shred.c [S_ISLNK, S_ISFIFO, S_ISSOCK]: Don't define.
282 2003-01-03 Jim Meyering <jim@meyering.net>
284 * src/true.c: Add copyright.
285 (AUTHORS): I suppose I've written it.
287 * src/Makefile.am (false.c): Make the generated file be read-only.
289 2003-01-04 Jim Meyering <meyering@lucent.com>
291 * src/ls.c: Include "dev-ino.h".
292 [struct dev_ino]: Remove declaration.
294 2003-01-02 Jim Meyering <meyering@lucent.com>
296 * src/cp.c (do_copy): Tweak diagnostic to be consistent with the one
297 from mv: s/missing file arguments/missing file argument/.
298 With --target-directory=DIR, cp and mv work with a single file argument.
299 Reported by Karl Berry.
301 * tests/rm/isatty: Enable this test.
303 2002-12-31 Jim Meyering <meyering@lucent.com>
305 * src/remove.c (AD_push_initial): Don't set status to RM_OK here.
307 (AD_INIT_OTHER_MEMBERS): Define.
308 (remove_dir): Define the `status' member manually after each
309 call to AD_push or AD_push_initial.
311 * src/ls.c [struct dev_ino]: Remove definition.
312 Include "dev-ino.h" instead.
314 2002-12-28 Jim Meyering <meyering@lucent.com>
316 * tests/du/Makefile.am (TESTS): Add no-deref.
317 * tests/du/no-deref: New script.
319 2002-12-23 Jim Meyering <meyering@lucent.com>
321 * src/remove.c (remove_cwd_entries): Fix typo in comment.
323 2002-12-21 Jim Meyering <jim@meyering.net>
325 * announce-gen: Generate MML-formatted announcement.
326 This makes it a *lot* harder to send stale MD5/SHA1 signatures.
328 2002-12-20 Jim Meyering <jim@meyering.net>
330 * src/touch.c (touch): Change the wording of a diagnostic so
331 that it makes sense both when the file exists and when it doesn't.
332 Suggestion from Michael Stone.
334 2002-12-18 Jim Meyering <jim@meyering.net>
336 * src/stty.c (valid_options): Declare to be static.
338 2002-12-15 Jim Meyering <jim@meyering.net>
340 * Makefile.cfg: Remove rules related to generating m4/jm-glibc-io.m4.
342 * src/chmod.c, src/copy.c, src/copy.h, src/cp-hash.h, src/csplit.c:
343 * src/date.c, src/expr.c, src/fmt.c, src/id.c, src/install.c:
344 * src/ls.c, src/od.c, src/pathchk.c, src/pr.c, src/remove.c:
345 * src/shred.c, src/sort.c, src/stat.c, src/stty.c, src/sum.c:
346 * src/tee.c, src/test.c: Remove all uses of `PARAMS'.
348 * src/remove.c (PARAMS): Remove definition.
349 * src/sys2.h: Likewise.
351 * src/ls.c, src/stat.c, src/date.c: Remove declaration of nstrftime.
352 Include strftime.h instead.
354 2002-12-14 Jim Meyering <jim@meyering.net>
356 * Makefile.cfg ($(url_dir_list)): Use .../coreutils, not .../fetish.
358 * src/system.h [! HAVE_DECL_MEMRCHR]: Declare memrchr.
359 This is necessary at least for Irix6.5 when using c89.
360 Reported by Nelson Beebe.
362 * tests/misc/Makefile.am (TESTS): Add cat-tty-eof.
364 * tests/misc/cat-tty-eof: New test.
366 * src/mknod.c (usage): Specify how major and minor mode numbers
367 are interpreted. Report forwarded by Kristin E Thomas.
368 * src/mknod.c: Remove now-redundant usage-specifying comment.
370 2002-12-13 Jim Meyering <jim@meyering.net>
374 * tests/du/trailing-slash: Allow for a directory of size `0'.
375 That happens at least on file systems of type tmpfs on linux-2.4.18.
377 * announce-gen: New script to begin replacing the commands
378 associated with the rule here...
379 * Makefile.maint (announcement): Invoke announce-gen.
380 * Makefile.am (EXTRA_DIST): Add announce-gen.
382 * tests/cp/preserve-2: New file/test, for latest fix.
383 * tests/cp/Makefile.am (TESTS): Add preserve-2.
385 2002-12-11 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
387 Fix a bug whereby cp would fail to parse an option like
388 --preserve=mode,ownership.
389 * src/cp.c (decode_preserve_arg): Advance `comma' to
390 point the character following the comma.
392 2002-12-11 Jim Meyering <jim@meyering.net>
394 * src/pathchk.c (NEED_PATHCONF_WRAPPER): Undefine before defining,
395 in case it's already defined.
397 2002-12-09 Jim Meyering <jim@meyering.net>
399 * tests/touch/fail-diag: Don't get a test failure if /no exists.
400 Instead, evoke a framework failure if /no-$$ exists.
401 Reported by Michael Stone.
403 2002-12-08 Jim Meyering <jim@meyering.net>
405 * src/du.c (lstat) [! LSTAT_FOLLOWS_SLASHED_SYMLINK]:
406 Define to rpl_lstat, so that even on systems like Solaris 2.8,
407 du honors (per POSIX) the trailing slash on an argument referring
408 to a symlink-to-directory.
410 2002-12-06 Jim Meyering <jim@meyering.net>
412 * Use autoconf-2.57. Regenerate dependent files.
413 * Use automake-1.7.2. Regenerate dependent files.
415 * src/ls.c (gobble_file): Also stat the file if it's a
416 regular file and --indicator-style=classify (aka -F).
417 Thanks to Ed Santiago for opening my eyes.
419 * tests/ls/file-type: New file. Test for the above.
420 A test to contrast ls -F and ls --indicator-style=file-type.
421 * tests/ls/Makefile.am (TESTS): Add file-type.
423 2002-12-04 Jim Meyering <jim@meyering.net>
425 * tests/ls/follow-slink: Make sure the symlink was created.
426 Richard Dawe reported that `ln -s link link' succeeds, but creates
427 no file on systems running some version of the DJGPP libc.
429 2002-12-03 Jim Meyering <jim@meyering.net>
431 * src/Makefile.am (AUTOMAKE_OPTIONS): Remove definition (to ansi2knr)
432 since this package no longer panders to K&R compilers.
434 2002-12-02 Jim Meyering <jim@meyering.net>
436 * tests/du/slink: Skip this test if `.' is on a non-local file system.
438 * tests/Fetish.pm (_at_replace): Do the substitution only if there's
439 something to replace.
441 2002-12-01 Jim Meyering <jim@meyering.net>
443 * src/stat.c: Don't include <string.h> or <ctype.h>.
444 That's already done via system.h.
445 * src/dircolors.c: Don't include <ctype.h>.
447 2002-11-30 Jim Meyering <jim@meyering.net>
449 * ls.c (gobble_file): Remove the block of code that caused
450 `ls --color -F symlink-to-dir' to list the files in
451 `symlink-to-dir/.'. Now, it prints `symlink-to-dir@', (just
452 like `ls -F symlink-to-dir') but with the addition of highlighting.
453 Similarly, `ls --color -dF symlink-to-dir' would print
454 `symlink-to-dir/'; now it prints `symlink-to-dir@'.
455 Reported by Jeff Sheinberg as Debian bug #168203.
456 * tests/ls-2/tests (sl-F-color, sl-dF-color): New tests for the above.
458 ls is now more efficient: with certain options, it no longer needs
459 to stat each directory entry on systems with valid dirent.d_type.
460 * src/ls.c (print_dir): Add DT_LNK and DT_REG.
461 (main): Make --recursive set format_needs_type, not format_needs_stat.
462 (gobble_file): Remove a FIXME comment, now that it's fixed.
464 2002-11-24 Jim Meyering <jim@meyering.net>
466 * src/du.c (du_files): Don't strip any trailing slash.
467 Rewrite so that `/' is no longer represented internally as
469 (count_entry): When appending a file name component,
470 account for the fact that the current path may end in `/'.
471 François Pinard reported that `du symlink-to-dir/' was not
472 equivalent to `du symlink-to-dir/.'. Now it is.
473 * tests/du/trailing-slash: New file/test, for the above fix.
474 * tests/du/Makefile.am (TESTS): Add trailing-slash.
476 2002-11-23 Jim Meyering <jim@meyering.net>
478 * src/tac.c (output): Declare some local variables to be of type size_t,
479 rather than `int' to avoid warnings from gcc.
481 2002-11-21 Paul Eggert <eggert@twinsun.com>
483 * src/ls.c (decode_switches): Use case-sensitive matching to
484 decode the QUOTING_STYLE environment variable. This is more
485 consistent with the documentation, and with --quoting-style.
487 2002-11-21 Martin Buck <martin.buck@ascom.ch
489 * src/stty.c (struct speeds): Add support for all baud rates defined
492 2002-11-19 Jim Meyering <jim@meyering.net>
494 * tests/sum/sysv: Export LC_ALL=C, to avoid failure when
495 run in a UTF locale. Report and suggested fix by Bruno Haible.
496 * tests/fmt/basic: Likewise.
498 2002-11-17 Jim Meyering <jim@meyering.net>
500 * configure.ac: Update via autoupdate.
501 Add `AM_GNU_GETTEXT_VERSION(0.11.5)'.
503 * src/mv.c (movefile): Don't remove trailing slashes from SOURCE.
504 Reported by Hans Ginzel.
506 2002-11-15 Jim Meyering <jim@meyering.net>
508 * Makefile.cfg (gnu_rel_host): Define.
509 (url_dir_list): Choose from (alpha|ftp).gnu.org depending
510 on whether $(VERSION) looks like a major release number.
512 * Makefile.maint (mail_gpg_sign_cookie): Backslash-escape `#'.
513 (release): Rename from `alpha'.
514 (alpha): Depend on release.
516 * Makefile.maint (signatures): Define with ?=, so it's easy to override.
518 2002-11-14 Jim Meyering <jim@meyering.net>
520 * Makefile.maint (mail_gpg_sign_cookie): Make optional.
521 (announcement): Use the new variable.
523 * Makefile.maint: Sync with Bison, i.e.:
524 (po-check): Scan .l and .y files instead of the
525 .c and the .h files that they generate. This fixes the bug
526 reported by Tim Van Holder in:
527 <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
528 Look for N_ as well as for _. Try to avoid matching #define for
532 2002-11-12 Jim Meyering <jim@meyering.net>
534 * src/ls.c (HAVE_SYMLINKS): Remove unnecessary macro definition.
535 Replace sole use with equivalent `#ifdef S_ISLNK'.
536 Inconsistency reported by Dmitry V. Levin.
538 2002-11-11 Jim Meyering <jim@meyering.net>
540 * src/stat.c (usage): Transform --help items output via s/ - / /,
541 so that help2man produces properly formatted man pages.
542 Reported by Herbert Xu as Debian bug #168400.
544 2002-11-10 Jim Meyering <jim@meyering.net>
546 * src/ls.c (sighandler): Handle SIGTSTP specially.
547 Based on suggestions from Solar Designer and Dmitry V. Levin.
550 * Makefile.cfg (cvs_files): Define. From autoconf.
551 (local_updates): Likewise.
553 * src/ls.c (restore_default_color_handler, sigtstp_handler):
555 (sighandler): New function, based on the one in sort.c.
556 (main): Use sigaction, if possible; otherwise signal.
557 Handle these signals:
558 SIGHUP, SIGINT, SIGPIPE, SIGQUIT, SIGTERM, SIGTSTP.
559 Don't register our handler if the signal is already being ignored.
561 * src/dd.c (interrupt_handler): Use raise, rather than kill+getpid.
562 * src/csplit.c (interrupt_handler): Likewise.
563 * src/sort.c (sighandler): Likewise.
564 (main): Declare `i' and `nsigs' to be unsigned, not int.
566 2002-11-09 Jim Meyering <jim@meyering.net>
568 ls --color: restore terminal text color upon signal.
569 * src/ls.c: Include "full-write.h" and <signal.h>.
570 (restore_default_color, restore_default_color_handler): New functions.
571 (sigtstp_handler, put_indicator_direct): New functions.
572 (main) [print_with_color]: Register signal handlers.
573 Patch mostly by Solar Designer and Stanislav Ievlev.
575 Update from autoconf.
576 * Makefile.maint (AMTAR): Remove definition.
577 (update, cvs-update, po-update, do-po-update): New rules.
578 (wget-update): Update (thus renaming to cvs-update).
579 (automake_repo): Use anoncvs@sources.redhat.com.
581 2002-11-06 Jim Meyering <jim@meyering.net>
583 * tests/misc/Makefile.am (TESTS): Add printf-hex.
585 * tests/misc/printf: Be careful to test the code in this package,
586 not the shell built-in function.
588 * src/printf.c (print_esc): A hexadecimal escape sequence has
589 at most two hex. digits, not three. Reported by Padraig Brady.
590 (usage): Update description.
591 * tests/misc/printf-hex: New file/test, for the above fix.
593 2002-10-07 Paul Eggert <eggert@twinsun.com>
595 Add support for locale-specific size indications (e.g.,
596 thousands-separators) and for explicit size suffixes on output.
598 * doc/coreutils.texi (Block size): Say that:
599 This affects display format as well as block size.
600 Fractional block counts are rounded up.
601 ls file size blocksize defaults to 1.
602 A block size spec preceded by ' generates thousands separators.
603 A suffix without a preceding integer generates suffixes.
604 (tail invocation): 32k -> 32 KiB.
605 (What information is listed): ls -h is now equivalent to
606 ls --block-size=human, and ls -H is now equivalent to
607 ls --block-size=si. Displayed file size is now always affected by
610 * lib/inttostr.c, lib/inttostr.h, lib/imaxtostr.c, lib/offtostr.c,
611 lib/umaxtostr.c: New files, taken from GNU tar.
613 * lib/Makefile.am (libfetish_a_SOURCES): Add imaxtostr.c, offtostr.c,
615 (EXTRA_DIST): Add inttostr.c.
617 * lib/human.c, lib/human.h: Rewrite to support locale-specific
618 notations like thousands separators.
619 Specify what includer of include.h must include beforehand.
620 (human_group_digits, human_suppress_point_zero, human_autoscale,
621 human_base_1024, human_SI, human_B): New enum values.
622 (human_readable): Rename from human_readable_inexact; put the
623 options before the sizes. All uses changed. The old human_readable
624 function has been removed; use inttostr.h instead.
625 (human_options): Renamed from human_block_size, with new signature
626 that allows block sizes up to UINTMAX_MAX. All callers changed.
628 * m4/prereq.m4 (jm_PREREQ_HUMAN): Check for locale.h, localeconv,
629 AC_HEADER_STDBOOL. No need to check for limits.h since it's in
630 freestanding C89. No need to check for stdlib.h or string.h since
631 autoconf does this now.
633 * src/cksum.c (cksum): Use primitives from inttostr.h, not
634 human.h, to print large numbers simply.
635 * src/csplit.c (handle_line_error, parse_patterns): Likewise.
636 * src/dd.c (print_stats, main): Likewise.
637 * src/df.c (print_header): Likewise.
638 * src/factor.c (print_factors): Likewise.
639 * src/ls.c (print_long_format, print_file_name_and_frills): Likewise.
640 * src/shred.c (dopass): Likewise.
641 * src/sort.c (checkfp): Likewise.
642 * src/sum.c (bsd_sum_file, sysv_sym_file): Likewise.
643 * src/tail.c (xlseek): Likewise.
644 * src/wc.c (write_counts, wc): Likewise.
646 * src/df.c (human_output_opts): New var.
647 (output_block_size): Now uintmax_t, not int, to handle larger
648 block sizes. All uses changed.
649 * src/du.c: Likewise.
650 * src/ls.c: Likewise.
652 * src/df.c (print_header): In the header line, prefer SI to human
653 representation if it's shorter; if neither is shorter, try to
654 intuit what the user would prefer.
656 * src/expr.c (inttostr): Remove; use new imaxtostr library
659 * src/ls.c (file_output_block_size): New var, to distinguish
660 file sizes from other sizes.
661 (decode_switches): Set it.
663 * src/shred.c (OUTPUT_BLOCK_SIZE): remove.
664 (dopass): When printing progress, use floor for what has been done
665 so far (since we should be conservative there), and ceiling for
666 what needs to be done (since that's what other programs use).
668 2002-10-19 Jim Meyering <jim@meyering.net>
670 * src/pinky.c (print_heading): Align TTY and Name headings.
671 Reported by Karl Eichwalder.
673 2002-10-18 Jim Meyering <jim@meyering.net>
675 * src/split.c (cwrite): Change type of `bytes' parameter to size_t
676 Remove now-useless cast.
677 (stdread): Remove function.
678 (bytes_split): Use size_t instead of int.
679 Use safe_read, not stdread.
680 (lines_split): Likewise.
681 Use memchr rather than a `while' loop.
682 (line_bytes_split): Use size_t instead of int.
683 Use safe_read, not stdread.
684 (main): Add some FIXME comments to remind me to remove casts.
686 * src/system.h (ST_BLKSIZE): Correct comment describing how to
687 reproduce HPUX-11 cat failure. From Petter Reinholdtsen.
689 2002-10-17 Jim Meyering <jim@meyering.net>
691 Fix a problem that could make e.g., `cat' misbehave on systems which
692 give invalid (unreasonably large) values for stat.st_blksize.
693 * src/system.h (ST_BLKSIZE): Ensure that the result is in [1..4MB].
694 Reported by Petter Reinholdtsen.
696 2002-10-14 Jim Meyering <jim@meyering.net>
698 Specifying a printf conversion specifer as nl's separator string
699 could cause nl to segfault.
700 * src/nl.c (build_print_fmt): Don't include separator string
701 in the printf format; it might contain `%'.
702 Use a better bound on the length of the print_fmt buffer.
703 (print_lineno): Print the separator here instead.
704 Reported by Doug Coleman.
706 * tests/misc/nl: New file/tests, including a test for the above.
707 * tests/misc/Makefile.am (TESTS): Add nl.
709 * tests/misc/split-l: New test, to make sure `split --lines=N' works.
710 * tests/misc/Makefile.am (TESTS): Add split-l.
712 2002-10-13 Jim Meyering <jim@meyering.net>
716 * src/du.c (usage): Tweak description of --dereference-args/-D.
718 * src/du.c (count_entry): Also save cwd when dereferencing (via
719 --dereference-args, -D) a command-line argument.
720 Reported by Michal Svec. Based on a patch by Andreas Schwab.
722 * src/Makefile.am (../AUTHORS): New target/rule.
724 2002-10-12 Jim Meyering <jim@meyering.net>
726 * src/paste.c (paste_parallel): Declare local, `delims_saved', to be
727 of type size_t, since that's the way it's used and avoids a warning.
729 * src/csplit.c (struct cstring) [len]: Declare to be unsigned int,
730 since that's how it's always used and avoids a new warning from gcc.
731 (read_input): Adapt to new safe_read ABI.
733 * src/cut.c (cut_fields): Add a temporary size_t variable, n_bytes,
736 * src/pinky.cdereference-command-line-symlink-to-dir (print_long_entry): fread returns size_t.
737 Declare local `bytes' accordingly, to avoid warning.
739 tail -c +N would perform an extra read after encountering EOF
740 [this change is analogous (bytes vs. lines) to the one of 2002-01-27]
741 * src/tail.c (start_bytes): Detect EOF, inform caller.
742 (tail_bytes): Upon EOF in start_bytes, return immediately.
743 (file_lines): Reorganize to use memrchr rather than an explicit loop.
744 Adapt to new safe_read ABI.
746 2002-10-11 Jim Meyering <jim@meyering.net>
748 * tests/du/deref: New file/test, for the above fix.
749 * tests/du/Makefile.am (TESTS): Add deref.
751 2002-10-10 Jim Meyering <jim@meyering.net>
753 * tests/ln/Makefile.am (TESTS): Add target-1.
754 * tests/ln/target-1: New file/test, for the fix on 2002-10-08.
756 2002-10-09 Jim Meyering <jim@meyering.net>
758 * tests/cp/backup-is-src: Ensure that certain environment variables
759 are not set (e.g., SIMPLE_BACKUP_SUFFIX). Reported by Duncan Roe.
761 * tests/tail-2/big-4gb: Mark this as an expensive test; it would
762 consume 4GB of disk space on systems without support for sparse files.
763 Fix a logic error that'd make it `cat err' even though dd didn't fail.
765 * src/dircolors.hin (.jar): Fix typo: s/;3$/;31/.
766 Patch by steven@magelico.net, forwarded by Michael Stone.
768 * tests/ls/dired: Ensure that ls produces English messages.
769 Patch by Alexey Vyskubov, forwarded by Michael Stone.
771 2002-10-08 Dmitry V. Levin <ldv@altlinux.org>
773 * src/ln.c (main): Fix target_directory parsing when n_files == 1.
775 2002-10-08 Jim Meyering <jim@meyering.net>
777 * tests/tail-2/big-4gb: Use double quotes around diagnostic.
778 Fix syntax in test: use =, not ==.
779 Reported by Bob Proulx.
780 Change all the rest like this: grep -lR "testing framework'" .\
781 |xargs perl -pi -e 's/'\''(\$0: failure in testing framework)'\''/"$1"/'
783 * src/sum.c (sysv_sum_file): Adapt to new safe_read ABI.
784 * src/tr.c (squeeze_filter, read_and_delete, read_and_xlate): Likewise.
785 * src/tac.c (save_stdin, tac_stdin_to_mem): Likewise.
786 * src/wc.c (wc): Likewise.
788 2002-10-07 Paul Eggert <eggert@twinsun.com>
791 Don't advance the write pointer past the end of the write buffer.
792 * src/sort.c (begfield, limfield): Likewise.
794 2002-10-07 Jim Meyering <jim@meyering.net>
796 * src/cat.c (simple_cat, cat): Adapt to new safe_read ABI.
797 * src/head.c (head_bytes, head_lines): Likewise.
799 2002-10-06 Jim Meyering <jim@meyering.net>
801 * src/dd.c (scanargs): Ensure that specified block sizes (specified
802 via ibs=N, obs=N, and bs=N) are no larger than SSIZE_MAX.
803 (skip, dd_copy): Adapt to new safe_read ABI.
805 * Makefile.maint (signatures): Define.
807 (announcement): Depend on $(signatures).
809 * Makefile.maint (announcement): Output all URLs for detached
810 signatures, not just the last one from the previous loop.
812 2002-10-05 Jim Meyering <jim@meyering.net>
816 * src/remove.c (remove_entry) [ROOT_CAN_UNLINK_DIRS]: With `rm -i DIR',
817 don't recurse into directory, DIR. Prompted by a report from
820 * tests/rm/i-no-r: New file/test, for the above fix.
821 * tests/rm/Makefile.am (TESTS): Add i-no-r.
823 * tests/tail-2/big-4gb: New file/test, for the fix of 2002-09-27.
824 * tests/tail-2/Makefile.am (TESTS): Add big-4gb.
826 2002-10-03 Jim Meyering <jim@meyering.net>
828 * src/rm.c (AUTHORS): Mark translatable string with `N_ (...)'.
829 * src/df.c (AUTHORS): Likewise.
830 * src/du.c (AUTHORS): Likewise.
831 * src/tail.c (AUTHORS): Likewise.
832 * src/touch.c (AUTHORS): Likewise.
834 2002-10-02 Jim Meyering <jim@meyering.net>
836 * Makefile.am (SUBDIRS): Remove `old'.
837 (EXTRA_DIST): List the files in old/.
838 * configure.ac (AC_CONFIG_FILES): Remove old/* names.
839 Suggestion from Akim Demaille.
841 2002-10-01 Jim Meyering <jim@meyering.net>
843 * src/sys2.h (SSIZE_MAX): Define.
845 2002-09-30 Jim Meyering <jim@meyering.net>
847 * src/csplit.c: Don't include stdlib.h here. It's already included
850 2002-09-29 Jim Meyering <jim@meyering.net>
852 * src/tr.c (find_bracketed_repeat): Rearrange pointer/integer
853 expression to avoid bogus warning from gcc.
855 * src/cat.c (simple_cat): Use a temporary to avoid bogus warnings.
856 (cat): Declare insize and outsize to be of type size_t, not int.
857 Rearrange pointer/integer expressions to avoid bogus warnings.
858 (main): Declare insize and outsize to be of type size_t, not int.
860 * src/tail.c (parse_options): Give a sensible diagnostic for
861 an invalid byte or line count. Reported by Mikko Tuumanen.
863 * src/touch.c (main): Split a long line.
865 * tests/du/Makefile.am (TESTS): Add slink.
866 * tests/du/slink: New test for system.h change of 2002-08-31.
868 In move mode, always first try to rename. Before, upon failure to
869 rename a directory, this code would never attempt to rename any
870 other file in that directory, but would thenceforth always copy.
871 On some systems (e.g., NetApp's OnTap-6.4), renaming a directory
872 may fail with EXDEV, yet renaming files within that directory to
873 a newly-created destination directory succeeds.
874 * src/copy.c (copy_internal): Remove local, move_mode;
875 use x->move_mode instead. Based on a patch from Tom Haynes.
877 2002-09-28 Jim Meyering <jim@meyering.net>
879 * src/split.c (FAIL_ONLY_ONE_WAY): New macro.
880 Factor out some duplication.
882 [case 'a']: Use strtoul rather than strtol to avoid compiler warnings.
884 * src/sort.c (begfield, limfield): Rearrange comparisons to avoid
886 (fillbuf, keycompare): Cast literal `-1' to size_t in comparisons,
887 to avoid compiler warnings.
889 * src/shred.c (dopass): Use a uintmax_t temporary to avoid bogus
892 Fix things so `mkdir -p' can create very deep directories, e.g.,
893 mkdir -p $(perl -e 'print "a/" x 40000') now works.
894 * src/mkdir.c (main): For --parents (-p), call make_path with the
895 entire directory name, so we don't ever require that file operations
896 like stat or chmod be performed on the entire command line argument.
897 * makepath.c (make_path): Restore umask *before* creating the final
900 2002-09-27 Andreas Schwab <schwab@suse.de>
902 * src/tail.c (tail_bytes): Change type of bytes_remaining to off_t
903 to avoid overflow. Reported by Hans Lermen.
905 2002-09-26 Jim Meyering <jim@meyering.net>
907 * src/install.c (get_ids): Use strtoul, not strtol. Remove some casts.
909 2002-09-25 Jim Meyering <jim@meyering.net>
911 * src/test.c (eaccess): Change type of local `euid' from int to uid_t
912 and add a cast, to avoid a warning about `signed and unsigned type in
913 conditional expression'.
915 2002-09-22 Jim Meyering <jim@meyering.net>
917 * src/rmdir.c: Include "dirname.h", for declaration of
918 strip_trailing_slashes.
920 * src/stat.c (PRIdMAX, PRIuMAX): Remove definitions.
921 Now they're defined through system.h.
923 * src/cp-hash.c, src/dd.c, src/df.c, src/du.c, src/ls.c,
924 * src/stat.c, src/wc.c: Remove all inclusions of inttypes.h,
925 since it's already included from sys2.h via system.h.
927 * Use automake-1.6f. Regenerate dependent files.
929 * src/Makefile.am (PERL): Remove duplicate definition.
931 fmt's -s, -t, -c options didn't work properly for long lines.
932 Since get_line may end up calling put_paragraph (for long lines),
933 be sure to set global, `other_indent', before it is used there.
935 * src/fmt.c (set_other_indent): New function, factored out of...
936 (get_paragraph): ... here. Call it.
937 (get_line): Call set_other_indent before calling flush_paragraph,
938 which calls fmt_paragraph, which in turn calls put_paragraph,
939 which uses other_indent.
941 * tests/fmt/Makefile.am (TESTS): Add long-line.
942 * tests/fmt/long-line: New file/test, for the above fix.
944 2002-09-21 Jim Meyering <jim@meyering.net>
946 * src/od.c: No longer include deprecated <values.h>.
947 It was required solely for now-removed reference to BITSPERBYTE.
948 * src/install.c: Likewise.
949 Suggestion from Bruno Haible.
951 2002-09-06 Andreas Schwab <schwab@suse.de>
953 `rmdir -p dir-specified-with-trailing-slash/' would fail.
954 * src/rmdir.c (remove_parents): Strip trailing slashes.
956 2002-09-20 Jim Meyering <jim@meyering.net>
958 * tests/rmdir/t-slash: New file/test, for the above fix.
959 * tests/rmdir/Makefile.am (TESTS): Add t-slash.
961 * Makefile.maint (announcement): Arrange to gpg-sign the message.
962 Add a URL for each detached signature file.
964 2002-09-07 Bruno Haible <bruno@clisp.org>
966 * configure.ac: Add need-ngettext to AM_GNU_GETTEXT invocation.
968 2002-09-18 Jim Meyering <jim@meyering.net>
970 `od -t x8' used the wrong (`l'-prefixed) printf format.
971 Likewise for the o8 and u8 formats.
972 * src/od.c (ISPEC_TO_FORMAT): Define macro.
973 (decode_one_format): Use PRIdMAX, PRIoMAX, etc. for LONG_LONG.
974 Reported by Arun Sharma.
976 2002-09-17 Jim Meyering <jim@meyering.net>
978 * src/sys2.h (PRIdMAX, PRIoMAX, PRIuMAX, PRIxMAX): Define if necessary.
979 From gettext's intl/loadmsgcat.c.
981 * tests/od/x8: New file/test, for the above fix.
982 * tests/od/Makefile.am (TESTS): Add x8.
984 2002-09-15 Jim Meyering <jim@meyering.net>
986 * Use autoconf-2.54. Regenerate dependent files.
988 * src/csplit.c (get_format_width): Add cast to avoid
989 warning about `signed and unsigned type in conditional expression'.
991 2002-09-14 Jim Meyering <jim@meyering.net>
993 * src/who.c (print_user): Change type of local to size_t
994 to avoid warnings about `comparison between signed and unsigned'.
995 * src/ptx.c (generate_all_output): Likewise.
997 * src/dd.c (main, skip): Add casts to avoid warnings about
998 `comparison between signed and unsigned'.
1000 * src/id.c (print_full_info, print_group_list): Add casts to avoid
1001 warnings about `signed and unsigned type in conditional expression'.
1003 * src/md5sum.c: Change type of global, digest_hex_bytes, to size_t
1004 to avoid warnings about `comparison between signed and unsigned'.
1005 (split_3): Change parameter names to be readable and add comment.
1006 Clean up the test for whether a line may be ignored.
1008 2002-09-13 Jim Meyering <jim@meyering.net>
1010 * src/printf.c (main): Handle leading command line argument of `--'.
1011 Reported by Raul: DervishD <raul@pleyades.net>
1012 * tests/misc/printf: New file: test for the above.
1013 * tests/misc/Makefile.am (TESTS): Add printf.
1015 * src/date.c (usage): Explain that %S's range of [0..60] is required --
1016 rather than 0..59 -- to accommodate the occasional positive leap second.
1017 Reported by Richard Neill.
1019 2002-09-12 Jim Meyering <jim@meyering.net>
1021 * src/Makefile.am (nanosec_libs): Define.
1022 (sleep_LDADD, tail_LDADD): Use it here.
1024 Factor nanosleep-related code into ../lib/xnanosleep.c.
1025 * src/sleep.c: Include xnanosleep.h.
1026 Factor out fenv.h-related code.
1027 (timespec_subtract): Remove function.
1028 (main): Remove code that deals with computing start and stop times
1029 as well as the loop around nanosleep. Now that's in xnanosleep.c.
1031 Allow S (in --sleep-interval=S) to be a floating point value.
1032 * src/tail.c: Include xnanosleep.h and xstrtod.h.
1033 Move declaration of global variable, sleep_interval, to ...
1035 (usage): Update description of --sleep-interval option.
1036 (tail_forever): New parameter, sleep_interval. Update caller.
1037 Use xnanosleep, rather than sleep.
1038 (parse_options): New parameter, sleep_interval. Update caller.
1039 Use xstrtod, now that we accept floating point values.
1040 Prompted by a patch from Augey Mikus.
1042 2002-09-06 Jim Meyering <jim@meyering.net>
1044 * src/remove.c (prompt): Change comment to give a better note to
1045 translators. From Michael Piefel.
1047 2002-09-02 Jim Meyering <jim@meyering.net>
1049 * README: A good problem report/patch includes diffs against
1050 the most recent test release.
1052 * src/pathchk.c (NEED_PATHCONF_WRAPPER): Define.
1053 (pathconf_wrapper): Define only if NEED_PATHCONF_WRAPPER is set.
1055 * src/kill.c (print_table_row): Use an unsigned type for widths
1056 to avoid warning about comparison between signed and unsigned.
1057 (list_signals): Likewise.
1059 * src/od.c (skip): Add a cast to avoid warning about comparison
1060 between signed and unsigned.
1061 * src/install.c (get_ids): Likewise. Also rearrange range-checking
1062 comparisons to make them more readable.
1064 2002-09-01 Jim Meyering <jim@meyering.net>
1068 2002-08-31 Jim Meyering <jim@meyering.net>
1070 Symlinks were always reported as using 0 blocks.
1071 * src/system.h (ST_NBLOCKS): Don't depend on file type.
1072 This reverts the change of 2000-01-30.
1073 Based on a report and patch from Neil Brown via Michael Stone.
1074 This fixes Debian Bug#156358.
1076 * Most files: Change `exit (0)' to `exit (EXIT_SUCCESS)',
1077 `exit (1)' to `exit (EXIT_FAILURE)', and
1078 `usage (1)' to `usage (EXIT_FAILURE)'.
1080 * chgrp.c, chmod.c, chown.c, chroot.c, cp.c, date.c, dd.c, du.c,
1081 * hostname.c, id.c, install.c, ln.c, mkdir.c, mkfifo.c, mknod.c,
1082 * nice.c, pinky.c, printf.c, pwd.c, shred.c, sleep.c, stty.c,
1083 * su.c, tac-pipe.c, tail.c, tee.c, touch.c, uname.c, uptime.c,
1084 * users.c, who.c: Change `error (1, ...' to `error (EXIT_FAILURE, ...'.
1085 But don't change `error (0, ...' to `error (EXIT_SUCCESS, ...', since
1086 error never exits successfully.
1088 2002-08-29 Jim Meyering <jim@meyering.net>
1090 * src/remove.c (remove_cwd_entries): Use closedir (not CLOSEDIR)
1091 when ignoring any return value.
1093 * src/remove.c (remove_cwd_entries): Detect and diagnose readdir
1094 failures. On some systems (at least EMC Celerra and Solaris5.8),
1095 this appears to be necessary.
1096 (is_empty_dir): Likewise. Also, always close directory handle.
1097 * src/ls.c (print_dir): Likewise.
1098 (print_dir): Rename local variable: reading -> dirp.
1099 Reported by Mike Coleman.
1101 2002-08-28 Jim Meyering <jim@meyering.net>
1103 * src/remove.c (remove_cwd_entries): Use CLOSEDIR, not closedir.
1104 Give a diagnostic and fail if closedir fails.
1106 2002-08-26 Jim Meyering <jim@meyering.net>
1108 * Makefile.am (THANKS-to-translators): New rule.
1109 (EXTRA_DIST): Add both THANKS-to-translators and THANKStt.in.
1110 * THANKStt.in: New file.
1112 * src/cat.c (close_stdout_wrapper): New, kludgey, function and
1114 (main): Register it with atexit.
1115 Close STDOUT_FILENO, to avoid a problem when writing to
1116 /dev/audio on at least Solaris 2.7 and 2.8 systems.
1117 Reported by Shing-Shong Shei.
1119 2002-08-25 Jim Meyering <jim@meyering.net>
1121 * src/cat.c (main): Close STDIN_FILENO rather than a literal `0'.
1122 * src/tac.c (main): Likewise.
1123 * src/tail.c (main): Likewise.
1124 * src/tee.c (main): Likewise.
1125 * src/tr.c (main): Likewise.
1126 * src/wc.c (main): Likewise.
1128 2002-08-20 Jim Meyering <jim@meyering.net>
1130 * tests/mv/setup: Rewrite not to use `: ${VAR=not_set}' paradigm.
1132 2002-08-10 Paul Eggert <eggert@twinsun.com>
1134 * src/nohup.sh: Don't use "exec --"; it's not portable and
1135 shouldn't be needed.
1137 2002-08-09 Jim Meyering <jim@meyering.net>
1139 * src/pr.c (main): Don't ignore -COLUMN if it's the last option.
1140 (usage): Clarify help text for the -COLUMN option.
1141 Patch by Padraig Brady.
1142 * tests/pr/Test.pm [col-last]: New test for the above.
1144 * configure.ac: Start with version 4.5.1, chosen so that it's larger
1145 than the latest version numbers of the component packages.
1147 * man/Makefile.am (check-x-vs-1): Set and export PATH so we use
1150 2002-08-08 Jim Meyering <jim@meyering.net>
1152 * src/date.c: Guard inclusion of <langinfo.h> with
1153 `#if HAVE_LANGINFO_CODESET', not `#if HAVE_LANGINFO_H'.
1154 * src/sort.c: Likewise.
1155 Patch by GOTO Masanori.
1157 2002-08-05 Paul Eggert <eggert@twinsun.com>
1159 Fix some minor time-related bugs with POSIX time arguments.
1160 Some valid time stamps were being rejected (notably -1, and
1161 time stamps before 1900 on 64-bit hosts). And some invalid
1162 time stamps were being accepted, e.g. September 31.
1164 * src/date.c (main): Adjust to posixtime signature change.
1165 * src/touch.c (main): Likewise. Remove unnecessary initialization.
1166 Use localtime, not posixtm, to warn about obsolete "touch".
1168 2002-08-05 Jim Meyering <jim@meyering.net>
1170 * tests/misc/Makefile.am (TESTS): Add nice and pathchk1.
1172 2002-08-04 Jim Meyering <jim@meyering.net>
1174 * src/Makefile.am (check-README): New target/rule.
1175 (check): Depend on it.
1177 * configure.ac (AC_CONFIG_FILES): Add old/Makefile and old/*/Makefile.
1179 2002-08-03 Jim Meyering <jim@meyering.net>
1181 * Makefile.am (SUBDIRS): Add old.
1182 * old/: New directory, containing legacy ChangeLog* and NEWS files
1183 from the fileutils, sh-utils, and textutils packages.
1185 * src/Makefile.am (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Set to false.
1187 2002-08-02 Paul Eggert <eggert@twinsun.com>
1189 * NEWS, doc/coreutils.texi: uniq now obeys LC_COLLATE.
1191 * src/uniq.c: Include hard-locale.h, xmemcoll.h.
1192 (hard_LC_COLLATE): New var.
1193 (different): Args are now char *, not const char *.
1194 Use xmemcoll instead of memcmp to compare lines, so that
1195 LC_COLLATE has effect. However, use memcmp if it is an
1197 (check_file): Do not include newline in comparison, so that
1198 xmemcoll has a byte to stomp on temporarily.
1199 (main): Set hard_LC_COLLATE.
1201 2002-07-29 Jim Meyering <jim@meyering.net>
1203 * Makefile.am (SUBDIRS): Remove djgpp, for now.
1205 2002-07-08 Jim Meyering <jim@meyering.net>
1207 * src/Makefile.am (uninstall-local): Search for @GNU_PACKAGE@,
1208 rather than the hard-coded `sh-utils'.
1210 2002-07-01 Jim Meyering <jim@meyering.net>
1212 * configure.ac: Merge the three files from fileutils,
1213 textutils, and sh-utils.
1214 * Makefile.am: Likewise.
1215 * src/Makefile.am: Likewise.
1218 version-control: never