uutils/cat: last line skipped if no trailing whitespace
Created by: ajzaff
Description
Last line of file may be skipped if no trailing whitespace... test.txt
:
Environment info
Using the latest ISO release
- Redox OS Release: 0.3.4
- Operating system: n/a
Steps to reproduce
- Create a new file
hello$\n
world$
- When running
cat
# cat test.txt
hello
#
Behavior
-
Expected behavior:
cat
whole file
-
Actual behavior:
cat
missed last line
- Proposed solution: Print whole file content