mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
sort: insert line separators after non-empty files
If files don't end witht a line separator we have to insert one, otherwise the last line will be combined with the first line of the next file.
This commit is contained in:
parent
2dd6824e76
commit
66359a0f56
4 changed files with 28 additions and 3 deletions
2
tests/fixtures/sort/no_trailing_newline1.txt
vendored
Normal file
2
tests/fixtures/sort/no_trailing_newline1.txt
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
a
|
||||
b
|
1
tests/fixtures/sort/no_trailing_newline2.txt
vendored
Normal file
1
tests/fixtures/sort/no_trailing_newline2.txt
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
b
|
Loading…
Add table
Add a link
Reference in a new issue