delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/31/22:51:13

X-Spam-Check-By: sourceware.org
Date: Tue, 31 Jan 2006 22:51:04 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: cygwin.bat improvements (was Re: Cygwin on XP disapearing terminal mystery)
Message-ID: <20060201035104.GA12232@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <013120061516 DOT 12540 DOT 43DF7F67000B576B000030FC22058891160A050E040D0C079D0A AT comcast DOT net> <87mzhbkb9k DOT fsf AT newsguy DOT com> <43E02D37 DOT 6456298F AT dessent DOT net>
Mime-Version: 1.0
In-Reply-To: <43E02D37.6456298F@dessent.net>
User-Agent: Mutt/1.5.11
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Tue, Jan 31, 2006 at 07:38:31PM -0800, Brian Dessent wrote:
>Harry Putnam wrote:
>> 
>> ericblake AT comcast DOT net (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 that bash had
>> disappeared off the system.... thanks.
>
>Since this seems to come up every so often, what if we made a couple of
>small changes to cygwin.bat to aid in debugging this?  Specifically, I
>was thinking that cygwin.bat could create a marker file (say something
>like ".uncleanstartup") in the same directory as the .bat file, and add
>something to the base-files rc files that deletes this file at the end
>of the startup procedure.  Then cygwin.bat can check for existence of
>this marker after executing bash, and if found it can print a short
>message and then run "pause" so that the user can see any error messages
>on the screen.  The message could perhaps say a few words about PATH
>settings or cygcheck and the mailing list, etc.

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

?

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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