unintended logout with bash shell

Igor Pechtchanski pechtcha@cs.nyu.edu
Thu Oct 3 11:27:00 GMT 2002


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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/



More information about the Cygwin mailing list