Skip to content

comm: "- -" deadlocks #14219

Description

@mtvb

coreutils 0.10.0 (multi-call binary), latest commit

uutils comm hangs:

printf 'test' | ./comm - -

gnu comm behaves differently:

printf 'test' | gnucomm - -
test
gnucomm: -

gnu comm's behavior seems non-deterministic, with larger inputs it leaves stray leftovers and cuts lines based on glibc stdio buffer sizes.

Possible solutions would be to
a) replicate gnu comm's behavior or
b) reject "- -" as arguments

Activity

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