Add a bugs section to TODO

This commit is contained in:
Michael Forney 2020-04-05 19:57:45 -07:00
parent 2b8f1ee3a6
commit 6902aad435
2 changed files with 48 additions and 31 deletions

48
TODO
View File

@ -22,3 +22,51 @@ The return values of mdcheckline() in crypt.c need to be fixed (0 -> success,
[0] http://landley.net/toybox/roadmap.html
[1] http://git.suckless.org/ubase/
Bugs
====
ed
--
* Multi-line commands don't work in global commands:
g/^line/a \
line1
.
* Signal handling is broken.
* cat <<EOF | ed
0a
int radix = 16;
int Pflag;
int Aflag;
int vflag;
int gflag;
int uflag;
int arflag;
.
?radix?;/^$/-s/^/static /
* cat <<EOF | ed
0a
Line
.
s# *##
* cat <<EOF | ed
0a
line
.
1g/^$/p
* w command doesn't print byte count.
* Editing huge files doesn't work well.
printf
------
* Flags for string conversion-specifier (%s) are not supported.
* Escape sequences that expand to '%' are treated as beginning of
conversion specification.
* An trailing '%' at the end of a format string causes a read past
the end of the string.
tr
--
* When a character class is present, all other characters in the
string are ignored.

31
ed.c
View File

@ -1,35 +1,4 @@
/* See LICENSE file for copyright and license details. */
/*
* TODO: Multi-line commands don't work in global commands:
* o g/^line/a \
* line1
* .
* o Signal handling is broken
* o cat <<EOF | ed
* 0a
* int radix = 16;
* int Pflag;
* int Aflag;
* int vflag;
* int gflag;
* int uflag;
* int arflag;
*
* .
* ?radix?;/^$/-s/^/static /
* o cat <<EOF | ed
* 0a
* Line
* .
* s# *##
* o cat <<EOF | ed
* 0a
* line
* .
* 1g/^$/p
*/
#include <sys/stat.h>
#include <fcntl.h>
#include <regex.h>