Skip to content

od: fails to leave remaining bytes of input file available for subsequent commands #7666

@jfinkels

Description

@jfinkels

Similar to #7028 and #3008.

Steps to reproduce:

echo abcdefg > f
(od -An -N3 -c; od -An -N3 -c) < f

What happens now: with uutils od, the first command consumes all bytes from the input file descriptor, leaving nothing for the second command:

   a   b   c

What I expected to happen: with GNU od, the first command only consumes 3 bytes as requested, leaving the remainder of the file available for the second command:

   a   b   c
   d   e   f

Notes: this is causing a failure in GNU test file tests/od/od-N.sh.

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