Skip to content

yes: fails to trap SIGPIPE #7252

@jfinkels

Description

@jfinkels

Environment: Ubuntu 24.04, uutils main branch (git commit c250584), GNU coreutils v9.4.

Steps to reproduce:

trap '' PIPE && ./target/debug/yes | :

What happens now: uutils yes terminates successfully with no output.

What I expected to happen: GNU yes terminates successfully but displays a message on stderr:

yes: standard output: Broken pipe

Notes: this is causing a few GNU test files to be skipped, including tests/env/env-signal-handler.sh, tests/seq/seq-epipe.sh, tests/tail/pipe-f.sh, and tests/printf/printf-surprise.sh. I doubt this difference in behavior is specific to the yes program, but that's the program used to decide whether to skip the tests.

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