X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 	tests=AWL,BARRACUDA_BRBL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,TVD_SPACED_SUBJECT_WORD3
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Thorsten Kampe <thorsten@thorstenkampe.de>
Subject:  Re: MinTTY
Date:  Wed, 31 Dec 2008 15:24:34 +0100
Lines: 25
Message-ID: <gjfvb0$nbn$3@ger.gmane.org>
References:  <495917BA.1090401@gmail.com> <6910a60812291430i6e2c394agcedab557bbf6f673@mail.gmail.com> <4959B7F7.9020400@cwilson.fastmail.fm> <495A1811.3030209@gmail.com> <495A2BF2.7040409@elite-systems.org> <495A90E4.6020706@elite-systems.org>
Mime-Version:  1.0
Content-Type:  text/plain; charset="us-ascii"
Content-Transfer-Encoding:  7bit
User-Agent: MicroPlanet-Gravity/2.71.4
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

* Robert Pendell (Tue, 30 Dec 2008 16:21:40 -0500)> 
> Robert Pendell wrote:
> > It runs on 1.7 but does not appear to execute the shell as a login one.
> >  I use bash and .bash_profile never gets executed when using MinTTY
> > directly.  I can help you debug it if you wish.
> 
> I stand corrected here.  I checked some more.  The batch script (which I
> forgot that I used the cygwin default one) runs bash automatically with
> '--login -i' appended to it.  I also found that you can run a command
> when mintty runs as the shell.  I modified cygwin.bat to execute mintty.
>  Looks like mintty doesn't detach completely on it's own so I appended
> 'start' to the beginning to it.  The program will continue to run but
> the black box will disappear.  If start doesn't work then use 'cygstart'
> instead as that one is supplied by cygwin.  Basically the last line of
> cygwin.bat was changed to show as...
> 
> start mintty bash --login -i

If you don't want a Windows console terminal then running or modifying 
the Cygwin batch file is completely pointless. Simply create a shortcut 
as described in the Readme: "Create a shortcut to mintty.exe with the 
working directory set to the Cygwin bin directory. The 
create_shortcut.js script will do this for you.".

Thorsten


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

