mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
head: print headings when reading multiple files
Fix a bug in which `head` failed to print headings for `stdin` inputs when reading from multiple files, and fix another bug in which `head` failed to print a blank line between the contents of a file and the heading for the next file when reading multiple files. The output now matches that of GNU `head`.
This commit is contained in:
parent
7d2b6409e2
commit
659bf58a4c
3 changed files with 29 additions and 1 deletions
0
tests/fixtures/head/emptyfile.txt
vendored
Normal file
0
tests/fixtures/head/emptyfile.txt
vendored
Normal file
Loading…
Add table
Add a link
Reference in a new issue