Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/usr.bin/sed
Module Name: src
Committed By: christos
Date: Fri May 15 22:39:54 UTC 2020
Modified Files:
src/usr.bin/sed: defs.h main.c process.c
Log Message:
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@
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/sed/defs.h
cvs rdiff -u -r1.35 -r1.36 src/usr.bin/sed/main.c
cvs rdiff -u -r1.52 -r1.53 src/usr.bin/sed/process.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index