Commit Graph
18452 Commits
Author SHA1 Message Date
Jim Meyering 8e0b4648a6 Improve performance of `sort -m' on large files, at the cost of
making some contrived examples unsafe.  POSIX allows this
optimization.  Performance problem reported by Jonathan Baker in
<http://mail.gnu.org/archive/html/bug-coreutils/2004-05/msg00071.html>.

(first_same_file): Do not treat input pipes
differently from other files.
2004-05-14 07:34:09 +00:00
Jim Meyering f64a45d112 Document that "sort -m -o F" might write F before reading all the input. 2004-05-14 07:33:48 +00:00
Jim Meyering eed02be1b6 *** empty log message *** 2004-05-14 07:33:23 +00:00
Jim Meyering d667552245 (sort invocation): Document that "sort -m -o F"
might write F before reading all the input.
2004-05-14 07:32:56 +00:00
Jim Meyering af7f1c5b2a *** empty log message *** 2004-05-14 07:29:41 +00:00
Jim Meyering a79866eb4a *** empty log message *** 2004-05-14 07:29:04 +00:00
Jim Meyering ec0c3e624c Fix typo: s/supercede/supersede/. 2004-05-14 07:28:39 +00:00
Jim Meyering f490076195 *** empty log message *** 2004-05-13 07:27:25 +00:00
Jim Meyering 62f51917b8 (unquote, make_printable_str): Use e.g. '\a' rather than '\007',
for portability to EBCDIC hosts.
2004-05-13 07:27:10 +00:00
Jim Meyering 179af74c1a (print_esc_char): Use e.g. '\a' rather than '\007',
for portability to EBCDIC hosts.
2004-05-13 07:26:46 +00:00
Jim Meyering 364d39ccd8 (print_ascii, dump_strings): Use e.g. '\a' rather than
'\007', for portability to EBCDIC hosts.
2004-05-13 07:26:14 +00:00
Jim Meyering 07c04a2026 *** empty log message *** 2004-05-13 07:05:05 +00:00
Jim Meyering 23006caee3 Don't assume that "make -C" works; Solaris "make" doesn't have -C.
* src/Makefile.am (all_programs.list): New rule, copied from
	man/Makefile.am and tests/Makefile.am, except that we use the
	system tr rather than ./tr and we don't use tr -s.
	* tests/Makefile.am (all_programs): Use it.
	* man/Makefile.am (all_programs): Likewise.  Renamed from programs,
	for consistency.  All uses changed.
2004-05-13 07:04:58 +00:00
Jim Meyering 2b4882c233 Don't assume that "make -C" works; Solaris "make" doesn't have -C.
* src/Makefile.am (all_programs.list): New rule, copied from
	man/Makefile.am and tests/Makefile.am, except that we use the
	system tr rather than ./tr and we don't use tr -s.
	* tests/Makefile.am (all_programs): Use it.
2004-05-13 07:03:52 +00:00
Jim Meyering 50f956a0b0 Don't assume that "make -C" works; Solaris "make" doesn't have -C.
(all_programs.list): New rule, copied from
man/Makefile.am and tests/Makefile.am, except that we use the
system tr rather than ./tr and we don't use tr -s.
2004-05-13 07:03:00 +00:00
Jim Meyering bcadb97f7c *** empty log message *** 2004-05-12 09:35:19 +00:00
Jim Meyering 9549a2091e (AD_pop_and_chdir): Move lstat-`.' into if-block
where the result is used.  This avoids one unnecessary lstat call
per command line argument.
2004-05-12 09:35:06 +00:00
Jim Meyering 647df13889 *** empty log message *** 2004-05-11 19:41:37 +00:00
Jim Meyering 4dbfc4c582 (TESTS): Add unread3. 2004-05-11 19:41:33 +00:00
Jim Meyering bcd1f744af New test, for the above fix and today's lib/save-cwd.c improvement. 2004-05-11 19:41:23 +00:00
Jim Meyering 6202854ac2 *** empty log message *** 2004-05-11 18:34:56 +00:00
Jim Meyering 76a6665c13 (save_cwd): If opening `.' read-only fails, try write-only. 2004-05-11 18:34:38 +00:00
Jim Meyering ea85958d52 *** empty log message *** 2004-05-11 18:25:32 +00:00
Jim Meyering 3f84f91c7c *** empty log message *** 2004-05-11 16:50:25 +00:00
Jim Meyering 546b62a2bc *** empty log message *** 2004-05-11 16:48:42 +00:00
Jim Meyering 8853d12319 (save_cwd) [HAVE_FCHDIR]: Don't fail just
because opening `.' failed.  Resort to using xgetcwd.
2004-05-11 16:42:17 +00:00
Jim Meyering 52e15d0127 *** empty log message *** 2004-05-11 16:14:22 +00:00
Jim Meyering 0a9f091665 Don't include "save-cwd.h". It's no longer used. 2004-05-11 16:14:11 +00:00
Jim Meyering 128e1b2963 . 2004-05-10 18:15:41 +00:00
Jim Meyering 85b5ea3839 *** empty log message *** 2004-05-10 15:13:52 +00:00
Jim Meyering 6e73791bd4 (TESTS): Add trap. 2004-05-10 15:13:45 +00:00
Jim Meyering c98f083d36 New file. Test for bug fix of 2004-04-18. 2004-05-10 15:13:29 +00:00
Jim Meyering 507294085a *** empty log message *** 2004-05-10 14:27:53 +00:00
Jim Meyering 0837deb037 (AD_push): Don't use errno in diagnostic about `changed dev/ino'. 2004-05-10 14:27:45 +00:00
Jim Meyering bd0ebda8db *** empty log message *** 2004-05-10 07:15:56 +00:00
Jim Meyering 6d67072179 Remove this generated file from CVS. 2004-05-10 07:15:03 +00:00
Jim Meyering 063d037b37 . 2004-05-10 07:04:59 +00:00
Jim Meyering 0ee95541c1 . 2004-05-09 19:44:10 +00:00
Jim Meyering b9d74188f2 . 2004-05-09 19:43:35 +00:00
Jim Meyering 61a7a3871d *** empty log message *** 2004-05-09 19:43:27 +00:00
Jim Meyering bc99952263 (check-texinfo): grep -w IO 2004-05-09 19:43:23 +00:00
Jim Meyering d77d6d8b9e *** empty log message *** 2004-05-09 19:42:23 +00:00
Jim Meyering 77cd88719f (stat invocation): Change IO to I/O. 2004-05-09 19:42:19 +00:00
Jim Meyering e82d06e2f8 *** empty log message *** 2004-05-09 19:29:54 +00:00
Jim Meyering 6e9bba3889 (unquote): Use xcalloc rather than xmalloc and
a loop initializing the just-allocated memory to zero.
2004-05-09 19:29:42 +00:00
Jim Meyering acf15d5163 *** empty log message *** 2004-05-08 22:24:25 +00:00
Jim Meyering 3496e470ca *** empty log message *** 2004-05-08 12:49:57 +00:00
Jim Meyering 66fd845fed (TESTS): Add no-give-up. 2004-05-08 12:49:53 +00:00
Jim Meyering 2e83808dd6 Fix bug where "rm" gave up too easily, reported by Dan Jacobsen in
<http://mail.gnu.org/archive/html/bug-coreutils/2004-05/msg00013.html>.

(remove_entry): Check for errno values like ENOENT
that show the file cannot be directory, instead of for errno
values like EPERM that show the file might be a directory.  This
is necessary because, when a single unlink() call has multiple
reasons to fail, it can set errno to any of those reasons; it's
only the rare errno value like ENOENT that excludes all the other
possible reasons to fail even when the file is a directory.
(remove_cwd_entries): Don't attempt chdir if the file is known
to not be a directory.
(remove_dir): Use the same method that remove_cwd_entries uses
(for some reason they differed).  Don't assert that saved_errno
must be EPERM; it might be just about anything.
2004-05-08 12:49:22 +00:00
Jim Meyering 198dc407d3 New file; check for the above fix. 2004-05-08 12:47:23 +00:00