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:
parent
4a16514d2c
commit
81996915df
3 changed files with 22 additions and 14 deletions
1
tests/fixtures/cat/nonewline.txt
vendored
Normal file
1
tests/fixtures/cat/nonewline.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
text without a trailing newline
|
Loading…
Add table
Add a link
Reference in a new issue