Why won't Cygwin run windows apps that interact with the shell/command line?

1

After a recent update, Cygwin bash shell works for any commands that don't require interaction, but if an app needs interaction (for example the python shell), it won't work, the prompt never appears, typing known working commands produces no output.

I've read other places where people suggest mintty, but it behaves the same way.

The shell is completely functional with command line recall, running scripts that don't require interaction etc..., but non-functional as soon as a program asks any or has any prompts.

All of this seems strange since bash is doing exactly what the other apps are doing, interacting with the user, but all other apps seem to be blocked from interacting.

emacs and vi both work, however they seem to be the exceptions to the rule.

cygwin python also works, but windows python does not, and most of my virtualenv's are built of out windows python.

boatcoder

Posted 2013-10-21T12:43:07.927

Reputation: 500

Answers

2

Do you mean Windows interactive apps or Cygwin interactive apps?

Windows and Linux/Unix use different methods to interact with the terminal or console. The default Cygwin terminal is now mintty, which uses the standard Unix tty interface. Windows console apps expect to be able to use the Windows console interface, which is different from the tty interface and not supported by mintty.

If you need to run Windows interactive console apps, use the Windows console or one of the available alternatives that use the console interface. When using Cygwin's mintty, it's best to stick with Cygwin apps, at least the interactive ones.

garyjohn

Posted 2013-10-21T12:43:07.927

Reputation: 29 085

0

Cygwin Dlls sometimes "go wonky." Did you reboot? Maybe you want to try rebaseall : Running rebaseall on Cygwin or http://cygwin.wikia.com/wiki/Rebaseall

(The wonkyness is based on the pseudo fork() implementation on windows)

Electrawn

Posted 2013-10-21T12:43:07.927

Reputation: 226

I did reboot, I have now run rebaseall as administrator, and the problem persists. I'm going to reboot once again, and if that doesn't work, I guess I'll pull cygwin out and just reload it from scratch. – boatcoder – 2013-10-21T14:02:02.803