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