diff options
author | Jim Meyering <jim@meyering.net> | 2001-03-13 08:50:32 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-03-13 08:50:32 +0000 |
commit | 6a6ca8f365e1f362cfc0109be4703439af81ea0e (patch) | |
tree | 6f77af28d9dedbc440635bec27602a0ee2ddf6d4 /old/textutils | |
parent | 5fface8d3a9d30341073915364bc2cf874c68bcf (diff) | |
download | coreutils-6a6ca8f365e1f362cfc0109be4703439af81ea0e.tar.xz |
*** empty log message ***
Diffstat (limited to 'old/textutils')
-rw-r--r-- | old/textutils/ChangeLog | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/old/textutils/ChangeLog b/old/textutils/ChangeLog index 8c33c9098..865150ee3 100644 --- a/old/textutils/ChangeLog +++ b/old/textutils/ChangeLog @@ -1,3 +1,41 @@ +2001-03-06 Paul Eggert <eggert@twinsun.com> + + * src/sort.c (sort): If all the input files are empty, create + an empty output file. + * tests/sort/Test.pm: Test for this. + +2001-03-13 Jim Meyering <meyering@lucent.com> + + * src/sort.c (merge): Move declarations of local variables into + the inner scope where they're used. + (sort): Likewise. + +2001-03-06 Paul Eggert <eggert@sic.twinsun.com> + + Avoid the need for a copy of the input file when the input and + output overlap, e.g. 'sort F -o F'. With -m, though, a copy + is still needed sometimes. + + * doc/textutils.texi: 'sort F -o F' no longer needs to copy F. + + * src/sort.c: Do not include closeout.h. + (xfopen): Use stdout if *how != 'r'. + (mergefps): Remove FPS arg. + Open all input files, and close all files when done. + If OFP is null, open the output file (but after opening input files). + All callers changed. + (first_same_file): New function. + (sort, merge): Remove arg OFP; we now open the output file as needed. + All callers changed. + (merge): New arg MAX_MERGE. All callers changed. + (sort): For "sort F -o F", close the input before opening the output. + (main): Do not use close_stdout; 'sort' and 'merge' now close stdout. + (This also fixes a close-stdout-twice bug.) + Remove test for overlapping input and output files, as 'sort' no longer + needs to worry about overlap, and 'merge' checks for overlap itself. + Use first_same_file to inform 'merge' about how much to merge at + the top level, to avoid overlap. + 2001-03-12 Jim Meyering <meyering@lucent.com> `fmt --prefix=S' would not work properly for any string S containing |