Skip to content

head: read_but_last_n_bytes is buggy #7288

@karlmcdowall

Description

@karlmcdowall

If you run seq 70000 | head -c-2000 you'll see a different output to what the GNU-head outputs.
It's a bug in read_but_last_n_bytes that only shows up with large input files.
I'm planning to fix soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions