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

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
Message-ID: <003801c26b09$e6e37820$2a00a8c0@dash>
From: "Kris Warkentin" <kewarken AT qnx DOT com>
To: <cygwin AT cygwin DOT com>
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0210031354500 DOT 13573-100000 AT slinky DOT cs DOT nyu DOT edu>
Subject: Re: unintended logout with bash shell
Date: Thu, 3 Oct 2002 14:22:58 -0400
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

> 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


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