On Mon, 01 Nov 2021 20:20:49 -0500, Scott Cheloha wrote: > On the one hand, it is intuitive that two buffers are not literally > the same if one has a newline and the other does not. strcmp(3) > agrees with this. > > ... On the other hand, it also seems intuitive that two records are > the same even if one record doesn't have a record delimiter. You > could argue that this makes the utility more flexible in a small > corner case.
I think we do want it. However, wouldn't it be simpler to always strip the trailing newline and emit a newline in show() unconditionally? I realize this would add a newline if one was missing but that doesn't seem like a bad thing to me and is what GNU and FreeBSD do. - todd
