X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 	tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: ABCD <en.ABCD@gmail.com>
Subject:  Re: Bug in $PATH initialization?
Date:  Mon, 08 Jun 2009 18:28:48 -0400
Lines: 43
Message-ID: <h0k3ap$goi$1@ger.gmane.org>
References:  <e01d8a50906081409j7403bf01k6ff87ba4229875fa@mail.gmail.com>
Mime-Version:  1.0
Content-Type:  text/plain; charset=UTF-8
Content-Transfer-Encoding:  7bit
User-Agent: Thunderbird 2.0.0.21 (X11/20090328)
In-Reply-To: <e01d8a50906081409j7403bf01k6ff87ba4229875fa@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lennart Borgman wrote:
> I am trying to get "bash -i" to start up with $PATH having
> 
>    /usr/local/bin:/usr/bin:/bin
> 
> at the beginning. I believe I need to do this without any init file
> running so I set the windows Path variable to contain the
> corresponding windows directories first. So I set Path in cmd.exe with
> 
>   set Path=c:\cygwin\bin;%Path%
>   set Path=c:\cygwin\usr\bin;%Path%
>   set Path=c:\cygwin\usr\local\bin;%Path%
> 
> and then I do
> 
>   bash -i
> 
> However $PATH starts with
> 
>    /usr/local/bin:/usr/bin:/usr/bin
> 
> I thought the last dir above should be /bin, not /usr/bin.
> 
> Is this intentional or is it a bug. If it is intentional can I somehow
> do what I want another way?
> 

In Cygwin, /bin and /usr/bin both always point to the same place, so it
does get the effect you seem to want, just not in the way you expected.

- --
ABCD
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkotkKAACgkQOypDUo0oQOpQ6wCg20NQ1Yf/7/sW08Pxbp3NUgA6
3akAoMztsU4OQPr79EPJXo7c1or8kgc5
=Pqw2
-----END PGP SIGNATURE-----


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

