[hackers] [sbase] Add a bugs section to TODO || Michael Forney

From: <git_AT_suckless.org>
Date: Mon, 6 Apr 2020 05:02:40 +0200 (CEST)

commit 6902aad4352a7c88cf270da33403a632c398dd99
Author: Michael Forney <mforney_AT_mforney.org>
AuthorDate: Sun Apr 5 19:57:45 2020 -0700
Commit: Michael Forney <mforney_AT_mforney.org>
CommitDate: Sun Apr 5 20:02:15 2020 -0700

    Add a bugs section to TODO

diff --git a/TODO b/TODO
index 108793c..59c9440 100644
--- a/TODO
+++ b/TODO
_AT_@ -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.
diff --git a/ed.c b/ed.c
index e998e81..cee9687 100644
--- a/ed.c
+++ b/ed.c
_AT_@ -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>
Received on Mon Apr 06 2020 - 05:02:40 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 06 2020 - 05:12:35 CEST