Re: cygwin.bat improvements (was Re: Cygwin on XP disapearing terminal mystery)

2006-02-01 Thread Igor Peshansky
On Wed, 1 Feb 2006, Christopher Faylor wrote: > On Wed, Feb 01, 2006 at 01:31:08PM -0500, Igor Peshansky wrote: > >On Wed, 1 Feb 2006, Christopher Faylor wrote: > > > >> On Wed, Feb 01, 2006 at 12:06:08PM -0500, Igor Peshansky wrote: > >> >However, most bash invocations should exit with a 0 exit c

Re: cygwin.bat improvements (was Re: Cygwin on XP disapearing terminal mystery)

2006-02-01 Thread Christopher Faylor
On Wed, Feb 01, 2006 at 01:31:08PM -0500, Igor Peshansky wrote: >On Wed, 1 Feb 2006, Christopher Faylor wrote: > >> On Wed, Feb 01, 2006 at 12:06:08PM -0500, Igor Peshansky wrote: >> >However, most bash invocations should exit with a 0 exit code. So, why >> >not simply do something like the test b

Re: cygwin.bat improvements (was Re: Cygwin on XP disapearing terminal mystery)

2006-02-01 Thread Igor Peshansky
On Wed, 1 Feb 2006, Igor Peshansky wrote: > On Wed, 1 Feb 2006, Christopher Faylor wrote: > > > Wouldn't that be: > > > > if not errorlevel 0 pause > > Contrary to all common sense, "if not errorlevel A" means "if %ERRORLEVEL% > < A", not an equality test... So the above will *always* pause. A

Re: cygwin.bat improvements (was Re: Cygwin on XP disapearing terminal mystery)

2006-02-01 Thread Igor Peshansky
On Wed, 1 Feb 2006, Christopher Faylor wrote: > On Wed, Feb 01, 2006 at 12:06:08PM -0500, Igor Peshansky wrote: > >However, most bash invocations should exit with a 0 exit code. So, why > >not simply do something like the test below? > > > >if not errorlevel 1 goto nopause > >pause > >:nopause >

Re: cygwin.bat improvements (was Re: Cygwin on XP disapearing terminal mystery)

2006-02-01 Thread Christopher Faylor
On Wed, Feb 01, 2006 at 12:06:08PM -0500, Igor Peshansky wrote: >However, most bash invocations should exit with a 0 exit code. So, why >not simply do something like the test below? > >if not errorlevel 1 goto nopause >pause >:nopause > >Also, "command not found" sets error code to 127, so the "1"

RE: cygwin.bat improvements (was Re: Cygwin on XP disapearing terminal mystery)

2006-02-01 Thread Dave Korn
On 01 February 2006 17:06, Igor Peshansky wrote: > > Also, "command not found" sets error code to 127, so the "1" above can be > changed to "127". Igor ITYM '9009'? --e.g.-- Microsoft Windows XP [Version 5.1.2600] (C) Copy

Re: cygwin.bat improvements (was Re: Cygwin on XP disapearing terminal mystery)

2006-02-01 Thread Aaron Humphrey
On 1/31/06, Brian Dessent wrote: > Well that would certainly work for the case of a missing bash. I guess > I was thinking that the marker file method would work for a wider range > of brokenness where for whatever reason the shell fails to start and/or > complete its initialization. Having never

Re: cygwin.bat improvements (was Re: Cygwin on XP disapearing terminal mystery)

2006-02-01 Thread Igor Peshansky
On Wed, 1 Feb 2006, Christopher Faylor wrote: > On Tue, Jan 31, 2006 at 08:16:15PM -0800, Brian Dessent wrote: > >Christopher Faylor wrote: > >>Couldn't it just replace the bash line with: > >> > >> if exist bash.exe goto ok > >> echo bash.exe is missing - please install it > >> pause > >>

Re: cygwin.bat improvements (was Re: Cygwin on XP disapearing terminal mystery)

2006-02-01 Thread Christopher Faylor
On Tue, Jan 31, 2006 at 08:16:15PM -0800, Brian Dessent wrote: >Christopher Faylor wrote: >>Couldn't it just replace the bash line with: >> >> if exist bash.exe goto ok >> echo bash.exe is missing - please install it >> pause >> :ok >> bash --login -i > >Well that would certainly work for

Re: cygwin.bat improvements (was Re: Cygwin on XP disapearing terminal mystery)

2006-01-31 Thread Brian Dessent
Christopher Faylor wrote: > Couldn't it just replace the bash line with: > > if exist bash.exe goto ok > echo bash.exe is missing - please install it > pause > :ok > bash --login -i Well that would certainly work for the case of a missing bash. I guess I was thinking that the mar

Re: cygwin.bat improvements (was Re: Cygwin on XP disapearing terminal mystery)

2006-01-31 Thread Christopher Faylor
On Tue, Jan 31, 2006 at 07:38:31PM -0800, Brian Dessent wrote: >Harry Putnam wrote: >> >> [EMAIL PROTECTED] (Eric Blake) writes: >> >> > If you expect help, then try opening a plain cmd.com window >> > first, running bash there and seeing if any error messages >> > appear. Also, send, as a text

cygwin.bat improvements (was Re: Cygwin on XP disapearing terminal mystery)

2006-01-31 Thread Brian Dessent
Harry Putnam wrote: > > [EMAIL PROTECTED] (Eric Blake) writes: > > > If you expect help, then try opening a plain cmd.com window > > first, running bash there and seeing if any error messages > > appear. Also, send, as a text attachment, the output of > > 'cygcheck -svr'. > > When trying the cm

Re: Cygwin on XP disapearing terminal mystery

2006-01-31 Thread Harry Putnam
[EMAIL PROTECTED] (Eric Blake) writes: > If you expect help, then try opening a plain cmd.com window > first, running bash there and seeing if any error messages > appear. Also, send, as a text attachment, the output of > 'cygcheck -svr'. When trying the cmd shell approach it became apparent tha

Re: Cygwin on XP disapearing terminal mystery

2006-01-31 Thread Larry Hall (Cygwin)
Harry Putnam wrote: I've been running cygwin in a laptop running XP home. It was working as expected. However its been a while since I used it and not sure what all has happened that might effect cygwin... but can think of nothing off hand. However, now when I click the bash icon a terminal ap

Re: Cygwin on XP disapearing terminal mystery

2006-01-31 Thread Eric Blake
> However, now when I click the bash icon a terminal appears and just as > quickly disappears. I can't use any cygwin tools since the terminal > just flashes once and is gone. > > What on earth might cause such behavior? Deja vu! http://cygwin.com/ml/cygwin/2006-01/msg01363.html If you expect

Cygwin on XP disapearing terminal mystery

2006-01-31 Thread Harry Putnam
I've been running cygwin in a laptop running XP home. It was working as expected. However its been a while since I used it and not sure what all has happened that might effect cygwin... but can think of nothing off hand. However, now when I click the bash icon a terminal appears and just as quic