X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 	tests=AWL,BAYES_05,SARE_RECV_SPAM_NAME2
X-Spam-Check-By: sourceware.org
From: <Neil.Mowbray@calgacus.com>
To: "'Csaba Raduly'" <rcsaba@gmail.com>, <cygwin@cygwin.com>
References: <001201ca88cc$e118b840$a34a28c0$@calgacus.com> <1ef5a52f0912291652g1f42d60aqe9316639e0a5f545@mail.gmail.com>
In-Reply-To: <1ef5a52f0912291652g1f42d60aqe9316639e0a5f545@mail.gmail.com>
Subject: RE: Bash v4.0 does not respect $PATH
Date: Wed, 30 Dec 2009 21:38:17 +0800
Message-ID: <002001ca8955$582ed490$088c7db0$@calgacus.com>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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

As requested the output from perl -e "print $^X;"

Bash 3 =3D> c:\opt\perl\bin\perl.exe

Bash 4 =3D> /usr/bin/perl

As you would expect the program that is actually running.
But again Bash 4 is incorrectly getting /usr/bin/perl rather
than /opt/perl/bin/perl

-----Original Message-----
From: Csaba Raduly [mailto:rcsaba@gmail.com]=20
Sent: 30 December 2009 08:52
To: cygwin@cygwin.com; Neil.Mowbray@calgacus.com
Subject: Re: Bash v4.0 does not respect $PATH

On Tue, Dec 29, 2009 at 11:21 PM,  Neil Mowbray wrote:
> Folks,
>
> I need associative arrays so I got the bash 4.0 source, compiled it=20
> under cygwin and installed it in /usr/local/bin.
>
> I have ActiveState perl installed in /opt/perl which preceeds=20
> /usr/local/bin:/bin:/usr/bin on my path. =A0Using bash 4.0, 'which' says=
=20
> I should get ActiveState perl, but actual execution gives cygwin perl=20
> in /bin

Are you sure PATH is the same in bash 3 and 4? You only showed the PATH from
bash 4.
Just out of curiosity, what does

perl -e 'print $^X'

print in those two situations? Also, try running

for i in $(echo $PATH | sed -r -e "s/:/ /g"); do ls -l $i/perl; done

in both shells.


--
Life is complex, with real and imaginary parts


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

