This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: unintended logout with bash shell


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]