*** empty log message ***
[platform/upstream/coreutils.git] / 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 dd: consider adding an option to suppress `bytes/block read/written'
51 output to stderr.  Suggested here:
52   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=165045
53
54 m4: rename all macros that start with AC_ to start with another prefix
55
56 resolve RH report on cp -a forwarded by Tim Waugh
57
58 Martin Michlmayr's patch to provide ls with `--sort directory' option
59
60 tail: don't use xlseek; it *exits*.
61   Instead, maybe use a macro and return nonzero.
62
63 add mktemp?  Suggested by Nelson Beebe
64
65 df: alignment problem of `Used' heading with e.g., -mP
66   reported by Karl Berry
67
68 tr: support nontrivial equivalence classes, e.g. [=e=] with LC_COLLATE=fr_FR
69
70 fix tail -f to work with named pipes; reported by Ian D. Allen
71   $ mkfifo j; tail -f j & sleep 1; echo x > j
72   ./tail: j: file truncated
73   ./tail: j: cannot seek to offset 0: Illegal seek
74
75 lib/strftime.c: Since %N is the only format that we need but that
76   glibc's strftime doesn't support, consider using a wrapper that
77   would expand /%(-_)?\d*N/ to the desired string and then pass the
78   resulting string to glibc's strftime.
79
80 sort: Compress temporary files when doing large external sort/merges.
81   This improves performance when you can compress/uncompress faster than
82   you can read/write, which is common in these days of fast CPUs.
83   suggestion from Charles Randall on 2001-08-10
84
85 sort: Add an ordering option -R that causes 'sort' to sort according
86   to a random permutation of the correct sort order.  Also, add an
87   option --random-seed=SEED that causes 'sort' to use an arbitrary
88   string SEED to select which permutations to use, in a deterministic
89   manner: that is, if you sort a permutation of the same input file
90   with the same --random-seed=SEED option twice, you'll get the same
91   output.  The default SEED is chosen at random, and contains enough
92   information to ensure that the output permutation is random.
93   suggestion from Feth AREZKI, Stephan Kasal, and Paul Eggert on 2003-07-17
94
95 unexpand: [http://www.opengroup.org/onlinepubs/007908799/xcu/unexpand.html]
96   printf 'x\t \t y\n'|unexpand -t 8,9 should print its input, unmodified.
97   printf 'x\t \t y\n'|unexpand -t 5,8 should print "x\ty\n"
98
99 Let GNU su use the `wheel' group if appropriate.
100   (there are a couple patches, already)
101
102 sort: Investigate better sorting algorithms; see Knuth vol. 3.
103
104   We tried list merge sort, but it was about 50% slower than the
105   recursive algorithm currently used by sortlines, and it used more
106   comparisons.  We're not sure why this was, as the theory suggests it
107   should do fewer comparisons, so perhaps this should be revisited.
108   List merge sort was implemented in the style of Knuth algorithm
109   5.2.4L, with the optimization suggested by exercise 5.2.4-22.  The
110   test case was 140,213,394 bytes, 426,4424 lines, text taken from the
111   GCC 3.3 distribution, sort.c compiled with GCC 2.95.4 and running on
112   Debian 3.0r1 GNU/Linux, 2.4GHz Pentium 4, single pass with no
113   temporary files and plenty of RAM.
114
115   Since comparisons seem to be the bottleneck, perhaps the best
116   algorithm to try next should be merge insertion.  See Knuth section
117   5.3.1, who credits Lester Ford, Jr. and Selmer Johnson, American
118   Mathematical Monthly 66 (1959), 387-389.
119
120 cp --recursive: perform dir traversals in source and dest hierarchy rather
121   than forming full file names.  The latter (current) approach fails
122   unnecessarily when the names become very long.
123
124 tail --p is now ambiguous
125
126 Remove suspicious uses of alloca (ones that may allocate more than
127    about 4k)
128
129 Adapt these contribution guidelines for coreutils:
130   http://sources.redhat.com/automake/contribute.html
131
132
133 Changes expected to go in, post-5.2.1:
134 ======================================
135
136   wc: add an option, --files0-from [as for du] to make it read NUL-delimited
137     file name arguments from a file.
138
139   dd patch from Olivier Delhomme
140
141   Apply Andreas Gruenbacher's ACL and xattr changes
142
143   Apply Bruno Haible's hostname changes
144
145   test/mv/*: clean up $other_partition_tmpdir in all cases
146
147   ls: when both -l and --dereference-command-line-symlink-to-dir are
148   specified, consider whether to let the latter select whether to
149   dereference command line symlinks to directories.  Since -l has
150   an implicit --NO-dereference-command-line-symlink-to-dir meaning.
151   Pointed out by Karl Berry.
152
153   A more efficient version of factor, and possibly one that
154   accepts inputs of size 2^64 and larger.
155
156   Re-add a separate test for du's stack space usage (like the one removed
157   from tests/rm/deep-1).
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