NetBSD/usr.bin/sed
christos 3e95193d67 sed(1): Don't force a newline on last line, if input stream doesn't have one
While here, change how we check if the current line is the last one.
Before, we just checked if there were more files after the current one.
Now, we check the actual content of those files: they files may not have
a line at all. This matches the definition of the "last line" by the
Open Group.

The new behavior is closer to GNU sed.

From FreeBSD (9dd857db3dc558dc61dc8674d204ebc83cac0739), requested by mrg@
2020-05-15 22:39:54 +00:00
..
TEST
compile.c Recognize \oOOO \dDD \xXX plus the other regular 'C' backslash escapes like 2019-10-05 20:23:55 +00:00
defs.h sed(1): Don't force a newline on last line, if input stream doesn't have one 2020-05-15 22:39:54 +00:00
extern.h The latest refactoring changes broke sed -i: 2015-03-12 12:40:41 +00:00
main.c sed(1): Don't force a newline on last line, if input stream doesn't have one 2020-05-15 22:39:54 +00:00
Makefile put back WARNS=6 2014-06-07 16:37:32 +00:00
misc.c restore sccsid[]'s per core@'s decision 2014-06-26 02:14:32 +00:00
POSIX Merge our changes. 2014-06-06 00:13:13 +00:00
process.c sed(1): Don't force a newline on last line, if input stream doesn't have one 2020-05-15 22:39:54 +00:00
sed.1 Command file argument to -f is not optional. 2014-06-25 02:05:58 +00:00