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
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
misc.c
POSIX
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