freebsd-nq/tools
Yaroslav Tykhiy 6b8ef68111 This trivial change should fix at least 3 similar bugs. All of
them are related to the `c' function's need to know if we are at
the actual end of the address range.  (It must print the text not
earlier than the whole pattern space was deleted.)  It appears the
only sed function with this requirement.

There is `lastaddr' set by applies(), which is to notify the `c'
function, but it can't always help because it's false when we are
hitting the end of file early.  There is also a bug in applies()
due to which `lastaddr' isn't set to true on degenerate ranges such
as `$,$' or `N,$' if N appears the last line number.

Handling early EOF condition in applies() could look more logical,
but it would effectively revert sed to the unreasonable behaviour
rev. 1.26 of main.c fought against, as it would require lastline()
be called for each line within each address range.  So it's better
to call lastline() only if needed by the `c' function.

Together with this change to sed go regression tests for the bugs
fixed (c1-c3).  A basic test of `c' (c0) is also added as it helped
me to spot my own error.

Discussed with:		dds
Tested by:		the regression tests
MFC after:		1 week
2007-04-01 13:25:03 +00:00
..
build Add ncursesw, libelf, and libalias profiling libraries 2007-03-11 13:37:09 +00:00
debugscripts o Correct comments: remove a reference to non-existent gdbinit.9 man page; 2006-05-22 07:12:25 +00:00
diag Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
kerneldoc ah_if.m was removed a while ago 2006-11-26 14:41:17 +00:00
KSE Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
LibraryReport
regression This trivial change should fix at least 3 similar bugs. All of 2007-04-01 13:25:03 +00:00
sched - Add a horrible bit of code to detect tsc differences between processors. 2007-01-24 21:19:56 +00:00
test Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
tools Overhaul driver/subsystem api's: 2007-03-21 03:42:51 +00:00
install.sh Arguments to options aren't necessarily separated with whitespace. 2004-07-07 09:38:14 +00:00
make_libdeps.sh Make use of mk/ files from a fresh source tree, rather than 2006-11-24 09:07:26 +00:00
README

$FreeBSD$

This directory tree contains tools used for the maintenance and
testing of FreeBSD.  There is no toplevel Makefile structure since
these tools are not meant to be built as part of the standard system,
though there may be individual Makefiles in some of the subdirs.

Please read the README files in the subdirs for further information.