X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.9 required=5.0	tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-ID: <4EE6C16B.8050103@cornell.edu>
Date: Mon, 12 Dec 2011 22:07:23 -0500
From: Ken Brown <kbrown@cornell.edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Latest cygwin.bat - need one
References: <20111212054801.GD4028@mrvideo.vidiot.com> <20111212063131.GE4028@mrvideo.vidiot.com> <4EE62188.5050000@cornell.edu> <20111212174456.GB11542@mrvideo.vidiot.com> <4EE663F7.4060004@cornell.edu> <20111212212343.GF11542@mrvideo.vidiot.com> <4EE67261.9080408@bopp.net> <20111213001148.GA13086@phoenix> <20111213013746.GJ11542@mrvideo.vidiot.com>
In-Reply-To: <20111213013746.GJ11542@mrvideo.vidiot.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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

[Sorry, I again accidentally replied to the OP instead of to the list.]

On 12/12/2011 8:37 PM, Mike Brown wrote:
> On Mon, Dec 12, 2011 at 04:11:48PM -0800, Gary Johnson wrote:
>>      General
>>          [Name:] Cygwin Terminal
>>      Shortcut
>>          Target: C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico -
>>          Start in: [empty]
>>          Shortcut key: None
>>          Run: Normal window
>>          [Icon:] C:\cygwin\Cygwin-Termina.ico
>
> Thanks, I created a shortcut with the above info and it is close.
>
> It starts and it finds my shell and my config files.  But $SHELL is empty
> and the terminal has no clue as to where any of the Cygwin programs are.
> The PATH that is created before any of my files are read contains info on
> Windblows program locations, but nowhere is /usr/bin or /bin, or any of the
> long path names to the Cygwin binaries.
>
> When started from the cygwin.bat file, "/usr/local/bin:/usr/bin:/bin:" prefice
> the Windblows paths.  So, a PATH that includes the needed info to the cygwin
> binaries is built when BAT is run, but not when mintty is started.
>
> Is there a reason why Cygwin is not building a PATH with the needed info?

Are you sure you didn't forget the `-' at the end of the target?  That's 
what tells mintty to start your shell as a login shell, in which case 
the commands in /etc/profile should get executed.  One of the commands 
in the default /etc/profile adds /usr/local/bin and /usr/bin to PATH. 
Have you modified /etc/profile?

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

