Skip to content

Stack exec incorrectly setting no buffering #2884

@houli

Description

@houli

General summary/comments (optional)

A recent commit to stack has made it so that line buffering is turned off. This results in programs that are run by stack exec printing out control characters such as backspace instead of having the appropriate action on stdin. This can be seen clearly with a simple example such as cat vs stack exec cat. I first noticed this when using a program that made use of the standard getLine Haskell function.

Steps to reproduce

  1. Run stack exec cat
  2. Type some input
  3. Attempt to use backspace to delete it
  4. Compare results to just running plain cat

Expected

Backspaces and other control characters have their desired effect on the input.

Actual

Backspaces and other control characters are printed to the terminal.

Stack version

$ stack --version
Version 1.3.2 x86_64 hpack-0.15.0

Method of installation

Homebrew

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions