1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

cat: fix for numbered lines w/ no trailing newline

Make at_line_start persist between printing each file. This fixes an
issue when numbering lines in the output and one of the input files
does not have a trailing newline.
This commit is contained in:
Erik Vesteraas 2017-01-23 03:34:47 +01:00
parent 4a16514d2c
commit 81996915df
3 changed files with 22 additions and 14 deletions

1
tests/fixtures/cat/nonewline.txt vendored Normal file
View file

@ -0,0 +1 @@
text without a trailing newline