TODO: It'd be nice to add renice.
[platform/upstream/coreutils.git] / TODO
1 comm: add an option, --output-delimiter=STR
2   Files to change: src/comm.c, ChangeLog, NEWS, doc/coreutils.texi,
3   Add a new file, tests/misc/comm (use another file in that directory as
4   a template), to exercise the new option.  Suggestion from Dan Jacobson.
5
6 printf:
7   Now that gnulib supports *printf("%a"), import one of the
8   *printf-posix modules so that printf(1) will support %a even on
9   platforms where the native *printf(3) is deficient.
10   Suggestion from Eric Blake.
11
12 renice: POSIX utility, needs implementing.
13   suggestion from Karl Berry (among others).
14
15 install: add an option to specify the program used to strip binaries.
16   suggestion from Karl Berry
17
18 doc/coreutils.texi:
19   Address this comment: FIXME: mv's behavior in this case is system-dependent
20   Better still: fix the code so it's *not* system-dependent.
21
22 ls: add --format=FORMAT option that controls how each line is printed.
23
24 cp --no-preserve=X should not attempt to preserve attribute X
25   reported by Andreas Schwab
26
27 copy.c: Address the FIXME-maybe comment in copy_internal.
28 And once that's done, add an exclusion so that `cp --link'
29 no longer incurs the overhead of saving src. dev/ino and dest. filename
30 in the hash table.
31
32 See if we can be consistent about where --verbose sends its output:
33   These all send --verbose output to stdout:
34     head, tail, rm, cp, mv, ln, chmod, chown, chgrp, install, ln
35   These send it to stderr:
36     shred mkdir split
37   readlink is different
38
39 Write an autoconf test to work around build failure in HPUX's 64-bit mode.
40 See notes in README -- and remove them once there's a work-around.
41
42 Integrate use of sendfile, suggested here:
43   http://mail.gnu.org/archive/html/bug-fileutils/2003-03/msg00030.html
44 I don't plan to do that, since a few tests demonstrate no significant benefit.
45
46 Should printf '\0123' print "\n3"?
47   per report from TAKAI Kousuke on Mar 27
48   http://mail.gnu.org/archive/html/bug-coreutils/2003-03/index.html
49
50 printf: consider adapting builtins/printf.def from bash
51
52 df: add `--total' option, suggested here http://bugs.debian.org/186007
53
54 seq: give better diagnostics for invalid formats:
55    e.g. no or too many % directives
56 seq: consider allowing format string to contain no %-directives
57
58 tail: don't use xlseek; it *exits*.
59   Instead, maybe use a macro and return nonzero.
60
61 add mktemp?  Suggested by Nelson Beebe
62
63 tr: support nontrivial equivalence classes, e.g. [=e=] with LC_COLLATE=fr_FR
64
65 lib/strftime.c: Since %N is the only format that we need but that
66   glibc's strftime doesn't support, consider using a wrapper that
67   would expand /%(-_)?\d*N/ to the desired string and then pass the
68   resulting string to glibc's strftime.
69
70 unexpand: [http://www.opengroup.org/onlinepubs/007908799/xcu/unexpand.html]
71   printf 'x\t \t y\n'|unexpand -t 8,9 should print its input, unmodified.
72   printf 'x\t \t y\n'|unexpand -t 5,8 should print "x\ty\n"
73
74 Let GNU su use the `wheel' group if appropriate.
75   (there are a couple patches, already)
76
77 sort: Investigate better sorting algorithms; see Knuth vol. 3.
78
79   We tried list merge sort, but it was about 50% slower than the
80   recursive algorithm currently used by sortlines, and it used more
81   comparisons.  We're not sure why this was, as the theory suggests it
82   should do fewer comparisons, so perhaps this should be revisited.
83   List merge sort was implemented in the style of Knuth algorithm
84   5.2.4L, with the optimization suggested by exercise 5.2.4-22.  The
85   test case was 140,213,394 bytes, 426,4424 lines, text taken from the
86   GCC 3.3 distribution, sort.c compiled with GCC 2.95.4 and running on
87   Debian 3.0r1 GNU/Linux, 2.4GHz Pentium 4, single pass with no
88   temporary files and plenty of RAM.
89
90   Since comparisons seem to be the bottleneck, perhaps the best
91   algorithm to try next should be merge insertion.  See Knuth section
92   5.3.1, who credits Lester Ford, Jr. and Selmer Johnson, American
93   Mathematical Monthly 66 (1959), 387-389.
94
95 cp --recursive: perform dir traversals in source and dest hierarchy rather
96   than forming full file names.  The latter (current) approach fails
97   unnecessarily when the names become very long.
98
99 Remove suspicious uses of alloca (ones that may allocate more than
100    about 4k)
101
102 Adapt these contribution guidelines for coreutils:
103   http://sources.redhat.com/automake/contribute.html
104
105
106 Changes expected to go in, someday.
107 ======================================
108
109   dd patch from Olivier Delhomme
110
111   Andreas Gruenbacher's xattr changes
112
113   Apply Bruno Haible's hostname changes
114
115   test/mv/*: clean up $other_partition_tmpdir in all cases
116
117   ls: when both -l and --dereference-command-line-symlink-to-dir are
118   specified, consider whether to let the latter select whether to
119   dereference command line symlinks to directories.  Since -l has
120   an implicit --NO-dereference-command-line-symlink-to-dir meaning.
121   Pointed out by Karl Berry.
122
123   A more efficient version of factor, and possibly one that
124   accepts inputs of size 2^64 and larger.
125
126   dd: consider adding an option to suppress `bytes/block read/written'
127   output to stderr.  Suggested here:
128     http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=165045
129
130   Pending copyright papers:
131   ------------------------
132   ls --color: Ed Avis' patch to suppress escape sequences for
133     non-highlighted files
134
135   getpwnam from Bruce Korb
136
137   pb (progress bar) from Miika Pekkarinen
138
139   ------------------------------
140
141 Remove long-deprecated options.  Search case-insensitive for
142 `deprecated' and `remove in '.  Automate this.
143
144 Add a distcheck-time test to ensure that every distributed
145 file is either read-only(indicating generated) or is
146 version-controlled and up to date.
147
148 Implement Ulrich Drepper's suggestion to use getgrouplist rather
149   than getugroups.  This affects only `id', but makes a big difference
150   on systems with many users and/or groups, and makes id usable once
151   again on systems where access restrictions make getugroups fail.
152   But first we'll need a run-test (either in an autoconf macro or at
153   run time) to avoid the segfault bug in libc-2.3.2's getgrouplist.
154   In that case, we'd revert to using a new (to-be-written) getgrouplist
155   module that does most of what `id' already does.  Or just avoid the
156   buggy use of getgrouplist by never passing it a buffer of length zero.
157   See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=200327
158
159 remove `%s' notation:
160   grep -E "\`%.{,4}s'" src/*.c
161
162 remove or adjust chown's --changes option, since it
163   can't always do what it currently says it does.
164
165 Adapt tools like wc, tr, fmt, etc. (most of the textutils) to be
166   multibyte aware.  The problem is that I want to avoid duplicating
167   significant blocks of logic, yet I also want to incur only minimal
168   (preferably `no') cost when operating in single-byte mode.
169
170 Remove all uses of the `register' keyword
171
172 pr's use of nstrftime can make it malloc a very large (up to SIZE_MAX) buffer
173
174 ls.c: use gettime rather than clock_gettime, gettimeofday, time
175
176 -----
177
178 Copyright (C) 2002-2007 Free Software Foundation, Inc.
179
180 This program is free software: you can redistribute it and/or modify
181 it under the terms of the GNU General Public License as published by
182 the Free Software Foundation, either version 3 of the License, or
183 (at your option) any later version.
184
185 This program is distributed in the hope that it will be useful,
186 but WITHOUT ANY WARRANTY; without even the implied warranty of
187 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
188 GNU General Public License for more details.
189
190 You should have received a copy of the GNU General Public License
191 along with this program.  If not, see <http://www.gnu.org/licenses/>.