X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org From: "Jason Pyeron" To: References: <001201ca88cc$e118b840$a34a28c0$@calgacus.com> <1ef5a52f0912291652g1f42d60aqe9316639e0a5f545 AT mail DOT gmail DOT com> <002001ca8955$582ed490$088c7db0$@calgacus.com> Subject: RE: Bash v4.0 does not respect $PATH Date: Wed, 30 Dec 2009 08:47:00 -0500 Message-ID: <598DD2731E6745A1B0581DA63A5B03B4@phoenix> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable In-Reply-To: <002001ca8955$582ed490$088c7db0$@calgacus.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com =20 > -----Original Message----- > From: cygwin-owner AT cygwin DOT com=20 > [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of=20 > Neil DOT Mowbray AT calgacus DOT com > Sent: Wednesday, December 30, 2009 8:38 > To: 'Csaba Raduly'; cygwin AT cygwin DOT com > Subject: RE: Bash v4.0 does not respect $PATH >=20 > As requested the output from perl -e "print $^X;" >=20 > Bash 3 =3D> c:\opt\perl\bin\perl.exe >=20 > Bash 4 =3D> /usr/bin/perl >=20 In bash4 can I see, every thing else is a bit noisy for me. $ set && echo && alias && echo && uname -a > As you would expect the program that is actually running. > But again Bash 4 is incorrectly getting /usr/bin/perl rather=20 > than /opt/perl/bin/perl >=20 > -----Original Message----- > From: Csaba Raduly [mailto:rcsaba AT gmail DOT com] > Sent: 30 December 2009 08:52 > To: cygwin AT cygwin DOT com; Neil DOT Mowbray AT calgacus DOT com > Subject: Re: Bash v4.0 does not respect $PATH >=20 > 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,=20 > 'which' says=20 > > I should get ActiveState perl, but actual execution gives=20 > cygwin perl=20 > > in /bin >=20 > Are you sure PATH is the same in bash 3 and 4? You only=20 > showed the PATH from bash 4. > Just out of curiosity, what does >=20 > perl -e 'print $^X' >=20 > print in those two situations? Also, try running >=20 > for i in $(echo $PATH | sed -r -e "s/:/ /g"); do ls -l $i/perl; done >=20 > in both shells. >=20 Thanks -- -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-= =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- This message is copyright PD Inc, subject to license 20080407P00. -- 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