X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 	tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <h0k3ap$goi$1@ger.gmane.org>
References: <e01d8a50906081409j7403bf01k6ff87ba4229875fa@mail.gmail.com> 	 <h0k3ap$goi$1@ger.gmane.org>
Date: Tue, 9 Jun 2009 00:36:48 +0200
Message-ID: <e01d8a50906081536i34f7710bu49588c85e37d2a13@mail.gmail.com>
Subject: Re: Bug in $PATH initialization?
From: Lennart Borgman <lennart.borgman@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
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

On Tue, Jun 9, 2009 at 12:28 AM, ABCD<en.ABCD@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Lennart Borgman wrote:
>> I am trying to get "bash -i" to start up with $PATH having
>>
>> =C2=A0 =C2=A0/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
>>
>> =C2=A0 set Path=3Dc:\cygwin\bin;%Path%
>> =C2=A0 set Path=3Dc:\cygwin\usr\bin;%Path%
>> =C2=A0 set Path=3Dc:\cygwin\usr\local\bin;%Path%
>>
>> and then I do
>>
>> =C2=A0 bash -i
>>
>> However $PATH starts with
>>
>> =C2=A0 =C2=A0/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.

Thanks, but why do I see both /usr/bin and /bin in a cygwin shell
started with --login then?

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

