• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

tests/H08-Oct-2014-850651

BUGSH A D01-Oct-2005359 116

LICENSEH A D14-Feb-20131.5 KiB2923

MakefileH A D03-May-2022683 3018

READMEH A D08-Oct-20143.8 KiB9270

minised.1H A D08-Oct-20149.2 KiB283274

sed.hH A D23-Mar-20063.5 KiB8669

sedcomp.cH A D08-Oct-201426.4 KiB956779

sedexec.cH A D08-Oct-201419.6 KiB824651

README

1				small-sed
2		by Eric S. Raymond, <esr@snark.thyrsus.com>
3		     and Rene Rebe <rene@exactcode.de>
4
5This is a smaller, cheaper, and faster SED utility. Minix uses it. GNU used
6to use it, until they built their own sed around an extended (some would
7say over-extended) regexp package and it is used for embedded tasks (for
8example by the T2 SDE - http://www.t2-project.org).
9
10The original sed 1.0 was written in three pieces; sed.h, sedcomp.c, sedexec.c.
11Some Minix hacker ran them together into a single-file version, mnsed.c which
12is not supported and shipped these days; if changes are needed for Minix please
13send a patch to the normal source.
14
15The 1.2 version (9 Oct 1996) add mnsed's support for detecting
16truncated hold spaces. The mnsed version is missing one feature in
17of the 1.2 version; support of +. Also, the multiple-file I/O is
18organized slightly differently.
19
20The 1.3 version added a bug fix by Tom Oehser, and the `L' command.  Also
21this program is now distributed under GPL.
22
23The 1.5 version incooperated a lot of bug fixes by Rene Rebe as well as
24a real test suite. Also the function declaration and definition have been
25converted from the K&R C to ANSI C.
26
27The 1.6 version includes support for the n'th match for the substitude command
28as well as support for predefined character classes and only writes lines
29with newline if one was present in the input line (compatible with GNU sed).
30
31The 1.7 version fixed a segmentation fault with empty regular expressions,
32not to leak other buffer content for groups of commands and escaping
33numerical seperators in regular expressions by disabling obscure code.
34Additionally compilation with older compilers as well as warnings with the
35latest gcc versions have been corrected.
36
37The 1.8 version fixes matching of some escaped characters (a regression
38introduced with \+ star matching), \+ star matching to corretly copy
39and mark the internal bytecode representation, back references inside lhs
40regular expressions matching (to work at all) and marking the correct
41regular expression for star matches.
42
43The 1.9 version included a microoptimization shaving some bytes off the
44binary and some cpu cycles at run time, reusing the previous regular
45expressions for empty ones, predefined character classes with control
46characters, handling of escaped ampesands and support for backreference
47\0 and Kleene star operator on groups.
48
49The 1.10 version fixed a special case of grouped star matching where
50\+1..n overwrote the last match, not to infinite loop on certain zero match
51grouped star cases and not to crash on w(rite to file). The version also
52no longer falls into the conservative end-of-file matching mode when just
53end-of-line matching was used.
54
55The 1.11 version again fixed w(rite to file) handling to correctly honor
56/dev/stdout and /dev/stderr as GNU sed does and thus keep the streams in
57sync. Some unused variables have been removed and a two diagnostics
58fixed to be printed correctly.
59
60The 1.12 version fixed the l(ist) command to actually work, some tiny
61optimizations have been performed as well as some more compiler warnings
62fixed.
63
64The 1.13 version address some pedantic compiler warnings, improves
65the Makefile and renamed the getline() function, as glibc-2.10
66introduced its own.
67
68The 1.14 version fixes a C++-style comment, and clarifies the license
69as BSD-like in agreement with Eric S. Raymond.
70
71The 1.15 version fixes some Kleene star operator relates bugs and
72includes some code cleanups.
73
74Makefile	-- how to build sed
75sed.h		-- declarations and structures
76sedcomp.c	-- sed pattern compilation
77sedexec.c	-- sed program execution
78sed.1		-- source for the man page
79tests/		-- a small set of sed tests
80
81For some releases the man page in the man format.
82
83Surf to
84
85   http://www.exactcode.de/oss/minised/
86   http://www.catb.org/~esr/
87
88for updates of this software. There is a sed FAQ kept at these
89locations:
90
91   http://www.dreamwvr.com/sed-info/sed-faq.html
92