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