-
Notifications
You must be signed in to change notification settings - Fork 848
Closed
Description
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
- Run
stack exec cat
- Type some input
- Attempt to use backspace to delete it
- 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
homam, bwbaugh, habibalamin, oscarvarto, batkot and 1 more