Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 18 Mar 2004 15:02:48 -0500 (EST)
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: Aaron Humphrey <HumphreyA@Kakari.com>
cc: cygwin@cygwin.com
Subject: Re: Cygwin shells exit immediately
In-Reply-To: <s059937d.031@KAKARI.KAKARI.COM>
Message-ID: <Pine.GSO.4.56.0403181443490.6829@slinky.cs.nyu.edu>
References: <s059937d.031@KAKARI.KAKARI.COM>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Scanned-By: MIMEDefang 2.39

On Thu, 18 Mar 2004, Aaron Humphrey wrote:

> Further (mostly negative) information on the problem:
>
> Nothing shows up in the Windows System Log when bash exits.
>
> Bash stays open to type maybe half a dozen characters, and can run, say,
> "ls" before exiting.
>
> A reboot didn't help.
>
> Another person on the same network has no problems with Cygwin, though
> he hasn't ugpraded to 1.5.8-1 yet.
>
> I noticed that in the cygcheck output I sent, all the DLLs seemed to
> show up twice, but that may just be because I ran it from C:\Cygwin\bin.
>
> --Aaron V. Humphrey
> Kakari Systems Ltd.

Aaron,

Did you try running bash non-interactively with a long-running command,
e.g., 'bash -c "sleep 20"'?  Does that work?  Does 'bash --norc -i' work?

Also, if vim works, try adding the following to your .bashrc:
set -o ignoreeof
to eliminate the possibility of stray EOFs being sent to bash...

If all else fails, there's always strace, but it will involve some effort
on your part to examine it and try to figure out why bash exits.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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

