mintty window flashes open and immediately closes

Brent Epp brent@pdc.ca
Wed Dec 18 00:55:00 GMT 2019


Thanks, I should mention, I did try disabling my .bashrc file and 
actually my entire user directory... still didn't work.

Also, mintty tells me neither of those options are valid? These are the 
options it tells me are available: https://i.imgur.com/vyMG9t6.png

Also, just a correction to my original email, the shortcut was 
actually:`...mintty.exe -i /Cygwin-Terminal.ico -`

The shortcut I previously stated was something I had done as a 
troubleshooting step and then pasted it into the email by mistake.

  - Brent

On 2019-12-17 17:17, René Berber wrote:
> 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


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list