1 2003-02-01 Jim Meyering <jim@meyering.net>
5 * src/du.c (MAX_N_DESCRIPTORS): Define.
7 * src/stat.c (G_fail): New global.
8 (human_time): Diagnose failed localtime, not failed nstrftime.
9 (main): Fail if G_fail is set.
11 2003-01-31 Jim Meyering <jim@meyering.net>
13 * src/stat.c: Include "file-type.h"
14 (print_human_type): Remove function.
15 (human_access): Rename from print_human_access. Return a string.
16 (human_time): Rename from print_human_time. Return a string.
17 (print_stat): Arrange so that field width and an alignment specifier
18 are honored for the %A, %F, %x, %y, and %z formats.
19 [%F]: Use file_type; this gives slightly different file type strings,
20 e.g., `directory' instead of `Directory' and `regular file' or
21 `regular empty file' instead of `Regular file'.
22 Prompted by a report from Richard Dawe that the uses of
23 S_IFSOCK and S_IFIFO in print_human_time were not portable
24 to systems using e.g., DJGPP.
26 2003-01-31 Richard Dawe <rich@phekda.freeserve.co.uk>
28 * src/stat.c (print_stat): Use S_ISLNK rather than an explicit
29 test using S_IFMT and S_IFLNK. S_IFLNK may not be defined.
31 2003-01-31 Jim Meyering <jim@meyering.net>
33 * src/du.c (main): Upon processing an invalid option or an invalid
34 --exclude-from or --max-depth option argument, don't exit right away,
35 in case there are others. Rather record the failure and exit after
36 processing other options.
38 * GNUmakefile (TAR_OPTIONS): Set and export, in order to make
39 tar archive easier to reproduce.
41 Rewrite to perform directory traversal using nftw.
43 * src/du.c: Include "dirname.h", "ftw.h", and "quotearg.h".
45 (opt_one_file_system): Move global into `main'.
46 (path, xstat, exit_status): Remove declarations.
47 (arg_length, suffix_length): New globals.
48 (G_fail): New global, sort of like the old `exit_status'.
49 (IS_FTW_DIR_TYPE): Define.
50 (print_only_size): New function.
51 (process_file): New function.
52 (str_init, ensure_space, str_copyc, str_concatc): Remove functions.
53 (str_trunc, pop_dir, count_entry): Likewise.
54 (du_files): Rewrite to use nftw.
56 2003-01-30 Jim Meyering <jim@meyering.net>
58 * tests/du/trailing-slash: Ensure that du/ftw follows a command-line
59 symlink-to-directory with -L, even without the trailing slash.
61 2003-01-27 Jim Meyering <jim@meyering.net>
63 * src/Makefile.am (check-misc): Check for st_blocks, too.
65 * src/stat.c (print_stat): Use ST_NBLOCKS rather than `->st_blocks'.
66 Reported by Richard Dawe.
68 2003-01-27 Andreas Schwab <schwab@suse.de>
70 * src/ls.c (quote_name): Add fourth parameter, width, into which to
71 store the screen columns, and return the number of bytes instead.
72 (print_dir): Pass NULL as fourth parameter of quote_name.
73 (print_name_with_quoting): Likewise.
74 (length_of_file_name_and_frills): Get the width from the fourth
75 parameter of quote_name instead of return value.
77 2003-01-27 Jim Meyering <jim@meyering.net>
79 * src/ls.c (decode_switches): If `dired' is set without
80 `format == long_format', then silently reset dired. This doesn't
81 change the behavior of ls (all prior uses of dired were protected
82 by `&& format == long_format'), and lets us...
83 (DIRED_INDENT): ... remove the `format == long_format' conjunct.
84 (PUSH_CURRENT_DIRED_POS): Likewise.
87 2003-01-22 Jim Meyering <jim@meyering.net>
89 * tests/du/no-x: New test, for functionality added to lib/ftw.c.
90 * tests/du/Makefile.am (TESTS): Add no-x.
92 2003-01-21 Jim Meyering <jim@meyering.net>
94 * src/remove.c (remove_entry) [ROOT_CAN_UNLINK_DIRS
95 && HAVE_STRUCT_DIRENT_D_TYPE]: If a file has d_type == DT_UNKNOWN
96 it may still be a directory -- or not (e.g., with FreeBSD on an
97 NFS-mounted file system), so resort to calling lstat to find out.
98 Based on a patch by Michael van Elst.
100 * tests/cp/same-file: Don't assume that the file owner username
101 length is less than 9 in ls output: instead, omit that field
102 altogether. Reported by, and suggested fix from, Ferdinand.
104 2003-01-20 Jim Meyering <jim@meyering.net>
106 * tests/date/Test.pm (wide-fmt): New test to demonstrate that
107 large format widths no longer cause strftime to infloop.
109 * Makefile.maint (mail_gpg_sign_cookie): Remove now-unused definition.
111 2003-01-19 Jim Meyering <jim@meyering.net>
113 * src/readlink.c: Include "canonicalize.h".
115 2003-01-18 Jim Meyering <jim@meyering.net>
117 * src/ls.c (Dereference_symlink) [DEREF_COMMAND_LINE_SYMLINK_TO_DIR]:
119 (enum) [DEREFERENCE_COMMAND_LINE_SYMLINK_TO_DIR_OPTION]: New member.
120 (long_options): Add option --dereference-command-line-symlink-to-dir.
121 (main): Make DEREF_COMMAND_LINE_SYMLINK_TO_DIR be the default,
122 rather than DEREF_COMMAND_LINE_ARGUMENTS, when none of the
123 -d, -F, -l options is specified.
124 (decode_switches): Handle --dereference-command-line-symlink-to-dir.
125 (gobble_file): Honor DEREF_COMMAND_LINE_SYMLINK_TO_DIR.
126 Change --dereference-command-line (-H) to dereference *all*
127 command line arguments, including broken symlinks.
129 2003-01-15 Paul Eggert <eggert@twinsun.com>
131 Change ls -H back to the way it was yesterday, since this is
132 compatible with FreeBSD and the POSIX spec is confusing
133 and somewhat contradictory.
135 * src/ls.c (DEREF_COMMAND_LINE_ARGUMENTS): Change name back
136 from DEREF_COMMAND_LINE_SYMLINK_TO_DIR, updating all uses.
137 (long_options): Change the long option name back.
138 (usage): Change the usage back.
139 (gobble_file): When -H is specified, dereference a top-level
140 arg even if it points to a non-directory.
142 2003-01-15 Jim Meyering <jim@meyering.net>
144 * src/ls.c (gobble_file): Fall back on using lstat when required:
145 when --dereference (-L) is not specified, and
146 - when operating on a dangling symlink
147 - when operating on command-line-symlink-to-directories
148 This fixes numerous problems. Here are examples:
149 - `ls dangling-symlink' would fail with `no such file...'
150 Now it prints `dangling-symlink'.
151 - `ls -i symlink' would mistakenly print the inode of the referent.
152 Now it prints the inode of the symlink. Likewise for --size (-s).
153 Based on a patch from Michael Stone.
154 Reported by Deepak Goel as Debian bug #173793.
156 Rename ls's --dereference-command-line (-H)
157 option to --dereference-command-line-symlink-to-dir.
158 * src/ls.c [enum Dereference_symlink]
159 (DEREF_COMMAND_LINE_SYMLINK_TO_DIR): Rename from
160 DEREF_COMMAND_LINE_ARGUMENTS. Update all uses.
161 (long_options): Rename the long option.
162 (usage): Say that --dereference-... changes how ls treats
163 only symlinks to directories specified on the command line.
165 2003-01-14 Jim Meyering <jim@meyering.net>
167 * tests/ls/dangle: New file/test, for the above fix.
168 * tests/ls/inode: Another new file/test, for the above fix.
169 * tests/ls/Makefile.am (TESTS): Add dangle and inode.
171 * src/ls.c (gobble_file): Fix a bug introduced in 4.5.4 that made it
172 so that ls --color would no longer highlight the names of files with
173 the execute bit set when not specified on the command line.
174 Patch by Michael Stone. Reported by Stephen Depooter as
177 * tests/ls-2/tests (color-exe): New test, for the above fix.
179 2003-01-13 Jim Meyering <jim@meyering.net>
181 * tests/shred/exact: Also test for just fixed bug with --zero.
183 * src/shred.c (long_opts): --zero does not require an argument.
184 Patch by Michael Stone. Reported by Roland Turner as Debian bug 172019.
186 2003-01-12 Jim Meyering <jim@meyering.net>
188 * Makefile.maint (cvs-update): Skip any file with local modifications.
190 * src/unexpand.c (usage): Document --first-only and mention that
191 --tabs=N (-t) enables --all (-a). Reported by wiregauze@yahoo.com.
193 2002-12-01 Dmitry V. Levin <ldv@altlinux.org>
195 * src/df.c: Include "canonicalize.h".
196 Use canonicalize_file_name unconditionally.
198 2003-01-09 Jim Meyering <jim@meyering.net>
200 * README: Add readlink.
202 2002-11-30 Dmitry V. Levin <ldv@altlinux.org>
204 * src/df.c: Include "xgetcwd.h".
205 * src/pwd.c: Likewise.
207 2002-11-30 Dmitry V. Levin <ldv@altlinux.org>
209 * src/shred.c: Remove declaration of xstrdup.
210 We already get it via xalloc.h which is included via system.h.
212 2002-08-27 Dmitry V. Levin <ldv@altlinux.org>
214 New program: readlink.
216 * src/Makefile.am (bin_PROGRAMS): Add readlink.
217 * src/readlink.c: New file.
219 * man/readlink.x: New file.
220 * man/Makefile.am (dist_man_MANS): Add readlink.1.
221 (readlink.1): New rule.
223 2003-01-09 Jim Meyering <jim@meyering.net>
225 When selecting ranges of byte offsets (as opposed to ranges of fields)
226 and when --output-delimiter=STRING is specified, output STRING between
227 ranges of selected bytes.
228 * src/cut.c (RANGE_START_SENTINEL): Define.
229 (output_delimiter_specified): New global.
230 (print_kth): Add parameter. Adjust all callers.
231 (set_fields): Mark each range-start index with RANGE_START_SENTINEL.
232 (cut_bytes): When requested, output STRING between ranges of
234 (main): Make a diagnostic a little clearer.
235 Based on a patch from Jan Nieuwenhuizen.
237 * tests/cut/Test.pm: New tests for the above.
239 * src/cut.c (set_fields): Make code agree with comment:
240 Don't merge abutting ranges like 4- and 2-3. This makes no
241 difference currently, but is required to support an upcoming change.
243 2003-01-07 Jim Meyering <jim@meyering.net>
245 * src/cut.c (set_fields): Fix typo in comment.
247 * tests/touch/not-owner: New test, mostly extracted from fail-diag.
248 * tests/touch/Makefile.am (TESTS): Add not-owner.
249 * tests/touch/fail-diag: Remove the test for non-owner diagnostic.
250 Now, this tests only the nonexistent-directory diagnostic.
251 Suggestion from Michael Stone.
253 * tests/touch/fail-diag: Fix typo: s/ld/ls/.
255 2003-01-04 Jim Meyering <jim@meyering.net>
257 * src/copy.h: Remove use of PARAMS.
258 * src/remove.h: Likewise.
259 * src/chown-core.h: Likewise.
261 rm could be tricked into mistakenly reporting a cycle.
262 * src/remove.c: [cycle_check_state]: New global.
263 (remove_cwd_entries): Adapt to new semantics of cycle_check.
264 (rm): Call cycle_check_init and cycle_check_free for each file.
265 * tests/rm/cycle (rm): New test, for the above fix.
266 * tests/rm/Makefile.am (TESTS): Add cycle.
268 When rm detects a cycle, don't abort the entire command,
269 but rather just the affected command line argument.
270 * src/remove.c: Include <setjmp.h>
271 (struct dirstack_state) [current_arg_jumpbuf]: New member.
272 (remove_cwd_entries): Call longjmp if we detect a cycle.
273 (rm): Call setjmp here.
275 * src/remove.c (cycle_check, is_power_of_two): Remove functions.
276 Instead, include cycle-check.h and use it.
278 * src/remove.h (struct dev_ino): Remove declaration.
280 * src/remove.c (remove_cwd_entries): Fix typos in comment.
282 Don't include trailing /. in diagnostics about directories.
283 * src/remove.c (full_filename_): When FILENAME is just `.'
284 and there is a nonempty directory-name part, don't append `/.'.
285 * tests/rm/unread2: Remove trailing /. from diagnostic.
286 * tests/rm/rm2: Likewise.
288 * src/remove.c (struct dirstack_state): Define.
289 To be used in place of these file-scoped globals ...
290 (dir_stack, len_stack, Active_dir): Remove globals.
291 (ds_init, ds_free): New functions.
292 (full_filename): Define.
293 (full_filename_): Rename from full_filename.
295 Begin to make AD_* functions more generic.
296 * src/remove.c (AD_push_initial): Don't set status to RM_OK here.
298 (AD_INIT_OTHER_MEMBERS): Define.
299 (remove_dir): Define the `status' member manually after each
300 call to AD_push or AD_push_initial.
302 * src/Makefile.am (check-misc): New rule, to ensure that no more
303 S_IS* macro definitions sneak into the code.
304 (check): Depend on check-misc.
306 * src/remove.c [S_ISLNK]: Don't define. It's already defined in sys2.h.
307 * src/du.c (count_entry) [S_ISLNK]: Don't define.
308 * src/shred.c [S_ISLNK, S_ISFIFO, S_ISSOCK]: Don't define.
310 2003-01-03 Jim Meyering <jim@meyering.net>
312 * src/true.c: Add copyright.
313 (AUTHORS): I suppose I've written it.
315 * src/Makefile.am (false.c): Make the generated file be read-only.
317 2003-01-04 Jim Meyering <meyering@lucent.com>
319 * src/ls.c: Include "dev-ino.h".
320 [struct dev_ino]: Remove declaration.
322 2003-01-02 Jim Meyering <meyering@lucent.com>
324 * src/cp.c (do_copy): Tweak diagnostic to be consistent with the one
325 from mv: s/missing file arguments/missing file argument/.
326 With --target-directory=DIR, cp and mv work with a single file argument.
327 Reported by Karl Berry.
329 * tests/rm/isatty: Enable this test.
331 2002-12-31 Jim Meyering <meyering@lucent.com>
333 * src/remove.c (AD_push_initial): Don't set status to RM_OK here.
335 (AD_INIT_OTHER_MEMBERS): Define.
336 (remove_dir): Define the `status' member manually after each
337 call to AD_push or AD_push_initial.
339 * src/ls.c [struct dev_ino]: Remove definition.
340 Include "dev-ino.h" instead.
342 2002-12-28 Jim Meyering <meyering@lucent.com>
344 * tests/du/Makefile.am (TESTS): Add no-deref.
345 * tests/du/no-deref: New script.
347 2002-12-23 Jim Meyering <meyering@lucent.com>
349 * src/remove.c (remove_cwd_entries): Fix typo in comment.
351 2002-12-21 Jim Meyering <jim@meyering.net>
353 * announce-gen: Generate MML-formatted announcement.
354 This makes it a *lot* harder to send stale MD5/SHA1 signatures.
356 2002-12-20 Jim Meyering <jim@meyering.net>
358 * src/touch.c (touch): Change the wording of a diagnostic so
359 that it makes sense both when the file exists and when it doesn't.
360 Suggestion from Michael Stone.
362 2002-12-18 Jim Meyering <jim@meyering.net>
364 * src/stty.c (valid_options): Declare to be static.
366 2002-12-15 Jim Meyering <jim@meyering.net>
368 * Makefile.cfg: Remove rules related to generating m4/jm-glibc-io.m4.
370 * src/chmod.c, src/copy.c, src/copy.h, src/cp-hash.h, src/csplit.c:
371 * src/date.c, src/expr.c, src/fmt.c, src/id.c, src/install.c:
372 * src/ls.c, src/od.c, src/pathchk.c, src/pr.c, src/remove.c:
373 * src/shred.c, src/sort.c, src/stat.c, src/stty.c, src/sum.c:
374 * src/tee.c, src/test.c: Remove all uses of `PARAMS'.
376 * src/remove.c (PARAMS): Remove definition.
377 * src/sys2.h: Likewise.
379 * src/ls.c, src/stat.c, src/date.c: Remove declaration of nstrftime.
380 Include strftime.h instead.
382 2002-12-14 Jim Meyering <jim@meyering.net>
384 * Makefile.cfg ($(url_dir_list)): Use .../coreutils, not .../fetish.
386 * src/system.h [! HAVE_DECL_MEMRCHR]: Declare memrchr.
387 This is necessary at least for Irix6.5 when using c89.
388 Reported by Nelson Beebe.
390 * tests/misc/Makefile.am (TESTS): Add cat-tty-eof.
392 * tests/misc/cat-tty-eof: New test.
394 * src/mknod.c (usage): Specify how major and minor mode numbers
395 are interpreted. Report forwarded by Kristin E Thomas.
396 * src/mknod.c: Remove now-redundant usage-specifying comment.
398 2002-12-13 Jim Meyering <jim@meyering.net>
402 * tests/du/trailing-slash: Allow for a directory of size `0'.
403 That happens at least on file systems of type tmpfs on linux-2.4.18.
405 * announce-gen: New script to begin replacing the commands
406 associated with the rule here...
407 * Makefile.maint (announcement): Invoke announce-gen.
408 * Makefile.am (EXTRA_DIST): Add announce-gen.
410 * tests/cp/preserve-2: New file/test, for latest fix.
411 * tests/cp/Makefile.am (TESTS): Add preserve-2.
413 2002-12-11 TAKAI Kousuke <takai@vlsi.kuee.kyoto-u.ac.jp>
415 Fix a bug whereby cp would fail to parse an option like
416 --preserve=mode,ownership.
417 * src/cp.c (decode_preserve_arg): Advance `comma' to
418 point the character following the comma.
420 2002-12-11 Jim Meyering <jim@meyering.net>
422 * src/pathchk.c (NEED_PATHCONF_WRAPPER): Undefine before defining,
423 in case it's already defined.
425 2002-12-09 Jim Meyering <jim@meyering.net>
427 * tests/touch/fail-diag: Don't get a test failure if /no exists.
428 Instead, evoke a framework failure if /no-$$ exists.
429 Reported by Michael Stone.
431 2002-12-08 Jim Meyering <jim@meyering.net>
433 * src/du.c (lstat) [! LSTAT_FOLLOWS_SLASHED_SYMLINK]:
434 Define to rpl_lstat, so that even on systems like Solaris 2.8,
435 du honors (per POSIX) the trailing slash on an argument referring
436 to a symlink-to-directory.
438 2002-12-06 Jim Meyering <jim@meyering.net>
440 * Use autoconf-2.57. Regenerate dependent files.
441 * Use automake-1.7.2. Regenerate dependent files.
443 * src/ls.c (gobble_file): Also stat the file if it's a
444 regular file and --indicator-style=classify (aka -F).
445 Thanks to Ed Santiago for opening my eyes.
447 * tests/ls/file-type: New file. Test for the above.
448 A test to contrast ls -F and ls --indicator-style=file-type.
449 * tests/ls/Makefile.am (TESTS): Add file-type.
451 2002-12-04 Jim Meyering <jim@meyering.net>
453 * tests/ls/follow-slink: Make sure the symlink was created.
454 Richard Dawe reported that `ln -s link link' succeeds, but creates
455 no file on systems running some version of the DJGPP libc.
457 2002-12-03 Jim Meyering <jim@meyering.net>
459 * src/Makefile.am (AUTOMAKE_OPTIONS): Remove definition (to ansi2knr)
460 since this package no longer panders to K&R compilers.
462 2002-12-02 Jim Meyering <jim@meyering.net>
464 * tests/du/slink: Skip this test if `.' is on a non-local file system.
466 * tests/Fetish.pm (_at_replace): Do the substitution only if there's
467 something to replace.
469 2002-12-01 Jim Meyering <jim@meyering.net>
471 * src/stat.c: Don't include <string.h> or <ctype.h>.
472 That's already done via system.h.
473 * src/dircolors.c: Don't include <ctype.h>.
475 2002-11-30 Jim Meyering <jim@meyering.net>
477 * ls.c (gobble_file): Remove the block of code that caused
478 `ls --color -F symlink-to-dir' to list the files in
479 `symlink-to-dir/.'. Now, it prints `symlink-to-dir@', (just
480 like `ls -F symlink-to-dir') but with the addition of highlighting.
481 Similarly, `ls --color -dF symlink-to-dir' would print
482 `symlink-to-dir/'; now it prints `symlink-to-dir@'.
483 Reported by Jeff Sheinberg as Debian bug #168203.
484 * tests/ls-2/tests (sl-F-color, sl-dF-color): New tests for the above.
486 ls is now more efficient: with certain options, it no longer needs
487 to stat each directory entry on systems with valid dirent.d_type.
488 * src/ls.c (print_dir): Add DT_LNK and DT_REG.
489 (main): Make --recursive set format_needs_type, not format_needs_stat.
490 (gobble_file): Remove a FIXME comment, now that it's fixed.
492 2002-11-24 Jim Meyering <jim@meyering.net>
494 * src/du.c (du_files): Don't strip any trailing slash.
495 Rewrite so that `/' is no longer represented internally as
497 (count_entry): When appending a file name component,
498 account for the fact that the current path may end in `/'.
499 François Pinard reported that `du symlink-to-dir/' was not
500 equivalent to `du symlink-to-dir/.'. Now it is.
501 * tests/du/trailing-slash: New file/test, for the above fix.
502 * tests/du/Makefile.am (TESTS): Add trailing-slash.
504 2002-11-23 Jim Meyering <jim@meyering.net>
506 * src/tac.c (output): Declare some local variables to be of type size_t,
507 rather than `int' to avoid warnings from gcc.
509 2002-11-21 Paul Eggert <eggert@twinsun.com>
511 * src/ls.c (decode_switches): Use case-sensitive matching to
512 decode the QUOTING_STYLE environment variable. This is more
513 consistent with the documentation, and with --quoting-style.
515 2002-11-21 Martin Buck <martin.buck@ascom.ch
517 * src/stty.c (struct speeds): Add support for all baud rates defined
520 2002-11-19 Jim Meyering <jim@meyering.net>
522 * tests/sum/sysv: Export LC_ALL=C, to avoid failure when
523 run in a UTF locale. Report and suggested fix by Bruno Haible.
524 * tests/fmt/basic: Likewise.
526 2002-11-17 Jim Meyering <jim@meyering.net>
528 * configure.ac: Update via autoupdate.
529 Add `AM_GNU_GETTEXT_VERSION(0.11.5)'.
531 * src/mv.c (movefile): Don't remove trailing slashes from SOURCE.
532 Reported by Hans Ginzel.
534 2002-11-15 Jim Meyering <jim@meyering.net>
536 * Makefile.cfg (gnu_rel_host): Define.
537 (url_dir_list): Choose from (alpha|ftp).gnu.org depending
538 on whether $(VERSION) looks like a major release number.
540 * Makefile.maint (mail_gpg_sign_cookie): Backslash-escape `#'.
541 (release): Rename from `alpha'.
542 (alpha): Depend on release.
544 * Makefile.maint (signatures): Define with ?=, so it's easy to override.
546 2002-11-14 Jim Meyering <jim@meyering.net>
548 * Makefile.maint (mail_gpg_sign_cookie): Make optional.
549 (announcement): Use the new variable.
551 * Makefile.maint: Sync with Bison, i.e.:
552 (po-check): Scan .l and .y files instead of the
553 .c and the .h files that they generate. This fixes the bug
554 reported by Tim Van Holder in:
555 <http://mail.gnu.org/pipermail/bison-patches/2002-November/001352.html>
556 Look for N_ as well as for _. Try to avoid matching #define for
560 2002-11-12 Jim Meyering <jim@meyering.net>
562 * src/ls.c (HAVE_SYMLINKS): Remove unnecessary macro definition.
563 Replace sole use with equivalent `#ifdef S_ISLNK'.
564 Inconsistency reported by Dmitry V. Levin.
566 2002-11-11 Jim Meyering <jim@meyering.net>
568 * src/stat.c (usage): Transform --help items output via s/ - / /,
569 so that help2man produces properly formatted man pages.
570 Reported by Herbert Xu as Debian bug #168400.
572 2002-11-10 Jim Meyering <jim@meyering.net>
574 * src/ls.c (sighandler): Handle SIGTSTP specially.
575 Based on suggestions from Solar Designer and Dmitry V. Levin.
578 * Makefile.cfg (cvs_files): Define. From autoconf.
579 (local_updates): Likewise.
581 * src/ls.c (restore_default_color_handler, sigtstp_handler):
583 (sighandler): New function, based on the one in sort.c.
584 (main): Use sigaction, if possible; otherwise signal.
585 Handle these signals:
586 SIGHUP, SIGINT, SIGPIPE, SIGQUIT, SIGTERM, SIGTSTP.
587 Don't register our handler if the signal is already being ignored.
589 * src/dd.c (interrupt_handler): Use raise, rather than kill+getpid.
590 * src/csplit.c (interrupt_handler): Likewise.
591 * src/sort.c (sighandler): Likewise.
592 (main): Declare `i' and `nsigs' to be unsigned, not int.
594 2002-11-09 Jim Meyering <jim@meyering.net>
596 ls --color: restore terminal text color upon signal.
597 * src/ls.c: Include "full-write.h" and <signal.h>.
598 (restore_default_color, restore_default_color_handler): New functions.
599 (sigtstp_handler, put_indicator_direct): New functions.
600 (main) [print_with_color]: Register signal handlers.
601 Patch mostly by Solar Designer and Stanislav Ievlev.
603 Update from autoconf.
604 * Makefile.maint (AMTAR): Remove definition.
605 (update, cvs-update, po-update, do-po-update): New rules.
606 (wget-update): Update (thus renaming to cvs-update).
607 (automake_repo): Use anoncvs@sources.redhat.com.
609 2002-11-06 Jim Meyering <jim@meyering.net>
611 * tests/misc/Makefile.am (TESTS): Add printf-hex.
613 * tests/misc/printf: Be careful to test the code in this package,
614 not the shell built-in function.
616 * src/printf.c (print_esc): A hexadecimal escape sequence has
617 at most two hex. digits, not three. Reported by Padraig Brady.
618 (usage): Update description.
619 * tests/misc/printf-hex: New file/test, for the above fix.
621 2002-10-07 Paul Eggert <eggert@twinsun.com>
623 Add support for locale-specific size indications (e.g.,
624 thousands-separators) and for explicit size suffixes on output.
626 * doc/coreutils.texi (Block size): Say that:
627 This affects display format as well as block size.
628 Fractional block counts are rounded up.
629 ls file size blocksize defaults to 1.
630 A block size spec preceded by ' generates thousands separators.
631 A suffix without a preceding integer generates suffixes.
632 (tail invocation): 32k -> 32 KiB.
633 (What information is listed): ls -h is now equivalent to
634 ls --block-size=human, and ls -H is now equivalent to
635 ls --block-size=si. Displayed file size is now always affected by
638 * lib/inttostr.c, lib/inttostr.h, lib/imaxtostr.c, lib/offtostr.c,
639 lib/umaxtostr.c: New files, taken from GNU tar.
641 * lib/Makefile.am (libfetish_a_SOURCES): Add imaxtostr.c, offtostr.c,
643 (EXTRA_DIST): Add inttostr.c.
645 * lib/human.c, lib/human.h: Rewrite to support locale-specific
646 notations like thousands separators.
647 Specify what includer of include.h must include beforehand.
648 (human_group_digits, human_suppress_point_zero, human_autoscale,
649 human_base_1024, human_SI, human_B): New enum values.
650 (human_readable): Rename from human_readable_inexact; put the
651 options before the sizes. All uses changed. The old human_readable
652 function has been removed; use inttostr.h instead.
653 (human_options): Renamed from human_block_size, with new signature
654 that allows block sizes up to UINTMAX_MAX. All callers changed.
656 * m4/prereq.m4 (jm_PREREQ_HUMAN): Check for locale.h, localeconv,
657 AC_HEADER_STDBOOL. No need to check for limits.h since it's in
658 freestanding C89. No need to check for stdlib.h or string.h since
659 autoconf does this now.
661 * src/cksum.c (cksum): Use primitives from inttostr.h, not
662 human.h, to print large numbers simply.
663 * src/csplit.c (handle_line_error, parse_patterns): Likewise.
664 * src/dd.c (print_stats, main): Likewise.
665 * src/df.c (print_header): Likewise.
666 * src/factor.c (print_factors): Likewise.
667 * src/ls.c (print_long_format, print_file_name_and_frills): Likewise.
668 * src/shred.c (dopass): Likewise.
669 * src/sort.c (checkfp): Likewise.
670 * src/sum.c (bsd_sum_file, sysv_sym_file): Likewise.
671 * src/tail.c (xlseek): Likewise.
672 * src/wc.c (write_counts, wc): Likewise.
674 * src/df.c (human_output_opts): New var.
675 (output_block_size): Now uintmax_t, not int, to handle larger
676 block sizes. All uses changed.
677 * src/du.c: Likewise.
678 * src/ls.c: Likewise.
680 * src/df.c (print_header): In the header line, prefer SI to human
681 representation if it's shorter; if neither is shorter, try to
682 intuit what the user would prefer.
684 * src/expr.c (inttostr): Remove; use new imaxtostr library
687 * src/ls.c (file_output_block_size): New var, to distinguish
688 file sizes from other sizes.
689 (decode_switches): Set it.
691 * src/shred.c (OUTPUT_BLOCK_SIZE): remove.
692 (dopass): When printing progress, use floor for what has been done
693 so far (since we should be conservative there), and ceiling for
694 what needs to be done (since that's what other programs use).
696 2002-10-19 Jim Meyering <jim@meyering.net>
698 * src/pinky.c (print_heading): Align TTY and Name headings.
699 Reported by Karl Eichwalder.
701 2002-10-18 Jim Meyering <jim@meyering.net>
703 * src/split.c (cwrite): Change type of `bytes' parameter to size_t
704 Remove now-useless cast.
705 (stdread): Remove function.
706 (bytes_split): Use size_t instead of int.
707 Use safe_read, not stdread.
708 (lines_split): Likewise.
709 Use memchr rather than a `while' loop.
710 (line_bytes_split): Use size_t instead of int.
711 Use safe_read, not stdread.
712 (main): Add some FIXME comments to remind me to remove casts.
714 * src/system.h (ST_BLKSIZE): Correct comment describing how to
715 reproduce HPUX-11 cat failure. From Petter Reinholdtsen.
717 2002-10-17 Jim Meyering <jim@meyering.net>
719 Fix a problem that could make e.g., `cat' misbehave on systems which
720 give invalid (unreasonably large) values for stat.st_blksize.
721 * src/system.h (ST_BLKSIZE): Ensure that the result is in [1..4MB].
722 Reported by Petter Reinholdtsen.
724 2002-10-14 Jim Meyering <jim@meyering.net>
726 Specifying a printf conversion specifer as nl's separator string
727 could cause nl to segfault.
728 * src/nl.c (build_print_fmt): Don't include separator string
729 in the printf format; it might contain `%'.
730 Use a better bound on the length of the print_fmt buffer.
731 (print_lineno): Print the separator here instead.
732 Reported by Doug Coleman.
734 * tests/misc/nl: New file/tests, including a test for the above.
735 * tests/misc/Makefile.am (TESTS): Add nl.
737 * tests/misc/split-l: New test, to make sure `split --lines=N' works.
738 * tests/misc/Makefile.am (TESTS): Add split-l.
740 2002-10-13 Jim Meyering <jim@meyering.net>
744 * src/du.c (usage): Tweak description of --dereference-args/-D.
746 * src/du.c (count_entry): Also save cwd when dereferencing (via
747 --dereference-args, -D) a command-line argument.
748 Reported by Michal Svec. Based on a patch by Andreas Schwab.
750 * src/Makefile.am (../AUTHORS): New target/rule.
752 2002-10-12 Jim Meyering <jim@meyering.net>
754 * src/paste.c (paste_parallel): Declare local, `delims_saved', to be
755 of type size_t, since that's the way it's used and avoids a warning.
757 * src/csplit.c (struct cstring) [len]: Declare to be unsigned int,
758 since that's how it's always used and avoids a new warning from gcc.
759 (read_input): Adapt to new safe_read ABI.
761 * src/cut.c (cut_fields): Add a temporary size_t variable, n_bytes,
764 * src/pinky.cdereference-command-line-symlink-to-dir (print_long_entry): fread returns size_t.
765 Declare local `bytes' accordingly, to avoid warning.
767 tail -c +N would perform an extra read after encountering EOF
768 [this change is analogous (bytes vs. lines) to the one of 2002-01-27]
769 * src/tail.c (start_bytes): Detect EOF, inform caller.
770 (tail_bytes): Upon EOF in start_bytes, return immediately.
771 (file_lines): Reorganize to use memrchr rather than an explicit loop.
772 Adapt to new safe_read ABI.
774 2002-10-11 Jim Meyering <jim@meyering.net>
776 * tests/du/deref: New file/test, for the above fix.
777 * tests/du/Makefile.am (TESTS): Add deref.
779 2002-10-10 Jim Meyering <jim@meyering.net>
781 * tests/ln/Makefile.am (TESTS): Add target-1.
782 * tests/ln/target-1: New file/test, for the fix on 2002-10-08.
784 2002-10-09 Jim Meyering <jim@meyering.net>
786 * tests/cp/backup-is-src: Ensure that certain environment variables
787 are not set (e.g., SIMPLE_BACKUP_SUFFIX). Reported by Duncan Roe.
789 * tests/tail-2/big-4gb: Mark this as an expensive test; it would
790 consume 4GB of disk space on systems without support for sparse files.
791 Fix a logic error that'd make it `cat err' even though dd didn't fail.
793 * src/dircolors.hin (.jar): Fix typo: s/;3$/;31/.
794 Patch by steven@magelico.net, forwarded by Michael Stone.
796 * tests/ls/dired: Ensure that ls produces English messages.
797 Patch by Alexey Vyskubov, forwarded by Michael Stone.
799 2002-10-08 Dmitry V. Levin <ldv@altlinux.org>
801 * src/ln.c (main): Fix target_directory parsing when n_files == 1.
803 2002-10-08 Jim Meyering <jim@meyering.net>
805 * tests/tail-2/big-4gb: Use double quotes around diagnostic.
806 Fix syntax in test: use =, not ==.
807 Reported by Bob Proulx.
808 Change all the rest like this: grep -lR "testing framework'" .\
809 |xargs perl -pi -e 's/'\''(\$0: failure in testing framework)'\''/"$1"/'
811 * src/sum.c (sysv_sum_file): Adapt to new safe_read ABI.
812 * src/tr.c (squeeze_filter, read_and_delete, read_and_xlate): Likewise.
813 * src/tac.c (save_stdin, tac_stdin_to_mem): Likewise.
814 * src/wc.c (wc): Likewise.
816 2002-10-07 Paul Eggert <eggert@twinsun.com>
819 Don't advance the write pointer past the end of the write buffer.
820 * src/sort.c (begfield, limfield): Likewise.
822 2002-10-07 Jim Meyering <jim@meyering.net>
824 * src/cat.c (simple_cat, cat): Adapt to new safe_read ABI.
825 * src/head.c (head_bytes, head_lines): Likewise.
827 2002-10-06 Jim Meyering <jim@meyering.net>
829 * src/dd.c (scanargs): Ensure that specified block sizes (specified
830 via ibs=N, obs=N, and bs=N) are no larger than SSIZE_MAX.
831 (skip, dd_copy): Adapt to new safe_read ABI.
833 * Makefile.maint (signatures): Define.
835 (announcement): Depend on $(signatures).
837 * Makefile.maint (announcement): Output all URLs for detached
838 signatures, not just the last one from the previous loop.
840 2002-10-05 Jim Meyering <jim@meyering.net>
844 * src/remove.c (remove_entry) [ROOT_CAN_UNLINK_DIRS]: With `rm -i DIR',
845 don't recurse into directory, DIR. Prompted by a report from
848 * tests/rm/i-no-r: New file/test, for the above fix.
849 * tests/rm/Makefile.am (TESTS): Add i-no-r.
851 * tests/tail-2/big-4gb: New file/test, for the fix of 2002-09-27.
852 * tests/tail-2/Makefile.am (TESTS): Add big-4gb.
854 2002-10-03 Jim Meyering <jim@meyering.net>
856 * src/rm.c (AUTHORS): Mark translatable string with `N_ (...)'.
857 * src/df.c (AUTHORS): Likewise.
858 * src/du.c (AUTHORS): Likewise.
859 * src/tail.c (AUTHORS): Likewise.
860 * src/touch.c (AUTHORS): Likewise.
862 2002-10-02 Jim Meyering <jim@meyering.net>
864 * Makefile.am (SUBDIRS): Remove `old'.
865 (EXTRA_DIST): List the files in old/.
866 * configure.ac (AC_CONFIG_FILES): Remove old/* names.
867 Suggestion from Akim Demaille.
869 2002-10-01 Jim Meyering <jim@meyering.net>
871 * src/sys2.h (SSIZE_MAX): Define.
873 2002-09-30 Jim Meyering <jim@meyering.net>
875 * src/csplit.c: Don't include stdlib.h here. It's already included
878 2002-09-29 Jim Meyering <jim@meyering.net>
880 * src/tr.c (find_bracketed_repeat): Rearrange pointer/integer
881 expression to avoid bogus warning from gcc.
883 * src/cat.c (simple_cat): Use a temporary to avoid bogus warnings.
884 (cat): Declare insize and outsize to be of type size_t, not int.
885 Rearrange pointer/integer expressions to avoid bogus warnings.
886 (main): Declare insize and outsize to be of type size_t, not int.
888 * src/tail.c (parse_options): Give a sensible diagnostic for
889 an invalid byte or line count. Reported by Mikko Tuumanen.
891 * src/touch.c (main): Split a long line.
893 * tests/du/Makefile.am (TESTS): Add slink.
894 * tests/du/slink: New test for system.h change of 2002-08-31.
896 In move mode, always first try to rename. Before, upon failure to
897 rename a directory, this code would never attempt to rename any
898 other file in that directory, but would thenceforth always copy.
899 On some systems (e.g., NetApp's OnTap-6.4), renaming a directory
900 may fail with EXDEV, yet renaming files within that directory to
901 a newly-created destination directory succeeds.
902 * src/copy.c (copy_internal): Remove local, move_mode;
903 use x->move_mode instead. Based on a patch from Tom Haynes.
905 2002-09-28 Jim Meyering <jim@meyering.net>
907 * src/split.c (FAIL_ONLY_ONE_WAY): New macro.
908 Factor out some duplication.
910 [case 'a']: Use strtoul rather than strtol to avoid compiler warnings.
912 * src/sort.c (begfield, limfield): Rearrange comparisons to avoid
914 (fillbuf, keycompare): Cast literal `-1' to size_t in comparisons,
915 to avoid compiler warnings.
917 * src/shred.c (dopass): Use a uintmax_t temporary to avoid bogus
920 Fix things so `mkdir -p' can create very deep directories, e.g.,
921 mkdir -p $(perl -e 'print "a/" x 40000') now works.
922 * src/mkdir.c (main): For --parents (-p), call make_path with the
923 entire directory name, so we don't ever require that file operations
924 like stat or chmod be performed on the entire command line argument.
925 * makepath.c (make_path): Restore umask *before* creating the final
928 2002-09-27 Andreas Schwab <schwab@suse.de>
930 * src/tail.c (tail_bytes): Change type of bytes_remaining to off_t
931 to avoid overflow. Reported by Hans Lermen.
933 2002-09-26 Jim Meyering <jim@meyering.net>
935 * src/install.c (get_ids): Use strtoul, not strtol. Remove some casts.
937 2002-09-25 Jim Meyering <jim@meyering.net>
939 * src/test.c (eaccess): Change type of local `euid' from int to uid_t
940 and add a cast, to avoid a warning about `signed and unsigned type in
941 conditional expression'.
943 2002-09-22 Jim Meyering <jim@meyering.net>
945 * src/rmdir.c: Include "dirname.h", for declaration of
946 strip_trailing_slashes.
948 * src/stat.c (PRIdMAX, PRIuMAX): Remove definitions.
949 Now they're defined through system.h.
951 * src/cp-hash.c, src/dd.c, src/df.c, src/du.c, src/ls.c,
952 * src/stat.c, src/wc.c: Remove all inclusions of inttypes.h,
953 since it's already included from sys2.h via system.h.
955 * Use automake-1.6f. Regenerate dependent files.
957 * src/Makefile.am (PERL): Remove duplicate definition.
959 fmt's -s, -t, -c options didn't work properly for long lines.
960 Since get_line may end up calling put_paragraph (for long lines),
961 be sure to set global, `other_indent', before it is used there.
963 * src/fmt.c (set_other_indent): New function, factored out of...
964 (get_paragraph): ... here. Call it.
965 (get_line): Call set_other_indent before calling flush_paragraph,
966 which calls fmt_paragraph, which in turn calls put_paragraph,
967 which uses other_indent.
969 * tests/fmt/Makefile.am (TESTS): Add long-line.
970 * tests/fmt/long-line: New file/test, for the above fix.
972 2002-09-21 Jim Meyering <jim@meyering.net>
974 * src/od.c: No longer include deprecated <values.h>.
975 It was required solely for now-removed reference to BITSPERBYTE.
976 * src/install.c: Likewise.
977 Suggestion from Bruno Haible.
979 2002-09-06 Andreas Schwab <schwab@suse.de>
981 `rmdir -p dir-specified-with-trailing-slash/' would fail.
982 * src/rmdir.c (remove_parents): Strip trailing slashes.
984 2002-09-20 Jim Meyering <jim@meyering.net>
986 * tests/rmdir/t-slash: New file/test, for the above fix.
987 * tests/rmdir/Makefile.am (TESTS): Add t-slash.
989 * Makefile.maint (announcement): Arrange to gpg-sign the message.
990 Add a URL for each detached signature file.
992 2002-09-07 Bruno Haible <bruno@clisp.org>
994 * configure.ac: Add need-ngettext to AM_GNU_GETTEXT invocation.
996 2002-09-18 Jim Meyering <jim@meyering.net>
998 `od -t x8' used the wrong (`l'-prefixed) printf format.
999 Likewise for the o8 and u8 formats.
1000 * src/od.c (ISPEC_TO_FORMAT): Define macro.
1001 (decode_one_format): Use PRIdMAX, PRIoMAX, etc. for LONG_LONG.
1002 Reported by Arun Sharma.
1004 2002-09-17 Jim Meyering <jim@meyering.net>
1006 * src/sys2.h (PRIdMAX, PRIoMAX, PRIuMAX, PRIxMAX): Define if necessary.
1007 From gettext's intl/loadmsgcat.c.
1009 * tests/od/x8: New file/test, for the above fix.
1010 * tests/od/Makefile.am (TESTS): Add x8.
1012 2002-09-15 Jim Meyering <jim@meyering.net>
1014 * Use autoconf-2.54. Regenerate dependent files.
1016 * src/csplit.c (get_format_width): Add cast to avoid
1017 warning about `signed and unsigned type in conditional expression'.
1019 2002-09-14 Jim Meyering <jim@meyering.net>
1021 * src/who.c (print_user): Change type of local to size_t
1022 to avoid warnings about `comparison between signed and unsigned'.
1023 * src/ptx.c (generate_all_output): Likewise.
1025 * src/dd.c (main, skip): Add casts to avoid warnings about
1026 `comparison between signed and unsigned'.
1028 * src/id.c (print_full_info, print_group_list): Add casts to avoid
1029 warnings about `signed and unsigned type in conditional expression'.
1031 * src/md5sum.c: Change type of global, digest_hex_bytes, to size_t
1032 to avoid warnings about `comparison between signed and unsigned'.
1033 (split_3): Change parameter names to be readable and add comment.
1034 Clean up the test for whether a line may be ignored.
1036 2002-09-13 Jim Meyering <jim@meyering.net>
1038 * src/printf.c (main): Handle leading command line argument of `--'.
1039 Reported by Raul: DervishD <raul@pleyades.net>
1040 * tests/misc/printf: New file: test for the above.
1041 * tests/misc/Makefile.am (TESTS): Add printf.
1043 * src/date.c (usage): Explain that %S's range of [0..60] is required --
1044 rather than 0..59 -- to accommodate the occasional positive leap second.
1045 Reported by Richard Neill.
1047 2002-09-12 Jim Meyering <jim@meyering.net>
1049 * src/Makefile.am (nanosec_libs): Define.
1050 (sleep_LDADD, tail_LDADD): Use it here.
1052 Factor nanosleep-related code into ../lib/xnanosleep.c.
1053 * src/sleep.c: Include xnanosleep.h.
1054 Factor out fenv.h-related code.
1055 (timespec_subtract): Remove function.
1056 (main): Remove code that deals with computing start and stop times
1057 as well as the loop around nanosleep. Now that's in xnanosleep.c.
1059 Allow S (in --sleep-interval=S) to be a floating point value.
1060 * src/tail.c: Include xnanosleep.h and xstrtod.h.
1061 Move declaration of global variable, sleep_interval, to ...
1063 (usage): Update description of --sleep-interval option.
1064 (tail_forever): New parameter, sleep_interval. Update caller.
1065 Use xnanosleep, rather than sleep.
1066 (parse_options): New parameter, sleep_interval. Update caller.
1067 Use xstrtod, now that we accept floating point values.
1068 Prompted by a patch from Augey Mikus.
1070 2002-09-06 Jim Meyering <jim@meyering.net>
1072 * src/remove.c (prompt): Change comment to give a better note to
1073 translators. From Michael Piefel.
1075 2002-09-02 Jim Meyering <jim@meyering.net>
1077 * README: A good problem report/patch includes diffs against
1078 the most recent test release.
1080 * src/pathchk.c (NEED_PATHCONF_WRAPPER): Define.
1081 (pathconf_wrapper): Define only if NEED_PATHCONF_WRAPPER is set.
1083 * src/kill.c (print_table_row): Use an unsigned type for widths
1084 to avoid warning about comparison between signed and unsigned.
1085 (list_signals): Likewise.
1087 * src/od.c (skip): Add a cast to avoid warning about comparison
1088 between signed and unsigned.
1089 * src/install.c (get_ids): Likewise. Also rearrange range-checking
1090 comparisons to make them more readable.
1092 2002-09-01 Jim Meyering <jim@meyering.net>
1096 2002-08-31 Jim Meyering <jim@meyering.net>
1098 Symlinks were always reported as using 0 blocks.
1099 * src/system.h (ST_NBLOCKS): Don't depend on file type.
1100 This reverts the change of 2000-01-30.
1101 Based on a report and patch from Neil Brown via Michael Stone.
1102 This fixes Debian Bug#156358.
1104 * Most files: Change `exit (0)' to `exit (EXIT_SUCCESS)',
1105 `exit (1)' to `exit (EXIT_FAILURE)', and
1106 `usage (1)' to `usage (EXIT_FAILURE)'.
1108 * chgrp.c, chmod.c, chown.c, chroot.c, cp.c, date.c, dd.c, du.c,
1109 * hostname.c, id.c, install.c, ln.c, mkdir.c, mkfifo.c, mknod.c,
1110 * nice.c, pinky.c, printf.c, pwd.c, shred.c, sleep.c, stty.c,
1111 * su.c, tac-pipe.c, tail.c, tee.c, touch.c, uname.c, uptime.c,
1112 * users.c, who.c: Change `error (1, ...' to `error (EXIT_FAILURE, ...'.
1113 But don't change `error (0, ...' to `error (EXIT_SUCCESS, ...', since
1114 error never exits successfully.
1116 2002-08-29 Jim Meyering <jim@meyering.net>
1118 * src/remove.c (remove_cwd_entries): Use closedir (not CLOSEDIR)
1119 when ignoring any return value.
1121 * src/remove.c (remove_cwd_entries): Detect and diagnose readdir
1122 failures. On some systems (at least EMC Celerra and Solaris5.8),
1123 this appears to be necessary.
1124 (is_empty_dir): Likewise. Also, always close directory handle.
1125 * src/ls.c (print_dir): Likewise.
1126 (print_dir): Rename local variable: reading -> dirp.
1127 Reported by Mike Coleman.
1129 2002-08-28 Jim Meyering <jim@meyering.net>
1131 * src/remove.c (remove_cwd_entries): Use CLOSEDIR, not closedir.
1132 Give a diagnostic and fail if closedir fails.
1134 2002-08-26 Jim Meyering <jim@meyering.net>
1136 * Makefile.am (THANKS-to-translators): New rule.
1137 (EXTRA_DIST): Add both THANKS-to-translators and THANKStt.in.
1138 * THANKStt.in: New file.
1140 * src/cat.c (close_stdout_wrapper): New, kludgey, function and
1142 (main): Register it with atexit.
1143 Close STDOUT_FILENO, to avoid a problem when writing to
1144 /dev/audio on at least Solaris 2.7 and 2.8 systems.
1145 Reported by Shing-Shong Shei.
1147 2002-08-25 Jim Meyering <jim@meyering.net>
1149 * src/cat.c (main): Close STDIN_FILENO rather than a literal `0'.
1150 * src/tac.c (main): Likewise.
1151 * src/tail.c (main): Likewise.
1152 * src/tee.c (main): Likewise.
1153 * src/tr.c (main): Likewise.
1154 * src/wc.c (main): Likewise.
1156 2002-08-20 Jim Meyering <jim@meyering.net>
1158 * tests/mv/setup: Rewrite not to use `: ${VAR=not_set}' paradigm.
1160 2002-08-10 Paul Eggert <eggert@twinsun.com>
1162 * src/nohup.sh: Don't use "exec --"; it's not portable and
1163 shouldn't be needed.
1165 2002-08-09 Jim Meyering <jim@meyering.net>
1167 * src/pr.c (main): Don't ignore -COLUMN if it's the last option.
1168 (usage): Clarify help text for the -COLUMN option.
1169 Patch by Padraig Brady.
1170 * tests/pr/Test.pm [col-last]: New test for the above.
1172 * configure.ac: Start with version 4.5.1, chosen so that it's larger
1173 than the latest version numbers of the component packages.
1175 * man/Makefile.am (check-x-vs-1): Set and export PATH so we use
1178 2002-08-08 Jim Meyering <jim@meyering.net>
1180 * src/date.c: Guard inclusion of <langinfo.h> with
1181 `#if HAVE_LANGINFO_CODESET', not `#if HAVE_LANGINFO_H'.
1182 * src/sort.c: Likewise.
1183 Patch by GOTO Masanori.
1185 2002-08-05 Paul Eggert <eggert@twinsun.com>
1187 Fix some minor time-related bugs with POSIX time arguments.
1188 Some valid time stamps were being rejected (notably -1, and
1189 time stamps before 1900 on 64-bit hosts). And some invalid
1190 time stamps were being accepted, e.g. September 31.
1192 * src/date.c (main): Adjust to posixtime signature change.
1193 * src/touch.c (main): Likewise. Remove unnecessary initialization.
1194 Use localtime, not posixtm, to warn about obsolete "touch".
1196 2002-08-05 Jim Meyering <jim@meyering.net>
1198 * tests/misc/Makefile.am (TESTS): Add nice and pathchk1.
1200 2002-08-04 Jim Meyering <jim@meyering.net>
1202 * src/Makefile.am (check-README): New target/rule.
1203 (check): Depend on it.
1205 * configure.ac (AC_CONFIG_FILES): Add old/Makefile and old/*/Makefile.
1207 2002-08-03 Jim Meyering <jim@meyering.net>
1209 * Makefile.am (SUBDIRS): Add old.
1210 * old/: New directory, containing legacy ChangeLog* and NEWS files
1211 from the fileutils, sh-utils, and textutils packages.
1213 * src/Makefile.am (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Set to false.
1215 2002-08-02 Paul Eggert <eggert@twinsun.com>
1217 * NEWS, doc/coreutils.texi: uniq now obeys LC_COLLATE.
1219 * src/uniq.c: Include hard-locale.h, xmemcoll.h.
1220 (hard_LC_COLLATE): New var.
1221 (different): Args are now char *, not const char *.
1222 Use xmemcoll instead of memcmp to compare lines, so that
1223 LC_COLLATE has effect. However, use memcmp if it is an
1225 (check_file): Do not include newline in comparison, so that
1226 xmemcoll has a byte to stomp on temporarily.
1227 (main): Set hard_LC_COLLATE.
1229 2002-07-29 Jim Meyering <jim@meyering.net>
1231 * Makefile.am (SUBDIRS): Remove djgpp, for now.
1233 2002-07-08 Jim Meyering <jim@meyering.net>
1235 * src/Makefile.am (uninstall-local): Search for @GNU_PACKAGE@,
1236 rather than the hard-coded `sh-utils'.
1238 2002-07-01 Jim Meyering <jim@meyering.net>
1240 * configure.ac: Merge the three files from fileutils,
1241 textutils, and sh-utils.
1242 * Makefile.am: Likewise.
1243 * src/Makefile.am: Likewise.
1246 version-control: never