Skip to content

most utilities exit 0 silently when stdout is closed #16648

Duplicate

Description

@sylvestre

With stdout closed, uutils utilities exit 0 without any error. GNU 9.12 reports Bad file descriptor and exits 1.

$ seq 3 >&-; echo $?

uutils: no output, 0
GNU 9.12: seq: write error: Bad file descriptor, 1

Same for cat file, head -n1 file, id, date, wc --version and ~140 other cases in the test (nearly every utility, including --version).

GNU test: bash util/build-gnu.sh && bash util/run-gnu-test.sh tests/misc/io-errors.sh
It is listed in ignore-intermittent.txt, but it failed in all of the last 40 GnuTests runs.

Related: #12160

Part of #14705

Activity

  1. Devel08 commented on Nov 17, 2026

    @Devel08
    SponsorContributor

    I think that this could be a duplicate or related to #9795

  2. sylvestre commented on Nov 17, 2026

    @sylvestre
    SponsorContributorAuthor

    indeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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