Skip to content

cleo does not handle SIGPIPE / errno.EPIPE #56

@kadrach

Description

@kadrach

Discovered this trying to work around python-poetry/poetry#106 doing something along the lines of poetry show -v | head -n1 | ...

Using the GreetCommand given in the README:

% python app.py | head
Console Tool

Usage:
  command [options] [arguments]

Options:
  -h, --help                      Display this help message
  -q, --quiet                     Do not output any message
  -V, --version                   Display this application version
      --ansi                      Force ANSI output


  [BrokenPipeError]
  [Errno 32] Broken pipe


list [--raw] [--format FORMAT] [--] [<namespace>]

Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe
% echo $?
0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions