Jim Meyering [Sat, 6 Nov 1999 16:21:18 +0000 (16:21 +0000)]
(do_link): Fix typo (in which the function name `symlink'
was tested instead of the variable `symbolic_link') that could make
ln perform an unneeded `stat' call.
Jim Meyering [Fri, 5 Nov 1999 07:59:40 +0000 (07:59 +0000)]
(SORTALLOC): New macro.
(sortalloc, mergealloc, LINEALLOC): Use it.
(sortalloc, mergealloc, linelength): Now const.
(sortalloc): Increase from 0.5 to 8 MB.
(mergealloc): Increase from 16 to 256 kB.
(LINEALLOC): Increase from 0.25 to 4 MB.
Jim Meyering [Thu, 4 Nov 1999 23:13:40 +0000 (23:13 +0000)]
Do not consider newline to be part of a line when comparing lines
in `sort' and `comm'. POSIX.2 requires that we consider newline,
but this is a bug in the spec and the bug will likely be fixed.
Jim Meyering [Thu, 4 Nov 1999 23:12:13 +0000 (23:12 +0000)]
Do not consider newline to be part of a line when comparing lines
in `sort' and `comm'. POSIX.2 requires that we consider newline,
but this is a bug in the spec and the bug will likely be fixed.
Update tests `use-nl' and `11d' to reflect this change.
Jim Meyering [Thu, 4 Nov 1999 23:11:34 +0000 (23:11 +0000)]
(begfield, limfield, findlines, keycompare, compare):
Do not consider newline to be part of a line when comparing lines
in `sort' and `comm'. POSIX.2 requires that we consider newline,
but this is a bug in the spec and the bug will likely be fixed.
Jim Meyering [Thu, 4 Nov 1999 23:11:03 +0000 (23:11 +0000)]
(compare_files):
Do not consider newline to be part of a line when comparing lines
in `sort' and `comm'. POSIX.2 requires that we consider newline,
but this is a bug in the spec and the bug will likely be fixed.
Jim Meyering [Wed, 3 Nov 1999 13:06:50 +0000 (13:06 +0000)]
Fix so that `tail -fn 2 file' works again.
(anonymous enum) [LONG_FOLLOW_OPTION]: Define.
(long_options): Use LONG_FOLLOW_OPTION here, instead of 'f'.
(main): Remove the `::' after the `f' in getopt_long string.
Add `case LONG_FOLLOW_OPTION' after `case 'f':'.
Based on a patch from Tim Waugh.
Jim Meyering [Sun, 31 Oct 1999 10:42:12 +0000 (10:42 +0000)]
Convert --backup to take an optional argument.
Deprecate --version-control (-V) in comments.
(usage): Remove mention of --version-control.
(main): Make -V warn then fall through into --backup case.
[--backup case]: Handle optional arg.
Jim Meyering [Sat, 30 Oct 1999 06:30:56 +0000 (06:30 +0000)]
Convert --backup to take an optional argument.
Deprecate --version-control (-V) in comments.
(usage): Remove mention of --version-control.
(main): Make -V warn then fall through into --backup case.
[--backup case]: Handle optional arg.
Jim Meyering [Sat, 23 Oct 1999 11:46:03 +0000 (11:46 +0000)]
(full_write): Remove unused decl.
(open_maybe_create): Remove.
(touch): Don't record whether the file was created; this isn't
possible to do reliably and portably without race conditions.
If the file was created and if amtime_now is nonzero, this
change means we'll have to do another utime system call, but
that's no more harmful than the previous version of this code.
Jim Meyering [Sun, 17 Oct 1999 21:31:45 +0000 (21:31 +0000)]
Convert --backup to take an optional argument.
Deprecate --version-control (-V) in comments.
(usage): Remove mention of --version-control.
(main): Make -V warn then fall through into --backup case.
[--backup case]: Handle optional arg.