public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "René Berber" <rene.berber@gmail.com>
To: cygwin@cygwin.com
Subject: Re: mintty window flashes open and immediately closes
Date: Wed, 18 Dec 2019 00:04:00 -0000	[thread overview]
Message-ID: <63aa80b6-5e37-9929-054a-7d852e0eed91@gmail.com> (raw)
In-Reply-To: <b19c4598-4d09-1fde-adcf-8506967d7298@pdc.ca>

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
-- 
R.Berber


--
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

  reply	other threads:[~2019-12-17 23:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-17 23:17 Brent Epp
2019-12-18  0:04 ` René Berber [this message]
2019-12-18  0:55   ` Brent Epp
2019-12-18  2:27     ` Brent Epp
2019-12-18  7:29       ` René Berber
2019-12-18  9:04       ` Ken Brown
2019-12-18  9:04       ` Thomas Wolff
2019-12-18 13:41 ` Takashi Yano
2019-12-18 15:10   ` Brent Epp
2019-12-21 15:13 ` Andrey Repin
2019-12-21 18:02   ` Brent Epp
2019-12-22  4:49 Jay Goldman
2019-12-28 21:27 ` Jay Goldman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=63aa80b6-5e37-9929-054a-7d852e0eed91@gmail.com \
    --to=rene.berber@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).