mintty doesn't set terminal io properly
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- bash, python
- Domain
- cli, operating-systems
Research direction
Reproduce the issue by starting MSYS2 MSYS on Windows 10 and running the provided Python command, then compare its stderr TTY result with Cygwin. Investigate the MSYS mintty 3.5.2 behavior and the reported PATH conversion, using the related details in the issue as starting points. Done means Windows Python reports stderr as a TTY in MSYS and the intended PATH behavior is established.
Written by the indexing model from the issue text.
Description
This appears to be a bug in the msys mintty compile. I can run the same version of mintty (3.5.2) from cygwin and it works correctly.
Reproduce by starting MSYS2 MSYS from the start menu on Windows 10. The terminal window opens and bash starts correctly.
Run the windows version of python
python -c "import os,sys; print(os.isatty(sys.stderr.fileno()))"
and it returns False. Doing the same thing with cygwin returns True.
Possibly related?
When MSYS bash starts most of the windows path has been removed instead of converted. All that gets converted is
/c/Windows/System32
/c/Windows
/c/Windows/System32/Wbem
/c/Windows/System32/WindowsPowerShell/v1.0
I don't know if this is by design or a problem.
- Dominant language
- CSS
- Stars
- 3.3k
- Forks
- 446
- PR merge metrics
- No merged PRs in 30d
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from msys2/msys2.github.io
-
Mirror RegistrationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
msys2/msys2.github.io#445 · 17 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
msys2/msys2.github.io#439 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
msys2/msys2.github.io#426 · 8 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
msys2/msys2.github.io#419 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
msys2/msys2.github.io#411 ·
All issues in msys2/msys2.github.io
Similar issues
-
bug difficulty:2 good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
MakazhanAlpamys/Soup#1865 ·
Maintainers usually reply within 1 day
-
[Bug]: ocx doctor reports a false history integrity failure when state_5.sqlite is WAL without -shmOpenbug cli
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
onyx-dot-app/onyx#15954 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
msys2/MSYS2-packages#6813 ·
Maintainers usually reply within 1 day
-
opencode on clean macos zsh .export path not working because it append and it fails because no ~/.zshrc filePossibly taken A pull request linked to this issue is open or already merged. Openreproduced
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
anomalyco/opencode#55068 · 1 comment ·
Maintainers usually reply within 1 day