Skip to content

"'stty' is not recognised" #4901

Closed
Closed
@bradrn

Description

@bradrn

General summary/comments

Sometimes on Windows 10 running a stack command results in the output 'stty' is not recognized as an internal or external command, operable program or batch file. This is reproducible when using eshell in Emacs, but occurs sporadically in other situations as well; I will reply to this issue if I find any other way to reproduce this problem. Most troublingly, this issue stops Intero from working as well, as for some reason it aborts the install when the unexpected message is found.

Steps to reproduce

  1. Open Emacs with emacs -q (to negate the effects any init file could have).
  2. Run M-x eshell RET to start eshell.
  3. Using eshell, run stack exec -- echo "Test". (Or any other stack command, but this is a simple and reliable way to demonstrate this bug.)

Expected

Only Test is printed.

Actual

The following is printed:

'stty' is not recognized as an internal or external command,
operable program or batch file

(EDIT: The above originally had the name of a Turkish politician copied into the error message, Why I don’t know; I don’t usually have anything to do with Turkey. I suspect I was using his name to test diacritic support in an unrelated program, and accidentally copied his name into the message above. Sorry if it caused any confusion.)

Stack version

~ $ stack --version
Version 2.1.1, Git revision f612ea85316bbc327a64e4ad8d9f0b150dc12d4b (7648 commits) x86_64 hpack-0.31.2

(I suppose I should take this opportunity to mention that the message about stty does not occur when stack --version is run; I suspect this is because --version just prints a hardcoded message.)

Method of installation

Official binary, downloaded from stackage.org or fpcomplete's package repository

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