Skip to content

new-run doesn't suppress its own stdout when being invoked as part of a pipe #5595

Closed

Description

@hasufell

Invoking cabal new-run target -- something > data is kinda broken, because I get cabal information messages at the front.

Activity

  1. phadej commented on Sep 27, 2018

    @phadej
    Collaborator

    @hasufell, have you tried

    cabal new-run -v0 target -- something > data

  2. hasufell commented on Sep 27, 2018

    @hasufell
    MemberAuthor

    Yes, didn't change anything

    Edit: oh wait, I did -v 0 and not -v0 (the syntax btw is cabal new-run target -v0 -- something > data)

    I still think this should be automatic. A program can detect whether it's being invoked as part of a "pipe". Most command line programs do that (e.g. git).

  3. typedrat commented on Oct 9, 2018

    @typedrat
    Collaborator

    Honestly, I think that some of that information should be going to stderr instead.

  4. added
    cabal-install: v2-build system
    on Oct 10, 2018
  5. 23Skidoo commented on Oct 15, 2018

    @23Skidoo
    Member

    Related: #4789.

  6. ulysses4ever commented on Aug 17, 2022

    @ulysses4ever
    Collaborator

    Should this be closed as superseded by #7790?

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

    cabal-install: cmd/runcabal-install: v2-build system

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions