delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/03/14:19:03

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 3 Oct 2002 14:18:52 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Kris Warkentin <kewarken AT qnx DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: unintended logout with bash shell
In-Reply-To: <003801c26b09$e6e37820$2a00a8c0@dash>
Message-ID: <Pine.GSO.4.44.0210031413540.13573-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Thu, 3 Oct 2002, Kris Warkentin wrote:

> > Kris,
> > I don't see this behavior on Win2k SP2, bash 2.05b-5...  Try putting the
> > whole gvim invocation line (including the '&') in parentheses (it'll
> > force the invocation into a subshell), and see if this helps...
> >
> > Otherwise, please post the version of Cygwin and bash you have, and which
> > OS you're running on...
>
> I'm fairly current and am seeing the problem on both Win2k and WinXP.
>
> $ uname -a
> CYGWIN_NT-5.0 DASH 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown
>
> $ bash --version
> GNU bash, version 2.05a.0(3)-release (i686-pc-cygwin)
> Copyright 2001 Free Software Foundation, Inc.
>
> Your parenthesis suggestion seems to be working though and I haven't seen
> the problem since I did that.  The funny thing is that it was so
> intermittent.  I had a hard time getting it to do it every time.  It was
> like I was getting a stray EOF in there sometimes.  Incidentally, the
> command line I gave works much nicer if you put a "--" in it like so:
>
> (/cygdrive/d/vim/vim60/gvim.exe `for file in $* ; do cygpath -w -- $file ;
> done` &)
>
> This way options get passed correctly to gvim without being gobbled up and
> choked on by cygpath.
>
> thanks and cheers,
> Kris

Kris,
Good to know about the '--', I'm sure people will find it useful.

Your cygwin and bash are at least a couple of versions behind.  The
current cygwin version is 1.3.12-4, and the current bash is 2.05b-5.
There have been numerous bugs fixed in bash between your release and the
current one, so you might want to try that.

Also, to avoid the stray EOF affecting your bash, put the following in
your .bashrc:

set -o ignoreeof

Hope this helps,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019