On 12/17/2019 2:58 PM, Brent Epp wrote:
I've been using cygwin for years with no problems. I just updated
cygwin again and I suddenly can't get into the terminal. When I click
the cygwin icon, the window just flashes and immediately closes.
What's interesting is that I have a number of cygwin/mintty shortcuts
for SSH servers as `c:\path\to\cygwin\bin\mintty.exe /bin/ssh
user@server.com`, which work just fine. I can also get in if I run
`cygwin.bat` in `cmd`, `console2` or any other Windows command terminal.
I've tried running the latest cygwin setup, reinstalling `mintty`, and
the shortcut still fails. The shortcut is just the default target:
`C:\path\to\cygwin\bin\mintty.exe /bin/bash --login -i`
I don't know what else to try. What happened here and how do I fix this?
Probably a problem with your bash init scripts.
Try (for the shortcut): C:\cygwin64\bin\mintty.exe --noprofile --norc -
If that works, then start spelunking those init files (.bashrc,
.profile, /etc/{profile,bash.bashrc}).
BTW you don't need to call bash in the shortcut, mintty by default opens
bash with those parameters; but the "-" at the end is required.
HTH