]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/gnu-sort/TODO
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / gnu-sort / TODO
1 restore djgpp, eventually
2 merge TODO lists
3 add unit tests for lib/*.c
4
5 strip: add an option to specify the program used to strip binaries.
6   suggestion from Karl Berry
7
8 doc/coreutils.texi:
9   Address this comment: FIXME: mv's behavior in this case is system-dependent
10   Better still: fix the code so it's *not* system-dependent.
11
12 implement --target-directory=DIR for install (per texinfo documentation)
13
14 ls: add --format=FORMAT option that controls how each line is printed.
15
16 cp --no-preserve=X should not attempt to preserve attribute X
17   reported by Andreas Schwab
18
19 copy.c: Address the FIXME-maybe comment in copy_internal.
20 And once that's done, add an exclusion so that `cp --link'
21 no longer incurs the overhead of saving src. dev/ino and dest. filename
22 in the hash table.
23
24 See if we can be consistent about where --verbose sends its output:
25   These all send --verbose output to stdout:
26     head, tail, rm, cp, mv, ln, chmod, chown, chgrp, install, ln
27   These send it to stderr:
28     shred mkdir split
29   readlink is different
30
31 Write an autoconf test to work around build failure in HPUX's 64-bit mode.
32 See notes in README -- and remove them once there's a work-around.
33
34 Integrate use of sendfile, suggested here:
35   http://mail.gnu.org/archive/html/bug-fileutils/2003-03/msg00030.html
36 I don't plan to do that, since a few tests demonstrate no significant benefit.
37
38 Should printf '\0123' print "\n3"?
39   per report from TAKAI Kousuke on Mar 27
40   http://mail.gnu.org/archive/html/bug-coreutils/2003-03/index.html
41
42 printf: consider adapting builtins/printf.def from bash
43
44 df: add `--total' option, suggested here http://bugs.debian.org/186007
45
46 seq: give better diagnostics for invalid formats:
47    e.g. no or too many % directives
48 seq: consider allowing format string to contain no %-directives
49
50 m4: rename all macros that start with AC_ to start with another prefix
51
52 resolve RH report on cp -a forwarded by Tim Waugh
53
54 Martin Michlmayr's patch to provide ls with `--sort directory' option
55
56 tail: don't use xlseek; it *exits*.
57   Instead, maybe use a macro and return nonzero.
58
59 add mktemp?  Suggested by Nelson Beebe
60
61 df: alignment problem of `Used' heading with e.g., -mP
62   reported by Karl Berry
63
64 tr: support nontrivial equivalence classes, e.g. [=e=] with LC_COLLATE=fr_FR
65
66 fix tail -f to work with named pipes; reported by Ian D. Allen
67   $ mkfifo j; tail -f j & sleep 1; echo x > j
68   ./tail: j: file truncated
69   ./tail: j: cannot seek to offset 0: Illegal seek
70
71 lib/strftime.c: Since %N is the only format that we need but that
72   glibc's strftime doesn't support, consider using a wrapper that
73   would expand /%(-_)?\d*N/ to the desired string and then pass the
74   resulting string to glibc's strftime.
75
76 sort: Compress temporary files when doing large external sort/merges.
77   This improves performance when you can compress/uncompress faster than
78   you can read/write, which is common in these days of fast CPUs.
79   suggestion from Charles Randall on 2001-08-10
80
81 sort: Add an ordering option -R that causes 'sort' to sort according
82   to a random permutation of the correct sort order.  Also, add an
83   option --random-seed=SEED that causes 'sort' to use an arbitrary
84   string SEED to select which permutations to use, in a deterministic
85   manner: that is, if you sort a permutation of the same input file
86   with the same --random-seed=SEED option twice, you'll get the same
87   output.  The default SEED is chosen at random, and contains enough
88   information to ensure that the output permutation is random.
89   suggestion from Feth AREZKI, Stephan Kasal, and Paul Eggert on 2003-07-17
90
91 unexpand: [http://www.opengroup.org/onlinepubs/007908799/xcu/unexpand.html]
92   printf 'x\t \t y\n'|unexpand -t 8,9 should print its input, unmodified.
93   printf 'x\t \t y\n'|unexpand -t 5,8 should print "x\ty\n"
94
95 Let GNU su use the `wheel' group if appropriate.
96   (there are a couple patches, already)
97
98 sort: Investigate better sorting algorithms; see Knuth vol. 3.
99
100   We tried list merge sort, but it was about 50% slower than the
101   recursive algorithm currently used by sortlines, and it used more
102   comparisons.  We're not sure why this was, as the theory suggests it
103   should do fewer comparisons, so perhaps this should be revisited.
104   List merge sort was implemented in the style of Knuth algorithm
105   5.2.4L, with the optimization suggested by exercise 5.2.4-22.  The
106   test case was 140,213,394 bytes, 426,4424 lines, text taken from the
107   GCC 3.3 distribution, sort.c compiled with GCC 2.95.4 and running on
108   Debian 3.0r1 GNU/Linux, 2.4GHz Pentium 4, single pass with no
109   temporary files and plenty of RAM.
110
111   Since comparisons seem to be the bottleneck, perhaps the best
112   algorithm to try next should be merge insertion.  See Knuth section
113   5.3.1, who credits Lester Ford, Jr. and Selmer Johnson, American
114   Mathematical Monthly 66 (1959), 387-389.
115
116 cp --recursive: perform dir traversals in source and dest hierarchy rather
117   than forming full file names.  The latter (current) approach fails
118   unnecessarily when the names become very long.
119
120 tail --p is now ambiguous
121
122 Remove suspicious uses of alloca (ones that may allocate more than
123    about 4k)
124
125 Adapt these contribution guidelines for coreutils:
126   http://sources.redhat.com/automake/contribute.html
127
128
129 Changes expected to go in, post-5.2.1:
130 ======================================
131
132   wc: add an option, --files0-from [as for du] to make it read NUL-delimited
133     file name arguments from a file.
134
135   dd patch from Olivier Delhomme
136
137   Apply Andreas Gruenbacher's ACL and xattr changes
138
139   Apply Bruno Haible's hostname changes
140
141   test/mv/*: clean up $other_partition_tmpdir in all cases
142
143   ls: when both -l and --dereference-command-line-symlink-to-dir are
144   specified, consider whether to let the latter select whether to
145   dereference command line symlinks to directories.  Since -l has
146   an implicit --NO-dereference-command-line-symlink-to-dir meaning.
147   Pointed out by Karl Berry.
148
149   A more efficient version of factor, and possibly one that
150   accepts inputs of size 2^64 and larger.
151
152   Re-add a separate test for du's stack space usage (like the one removed
153   from tests/rm/deep-1).
154
155   dd: consider adding an option to suppress `bytes/block read/written'
156   output to stderr.  Suggested here:
157     http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=165045
158
159   Pending copyright papers:
160   ------------------------
161   ls --color: Ed Avis' patch to suppress escape sequences for
162     non-highlighted files
163
164   getpwnam from Bruce Korb
165
166   pb (progress bar) from Miika Pekkarinen
167
168   Look into improving the performance of md5sum.
169   `openssl md5' is consistently about 30% faster than md5sum on an idle
170   AMD 2000-XP system with plenty of RAM and a 261 MB input file.
171   openssl's md5 implementation is in assembly, generated by a perl script.