delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/03/13:59:16

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 13:58:31 -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: <008b01c26afd$0d07a470$2a00a8c0@dash>
Message-ID: <Pine.GSO.4.44.0210031354500.13573-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Thu, 3 Oct 2002, Kris Warkentin wrote:

> This has been bugging me for a while and I think I've finally got it to a
> repeatable case.
>
> Suppose I have a function in my .profile like so:
>
>  vi(){
>   /cygdrive/d/vim/vim60/gvim.exe `for file in $* ; do cygpath -w $file ; done` &
>  }
>
> If I do something like 'vi /usr/include/std<tab>' (<tab> for command
> completion), as soon as it returns to the prompt (immediately because of the
> '&'), the terminal says 'logout'.  As soon as I exit the last gvim running
> on this terminal, the terminal goes away.  It seems more repeatable if the
> command completion didn't work the first time, that is, not enough had been
> typed to complete yet.
>
> Anyone else seen this behaviour?
>
> Kris

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