2004-01-02 18:00:25 +03:00
|
|
|
|
2004-05-05 18:52:34 +04:00
|
|
|
$NetBSD: TODO,v 1.3 2004/05/05 14:52:34 cjep Exp $
|
2004-01-02 18:00:25 +03:00
|
|
|
|
|
|
|
Hopefully this program can become a full drop-in replacement for
|
2004-05-05 18:52:34 +04:00
|
|
|
GNU grep. If you want to help out, please let me (cjep@) know so that
|
|
|
|
we can organise our efforts efficiently.
|
2004-01-02 18:00:25 +03:00
|
|
|
|
|
|
|
1. Add functionality and maybe change flags to match GNU grep.
|
|
|
|
* --include,--exclude
|
|
|
|
possibly use code from pax for this.
|
|
|
|
|
|
|
|
2. Binary file detection needs to be better (as currently this grep thinks
|
|
|
|
its own source code is binary...). This implementation looks at the
|
|
|
|
first few bytes to determine whether a file is binary. GNU grep seems
|
|
|
|
to search for a byte worth 0 or 128 (depending on -z).
|
|
|
|
|
|
|
|
(3. Merge in improvements from OpenBSD. Mostly done. Main improvement left
|
|
|
|
is the speed up for simple regex's.)
|
|
|
|
|
|
|
|
(4. Make code style more consistent with the NetBSD source tree. Have done
|
|
|
|
a few fixes. Could probably do with more.)
|
|
|
|
|
|
|
|
5. Maybe revisit symbolic link handling and -S, -P.
|
|
|
|
|
|
|
|
6. Sort out any performance issues, e.g.
|
|
|
|
i) this is slower than GNU grep;
|
|
|
|
ii) we probably stat wastefully.
|
|
|
|
|
|
|
|
7. Fix the manual page.
|
2004-05-05 18:52:34 +04:00
|
|
|
|
|
|
|
8. Possible look at regex libc speedups from FreeBSD.
|
|
|
|
|